curl --request POST \
--url https://bots.easy-peasy.ai/bot/{public_url}/api \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"message": "What can you help me with?"
}
'
{
"response": "I can help you with a variety of tasks including answering questions, providing information, and assisting with content creation."
}
{
"error": "Invalid API key"
}
{
"error": "Bot not found"
}
Agents
Chat with an agent
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.
POST
/
bot
/
{public_url}
/
api
curl --request POST \
--url https://bots.easy-peasy.ai/bot/{public_url}/api \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"message": "What can you help me with?"
}
'
{
"response": "I can help you with a variety of tasks including answering questions, providing information, and assisting with content creation."
}
{
"error": "Invalid API key"
}
{
"error": "Bot not found"
}
Send a message to an agent you built in the dashboard and get its answer. Agents were called Bots, which is why the path starts with /bot.
The Agents API uses a different base URL (https://bots.easy-peasy.ai) but the same API key as all other Easy-Peasy.AI endpoints.
public_url is your agent’s ID. In the dashboard, open your agent and go to Channels > Chat bubble > Manage and copy Your Agent ID, or open Integrations > REST API to see the full endpoint with example code.
When stream: true is set, the response is returned as server-sent events (SSE). Each event contains a chunk of the agent’s answer, so you can show it as it’s written.
To keep context across messages, send the earlier messages in history. Each entry has a role (human or ai) and a text field. Each request is answered on its own, so without history the agent doesn’t know what was said before.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Easy-Peasy.AI Docs","colors":{"primary":"#6366F1","light":"#818CF8","dark":"#4F46E5"},"logo":{"light":"https://mintcdn.com/easy-peasyai/kLHRxZMJyyWSlR-b/logo/marky.png?fit=max\u0026auto=format\u0026n=kLHRxZMJyyWSlR-b\u0026q=85\u0026s=59994034f7c7508e0f18c4f7a40ea9b5","dark":"https://mintcdn.com/easy-peasyai/kLHRxZMJyyWSlR-b/logo/marky.png?fit=max\u0026auto=format\u0026n=kLHRxZMJyyWSlR-b\u0026q=85\u0026s=59994034f7c7508e0f18c4f7a40ea9b5","href":"https://easy-peasy.ai"},"favicon":"https://mintcdn.com/easy-peasyai/BzYZncJWg82D12rl/favicon.png?fit=max\u0026auto=format\u0026n=BzYZncJWg82D12rl\u0026q=85\u0026s=56baca1aff94e50c5f7a09f8c06fe351","appearance":{"default":"light"},"navbar":{"links":[{"href":"https://easy-peasy.ai/support","label":"Help \u0026 Support"}],"primary":{"type":"button","label":"Open dashboard","href":"https://easy-peasy.ai/dashboard"}},"footer":{"socials":{"x":"https://x.com/easy_peasy_ai","website":"https://easy-peasy.ai"}},"search":{"prompt":"Search the docs"},"styling":{"eyebrows":"section","latex":false},"contextual":{"options":["copy","view",{"title":"Open in Marky Agent","description":"Ask Marky about this page","icon":"/favicon.png","href":{"base":"https://easy-peasy.ai/chat","query":[{"key":"prompt","value":"Read from https://easy-peasy.ai/docs$path.md so I can ask questions about it."}]}},"chatgpt","claude","cursor"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"easy-peasyai","hasAudioNarration":false,"actualSubdomain":"easy-peasyai","customDomains":["easy-peasy.ai"],"gitSource":{"type":"github","owner":"easy-peasy-ai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6ae4348787a6b80b471b6660","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"Guides","count":115},{"language":"default","tag":"Agents","count":29},{"language":"default","tag":"API Reference","count":19},{"language":"default","tag":"AI Employees","count":16},{"language":"default","tag":"Marky Agent","count":14},{"language":"default","tag":"AI Videos","count":14},{"language":"default","tag":"Channels","count":13},{"language":"default","tag":"AI Images","count":11},{"language":"default","tag":"Audio","count":11},{"language":"default","tag":"Account \u0026 billing","count":9}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/endpoint/chat-with-bot","slug":"/api-reference/endpoint/chat-with-bot","pageMetadata":{"title":"Chat with an agent","openapi":"POST /bot/{public_url}/api","description":"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](https://easy-peasy.ai). Uses the same `x-api-key` as all other Easy-Peasy.AI endpoints.\n\nSupports optional conversation history for multi-turn conversations and streaming responses.","href":"/api-reference/endpoint/chat-with-bot"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n code: \"code\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Send a message to a bot and receive a response. Each bot has a unique \", _jsx(_components.code, {\n children: \"public_url\"\n }), \" identifier, available from the bot’s \", _jsx(_components.strong, {\n children: \"Integrations > API\"\n }), \" page in the \", _jsx(_components.a, {\n href: \"https://easy-peasy.ai\",\n children: \"dashboard\"\n }), \". Uses the same \", _jsx(_components.code, {\n children: \"x-api-key\"\n }), \" as all other Easy-Peasy.AI endpoints.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Supports optional conversation history for multi-turn conversations and streaming responses.\"\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Heading,Note}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Send a message to an `,_jsx(_components.a,{href:`/agents/overview`,children:`agent`}),` you built in the dashboard and get its answer. Agents were called Bots, which is why the path starts with `,_jsx(_components.code,{children:`/bot`}),`.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`The Agents API uses a `,_jsx(_components.strong,{children:`different base URL`}),` (`,_jsx(_components.code,{children:`https://bots.easy-peasy.ai`}),`) but the `,_jsx(_components.strong,{children:`same API key`}),` as all other Easy-Peasy.AI endpoints.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`find-your-agent’s-id`,children:`Find your agent’s ID`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`public_url`}),` is your agent’s ID. In the dashboard, open your agent and go to `,_jsx(_components.strong,{children:`Channels`}),` > `,_jsx(_components.strong,{children:`Chat bubble`}),` > `,_jsx(_components.strong,{children:`Manage`}),` and copy `,_jsx(_components.strong,{children:`Your Agent ID`}),`, or open `,_jsx(_components.strong,{children:`Integrations`}),` > `,_jsx(_components.strong,{children:`REST API`}),` to see the full endpoint with example code.`]}),`\n`,_jsx(Heading,{level:`2`,id:`streaming`,children:`Streaming`}),`\n`,_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`stream: true`}),` is set, the response is returned as `,_jsx(_components.strong,{children:`server-sent events (SSE)`}),`. Each event contains a chunk of the agent’s answer, so you can show it as it’s written.`]}),`\n`,_jsx(Heading,{level:`2`,id:`conversation-history`,children:`Conversation history`}),`\n`,_jsxs(_components.p,{children:[`To keep context across messages, send the earlier messages in `,_jsx(_components.code,{children:`history`}),`. Each entry has a `,_jsx(_components.code,{children:`role`}),` (`,_jsx(_components.code,{children:`human`}),` or `,_jsx(_components.code,{children:`ai`}),`) and a `,_jsx(_components.code,{children:`text`}),` field. Each request is answered on its own, so without `,_jsx(_components.code,{children:`history`}),` the agent doesn’t know what was said before.`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-the-api-doesn’t-do`,children:`What the API doesn’t do`}),`\n`,_jsxs(_components.p,{children:[`The agent answers from its knowledge and instructions. `,_jsx(_components.a,{href:`/agents/actions`,children:`Actions`}),`, such as buttons, forms, and bookings, don’t run through the API.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Chat with an agent","openapi":"POST /bot/{public_url}/api","description":"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](https://easy-peasy.ai). Uses the same `x-api-key` as all other Easy-Peasy.AI endpoints.\n\nSupports optional conversation history for multi-turn conversations and streaming responses.","href":"/api-reference/endpoint/chat-with-bot"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Find your agent’s ID","slug":"find-your-agent’s-id","depth":2,"children":[]},{"title":"Streaming","slug":"streaming","depth":2,"children":[]},{"title":"Conversation history","slug":"conversation-history","depth":2,"children":[]},{"title":"What the API doesn’t do","slug":"what-the-api-doesn’t-do","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Chat with Bot","operationId":"chatWithBot","description":"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](https://easy-peasy.ai). Uses the same `x-api-key` as all other Easy-Peasy.AI endpoints.\n\nSupports optional conversation history for multi-turn conversations and streaming responses.","parameters":["c2e9ac30-db98-46aa-a0d4-ba6d57c1e1c8","191d3587-362f-49a5-9532-1cc2ac4c10cb"],"requestBody":"c3e6c5ae-ccb3-4dbb-9329-4b45b187ed22","responses":{"200":"da372c1b-135c-4880-9607-4c4d44153443","401":"5bb2ce0f-6ed4-4108-a456-407c768bd84a","404":"daf8d08c-09fc-4754-a9d0-f0113393cd39"},"method":"post","type":"path","servers":["b262e132-745f-4bd1-82bb-37db153d9821"],"security":["94133910-7cc6-402c-87b0-6bb2f95fba1b"],"path":"/bot/{public_url}/api","baseUrlOptions":["https://bots.easy-peasy.ai"],"title":"Chat with Bot","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"c2e9ac30-db98-46aa-a0d4-ba6d57c1e1c8":{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string","isRequired":true,"description":"Your API key (same as all other Easy-Peasy.AI endpoints).","uniqueKey":"","typeLabel":"string"},"description":"Your API key (same as all other Easy-Peasy.AI endpoints)."},"191d3587-362f-49a5-9532-1cc2ac4c10cb":{"name":"public_url","in":"path","required":true,"schema":{"type":"string","isRequired":true,"description":"The bot's unique public URL identifier. Found on the bot's Integrations > API page.","uniqueKey":"","typeLabel":"string"},"description":"The bot's unique public URL identifier. Found on the bot's Integrations > API page."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"The message to send to the bot.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"history":{"type":"array","description":"Previous conversation history for multi-turn conversations. Messages should alternate between human and ai roles.","items":{"type":"object","required":["role","text"],"properties":{"role":{"type":"string","enum":["human","ai"],"description":"The role of the message sender. Use `human` for user messages and `ai` for bot responses.","isRequired":true,"uniqueKey":"history.items.[INDEX].role","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"The message content.","isRequired":true,"uniqueKey":"history.items.[INDEX].text","typeLabel":"string"}},"uniqueKey":"history.items.[INDEX]","typeLabel":"object"},"uniqueKey":"history","typeLabel":"object[]"},"stream":{"type":"boolean","default":false,"description":"If `true`, the response is streamed as server-sent events (SSE). Each event contains a chunk of the bot's response.","uniqueKey":"stream","typeLabel":"boolean"},"include_sources":{"type":"boolean","default":false,"description":"If `true`, the response includes source references from the bot's knowledge base (if configured).","uniqueKey":"include_sources","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"examples":{"simple":{"title":"simple","value":{"message":"What can you help me with?"}},"with_history":{"title":"with_history","value":{"message":"Can you explain that in more detail?","history":[{"role":"human","text":"What is Easy-Peasy.AI?"},{"role":"ai","text":"Easy-Peasy.AI is an AI-powered content generation platform that helps you create marketing copy, blog posts, images, and more."}]}},"streaming":{"title":"streaming","value":{"message":"Write me a short story","stream":true}},"with_sources":{"title":"with_sources","value":{"message":"What are your pricing plans?","include_sources":true}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"da372c1b-135c-4880-9607-4c4d44153443":{"description":"Successful response from the bot","content":{"application/json":{"schema":{"type":"object","properties":{"response":{"type":"string","description":"The bot's response text.","uniqueKey":"response","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"response":"I can help you with a variety of tasks including answering questions, providing information, and assisting with content creation."},"examples":{"Example":{"title":"Example","value":{"response":"I can help you with a variety of tasks including answering questions, providing information, and assisting with content creation."}}},"exampleType":"examples"},"text/event-stream":{"schema":{"type":"string","description":"Server-sent events stream. Each event contains a chunk of the bot's response text. Returned when `stream: true` is set in the request.","uniqueKey":"","typeLabel":"string"},"examples":{"Example":{"title":"Example","value":"\u003cstring>"}},"exampleType":"generated"}},"exampleType":"examples"},"5bb2ce0f-6ed4-4108-a456-407c768bd84a":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Error message.","uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"Invalid API key"},"examples":{"Example":{"title":"Example","value":{"error":"Invalid API key"}}},"exampleType":"examples"}},"exampleType":"examples"},"daf8d08c-09fc-4754-a9d0-f0113393cd39":{"description":"Bot not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Error message.","uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"Bot not found"},"examples":{"Example":{"title":"Example","value":{"error":"Bot not found"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"94133910-7cc6-402c-87b0-6bb2f95fba1b":{"botApiKeyAuth":{"type":"apiKey","name":"x-api-key","in":"header","description":"Your API key (same as all other Easy-Peasy.AI endpoints). Get yours at https://easy-peasy.ai/settings/api","scopes":[]}}},"servers":{"b262e132-745f-4bd1-82bb-37db153d9821":{"url":"https://bots.easy-peasy.ai"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","name":"x-api-key","in":"header","description":"Your API key (same as all other Easy-Peasy.AI endpoints). Get yours at https://easy-peasy.ai/settings/api","scopes":[]},"schema":{"title":"x-api-key","type":"string","description":"Your API key (same as all other Easy-Peasy.AI endpoints). Get yours at https://easy-peasy.ai/settings/api","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"botApiKeyAuth","name":"x-api-key"}],"title":"botApiKeyAuth"}]},"originalFileLocation":"api-reference/openapi-bots.json"},"subdomain":"easy-peasyai","siteName":"Easy-Peasy.AI Docs","title":"Chat with an agent - Easy-Peasy.AI Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-28T02:53:32.262Z","originalFileLocation":"api-reference/endpoint/chat-with-bot.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Send a message to a bot and receive a response. Each bot has a unique public_url identifier, available from the bot\u0026#x27;s Integrations \u0026gt; 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.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Easy-Peasy.AI Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/easy-peasyai/Am3MO_FpKKCWWVV0/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/easy-peasyai/Am3MO_FpKKCWWVV0/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/easy-peasyai/Am3MO_FpKKCWWVV0/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/easy-peasyai/Am3MO_FpKKCWWVV0/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/easy-peasyai/Am3MO_FpKKCWWVV0/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/easy-peasyai/Am3MO_FpKKCWWVV0/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/easy-peasyai/Am3MO_FpKKCWWVV0/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/easy-peasyai/Am3MO_FpKKCWWVV0/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/easy-peasyai/Am3MO_FpKKCWWVV0/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Chat with an agent - Easy-Peasy.AI Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Send a message to a bot and receive a response. Each bot has a unique public_url identifier, available from the bot\u0026#x27;s Integrations \u0026gt; 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.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Easy-Peasy.AI Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://easy-peasy.ai/docs/api-reference/endpoint/chat-with-bot\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://easy-peasyai.mintlify.site/docs/_mintlify/api/og/v2?division=Agents\u0026amp;title=Chat+with+an+agent\u0026amp;description=Send+a+message+to+a+bot+and+receive+a+response.+Each+bot+has+a+unique+%60public_url%60+identifier%2C+available+from+the+bot%27s+**Integrations+%3E+API**+page+in+the+%5Bdash\u0026amp;theme=e4192a553308564721da91ed\u0026amp;signature=c7e8a6e75344d98d1f00a07d7618ed5f8b73d3f9b755b41e2c5ae464fc6acef1\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Chat with an agent - Easy-Peasy.AI Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Send a message to a bot and receive a response. Each bot has a unique public_url identifier, available from the bot\u0026#x27;s Integrations \u0026gt; 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.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://easy-peasyai.mintlify.site/docs/_mintlify/api/og/v2?division=Agents\u0026amp;title=Chat+with+an+agent\u0026amp;description=Send+a+message+to+a+bot+and+receive+a+response.+Each+bot+has+a+unique+%60public_url%60+identifier%2C+available+from+the+bot%27s+**Integrations+%3E+API**+page+in+the+%5Bdash\u0026amp;theme=e4192a553308564721da91ed\u0026amp;signature=c7e8a6e75344d98d1f00a07d7618ed5f8b73d3f9b755b41e2c5ae464fc6acef1\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/easy-peasyai/Am3MO_FpKKCWWVV0/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Easy-Peasy.AI Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366F1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://easy-peasy.ai/docs/api-reference/endpoint/chat-with-bot\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/endpoint/chat-with-bot.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://easy-peasy.ai/#organization\",\"name\":\"Easy-Peasy.AI Docs\",\"url\":\"https://easy-peasy.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/easy-peasyai/kLHRxZMJyyWSlR-b/logo/marky.png?fit=max\u0026auto=format\u0026n=kLHRxZMJyyWSlR-b\u0026q=85\u0026s=59994034f7c7508e0f18c4f7a40ea9b5\"}},{\"@type\":\"WebSite\",\"@id\":\"https://easy-peasy.ai/docs#website\",\"name\":\"Easy-Peasy.AI Docs\",\"url\":\"https://easy-peasy.ai/docs\",\"publisher\":{\"@id\":\"https://easy-peasy.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://easy-peasy.ai/docs/api-reference/endpoint/chat-with-bot#webpage\",\"url\":\"https://easy-peasy.ai/docs/api-reference/endpoint/chat-with-bot\",\"name\":\"Chat with an agent\",\"description\":\"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.\",\"dateModified\":\"2026-09-28T02:53:32.262Z\",\"isPartOf\":{\"@id\":\"https://easy-peasy.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://easy-peasy.ai/docs/api-reference/endpoint/chat-with-bot#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://easy-peasy.ai/docs/api-reference/endpoint/chat-with-bot#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Easy-Peasy.AI Docs\",\"item\":\"https://easy-peasy.ai/docs\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Chat with an agent\",\"item\":\"https://easy-peasy.ai/docs/api-reference/endpoint/chat-with-bot\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://easy-peasy.ai/docs/api-reference/endpoint/chat-with-bot#apireference\",\"headline\":\"Chat with an agent\",\"name\":\"Chat with an agent\",\"description\":\"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.\",\"url\":\"https://easy-peasy.ai/docs/api-reference/endpoint/chat-with-bot\",\"mainEntityOfPage\":{\"@id\":\"https://easy-peasy.ai/docs/api-reference/endpoint/chat-with-bot#webpage\"},\"dateModified\":\"2026-09-28T02:53:32.262Z\",\"publisher\":{\"@id\":\"https://easy-peasy.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://easy-peasy.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Easy-Peasy.AI Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Easy-Peasy.AI Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api-reference/endpoint/chat-with-bot.md","siteName":"Easy-Peasy.AI Docs","nav":{"global":null,"tabs":[{"tab":"Guides","icon":"book-open","pages":[{"title":"Guides","href":""}]},{"tab":"Developers","icon":"code","pages":[{"title":"Developers","href":"/developers/overview"}]},{"tab":"API Reference","icon":"square-terminal","groups":[{"group":"Getting Started","pages":[{"title":"Introduction","href":"/api-reference/introduction"}]},{"group":"Text Generation","pages":[{"title":"List Presets","openapi":"GET /api/presets","href":"/api-reference/endpoint/list-presets"},{"title":"Get Preset Details","openapi":"GET /api/presets/{slug}","href":"/api-reference/endpoint/get-preset"},{"title":"Generate Text","openapi":"POST /api/generate","href":"/api-reference/endpoint/generate"}]},{"group":"Image Generation","pages":[{"title":"Generate Image","openapi":"POST /api/generate-image","href":"/api-reference/endpoint/generate-image"},{"title":"Get Image","openapi":"GET /api/get-image","href":"/api-reference/endpoint/get-image"}]},{"group":"Video Generation","pages":[{"title":"Video models","href":"/api-reference/video-models"},{"title":"Generate Video","openapi":"POST /api/generate-video","href":"/api-reference/endpoint/generate-video"},{"title":"Generate Talking Video","openapi":"POST /api/generate-talking-video","href":"/api-reference/endpoint/generate-talking-video"},{"title":"Get Video","openapi":"GET /api/get-video","href":"/api-reference/endpoint/get-video"}]},{"group":"Transcription","pages":[{"title":"Create Transcription","openapi":"POST /api/transcriptions","href":"/api-reference/endpoint/create-transcription"},{"title":"Get Transcription Result","openapi":"POST /api/audios","href":"/api-reference/endpoint/get-transcription"},{"title":"Generate Audio Content","openapi":"POST /api/generate-audio-content","href":"/api-reference/endpoint/generate-audio-content"}]},{"group":"Text-to-Speech","pages":[{"title":"Get TTS Configuration","openapi":"GET /api/get-text-to-speech-config","href":"/api-reference/endpoint/get-tts-config"},{"title":"Get TTS Voices","openapi":"GET /api/get-text-to-speech-voices","href":"/api-reference/endpoint/get-tts-voices"},{"title":"Generate Text-to-Speech","openapi":"POST /api/generate-text-to-speech","href":"/api-reference/endpoint/generate-tts"}]},{"group":"Sound Effects","pages":[{"title":"Generate Sound Effect","openapi":"POST /api/generate-sound","href":"/api-reference/endpoint/generate-sound"}]},{"group":"Chat Completions","pages":[{"title":"Chat Completions (OpenAI-compatible)","openapi":"POST /api/chat/completions","description":"Use the OpenAI SDK’s chat.completions.create method with the Easy-Peasy.AI base URL and API key. Supports the request fields documented here, text responses, and SSE streaming. Multimodal support depends on the selected model. Tool calling, response_format, n, and other undocumented OpenAI options are not implemented by this endpoint.","href":"/api-reference/endpoint/chat-completions"}]},{"group":"Agents","pages":[{"title":"Chat with an agent","openapi":"POST /bot/{public_url}/api","href":"/api-reference/endpoint/chat-with-bot"}]}]}]},"basePath":"","title":"Chat with an agent - Easy-Peasy.AI Docs","buildId":"dpl_6PxPD4Fj1JDU9BJxEHvfdUmxKThw","deploymentId":"dpl_6PxPD4Fj1JDU9BJxEHvfdUmxKThw","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CASS2Vpq.js","utils-4k9fyWRu.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-UU-UueZb.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BgJ0LOYq.js","snippetPresets-CMgzlMR-.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BzEJegkK.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CZuQIZdk.js","shallow-Bw5arfMA.js","getApiPlaygroundDisplay-Ds834aVN.js","CodeSnippet-CKzmjw9L.js","CodeSnippets-BRpgomdp.js","Page-DvEUoD2H.js","getPastedJson-B0N-Tn76.js","icon-DASMs9nC.js","MethodPill-BA6DBLqx.js","DuplicateIcon-BMT5qfbJ.js","createIcon-CNfwVWPx.js","DynamicMarkdown-JYyBNlrJ.js","SectionHeading-BbZnmz8a.js","axios-vUo_bRtp.js","Markdown-LUU0YLpA.js","clsx-Di4ek5Ae.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-VEVWQCR4.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-CPszyu99.js"]}