Chat with Bot
Send a message to a bot and receive a response. Each bot has a unique public_url identifier, available from the bot’s Integrations > API page in the dashboard. Uses the same x-api-key as all other Easy-Peasy.AI endpoints.
Supports optional conversation history for multi-turn conversations and streaming responses.
https://bots.easy-peasy.ai) but the same API key as all other Easy-Peasy.AI endpoints.Getting your Bot’s public URL
- Go to your Easy-Peasy.AI dashboard
- Navigate to your bot’s settings
- Open the Integrations tab
- Select API to find your bot’s
public_url
Streaming
Whenstream: true is set, the response is returned as server-sent events (SSE). Each event contains a chunk of the bot’s response text, allowing you to display the response progressively as it’s generated.
Conversation history
To maintain context across multiple messages, include thehistory array with previous messages. Each entry should have a role (human or ai) and text field.Authorizations
Your API key (same as all other Easy-Peasy.AI endpoints). Get yours at https://easy-peasy.ai/settings/api
Headers
Your API key (same as all other Easy-Peasy.AI endpoints).
Path Parameters
The bot's unique public URL identifier. Found on the bot's Integrations > API page.
Body
The message to send to the bot.
Previous conversation history for multi-turn conversations. Messages should alternate between human and ai roles.
If true, the response is streamed as server-sent events (SSE). Each event contains a chunk of the bot's response.
If true, the response includes source references from the bot's knowledge base (if configured).
Response
Successful response from the bot
The bot's response text.
