GPT Chatbot is the first and most powerful no-code AI Chat framework that
implements a multi-agent architecture. Multiple AI Agents work together in a coordinated orchestration
to enable advanced workflow automations.We present this guide to help you understand how our Agents work together, as well as share
with you some best practices surrounding multi-agent chatbot design.All Agents have two states:
Active: Agent is “Connected”. It is live and running.
Inactive: Agent is “Disabled”. It does not do anything.
Only a single Agent engages with the user at any given time. Our AI Supervisor works in the background, in real time,
to decide which Agent processes the user’s inquiry when it comes in.
Agents are completely isolated from one another. This means that you cannot
tell Agent B what to do from inside Agent A, and you cannot tell the AI
Supervisor to “pass the baton” from Agent A to Agent B directly. The AI
Supervisor cannot be instructed on what to do using natural language.
The AI Supervisor assigns user queries to AI Agents based on the Agent description. This means that if
you have only a single AI Agent, then you don’t need a very good description. But if you are working with
multiple AI Agents, then you should have as explict a description as possible.
Agent Description - What kind of tasks should the Agent do?
Agent Prompt - How should the Agent perform its tasks?
AI Agent description is different from the Prompt. Description should tell the
AI Supervisor what the Agent is designed to do at a high level, focusing on
the type of user queries it should handle. Prompt is a set of instructions
telling the AI Agent how to behave.
Good Agent descriptions should answer the question “What type of queries should the Agent handle?”
More specifically, Agent descriptions should encompass all relevant “user intents” that it is supposed to handle.Agent descriptions should not include details about “how the Agent performs its job”.
That part should be reserved for the Agent’s Prompt.Here are some examples of good Agent descriptions:
GPT Chatbot Support
Embody the role of “GPT Chatbot Expert,” a specialized guide for GPT Chatbot. Your main objective is to assist users with answering GPT Chatbot-related questions related to:
Use cases
Features and capabilities
Data security
Pricing
AI Agents and multi-Agent architecture
User identity verification
Chunk curation
Function calling
Partnership program
Custom domains
Tokens
All intents handled by this Agent should be related to GPT Chatbot.
Product Expert
The Product Expert handles any user queries related to Example Company’s
products. This includes questions regarding: - Product availability - Product
specifications - Price - Shipping location - Warranty - Return policy -
Disclaimers, legal notices, and warning labels
Order Status Assistant
The Order Status Assistant handles any user queries related to an order’s status. This includes questions regarding:
Product package tracking
Current package location
Estimated time of delivery
Late delivery compensation
So what makes for a good multi-agent chatbot design? How can I ensure that all my user intents are handled by the appropriate Agent?In general, a multi-agent architecture is great for having specialized AI Agents work together as a team. Each AI Agent
can be trained on a different set of source data, be powered by a different LLM, have a different Prompt, or even be given
different tools (functions). It is much more effective than dumping everything into a single Agent.On the surface, your users will not know that they are engaging with multiple AI Agents when talking to the chatbot,
since all of the complex orchestration takes place seamlessly behind the scenes. With the right setup, they will feel
as though they are talking to a human instead of a machine. A multi-agent chatbot has the potential to be much more
powerful than single-agent ones like ChatGPT.In our AI Supervisor routing design, we use an algorithm that balances latency with performance.
It will not always give you 100% accuracy, but you can get pretty close if you design your chatbots effectively.
If you notice that the chatbot is not responding to your expectations, then there may be two causes.
The wrong Agent may have been assigned to handle the incoming user query.
The Agent itself may not be optimally configured.
To find out whether your intended Agent has been selected to handle the user’s query, go to “Inbox” and turn on debug mode.
Toggle it on here:
Under “Active Agent”, you will see the Agent that generated the response. Please note that you will only see “Active Agent” metadata
if you have more than one connected AI Agents.If the Agent that handled the user query was not the correct one, you can return to Agent configuration and update its name, description,
or prompt.If the correct Agent handled the user query but the response was not what you expected, then the issue resides within the Agent itself.
You will then need to update the Agent configuration. The most straightforward way to fix a response is by revising the AI’s answer directly:
This ensures that the chatbot will generate an answer based on what you revised every time it encounters the question in the future, assuming
the same Agent was chosen to respond to the query.If you’d like to make the Agent more robust and consistent in general, you can curate the training data, choose a more powerful LLM, or be more
explicit in your base prompt.To learn some best practices for training the chatbot, see best practices for preparing training dataTo learn more about fine-tuning Agent intents, please check out the article Fine-Tuning Agent Intents.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"GPT Chatbot API","colors":{"primary":"#2E3F51","light":"#516F90","dark":"#0D001D"},"favicon":"https://mintcdn.com/gptchatbot/et1nlYck1QOJbxxd/logo/favicon.png?fit=max\u0026auto=format\u0026n=et1nlYck1QOJbxxd\u0026q=85\u0026s=6887bcfb8c0877734cb5c8e2ba023c6b","logo":{"light":"https://mintcdn.com/gptchatbot/RpxSGx9HJ26aMoIb/logo/light.svg?fit=max\u0026auto=format\u0026n=RpxSGx9HJ26aMoIb\u0026q=85\u0026s=7a58afc2a4b648ed6b3344690bbc012d","dark":"https://mintcdn.com/gptchatbot/et1nlYck1QOJbxxd/logo/dark.svg?fit=max\u0026auto=format\u0026n=et1nlYck1QOJbxxd\u0026q=85\u0026s=18c489c900d7070d713b4e7232227076"},"api":{"mdx":{"server":"https://app.gptchatbot.it/api","auth":{"method":"bearer","name":null}}},"background":{"decoration":null,"color":{"light":null,"dark":"#111827"}},"navbar":{"links":[{"label":"Support","href":"mailto:info@gptchatbot.it"}],"primary":null},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"gptchatbot","hasAudioNarration":false,"actualSubdomain":"gptchatbot","customDomains":["docs.gptchatbot.it"],"gitSource":{"type":"github","owner":"federicodecillia","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a48af477c1f63e9b6f5a207","collectionId":"1d2bddc6-a57f-459a-bc5c-e13adf6914a7","schemaVersion":"v3"},"entitlements":{},"buildId":"6a48b0974fc0d1ab7935e1d6:success","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"API References","count":39},{"language":"default","tag":"Documentation","count":15},{"language":"default","tag":"Guides","count":12},{"language":"default","tag":"Data Sources","count":9},{"language":"default","tag":"Chatbots","count":6},{"language":"default","tag":"Session Messages","count":6},{"language":"default","tag":"Agents","count":5},{"language":"default","tag":"Chatbot Sessions","count":5},{"language":"default","tag":"API Usage Guides","count":4},{"language":"default","tag":"Data Source Tags","count":4}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","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":"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":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"multi-agents-chatbot","slug":"/multi-agents-chatbot","pageMetadata":{"title":"Multi-Agents Chatbot","description":null,"href":"/multi-agents-chatbot"},"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`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,Frame,Heading,Note,OptimizedImage}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`GPT Chatbot is the first and most powerful no-code AI Chat framework that\nimplements a multi-agent architecture. Multiple AI Agents work together in a coordinated orchestration\nto enable advanced workflow automations.`}),`\n`,_jsx(_components.p,{children:`We present this guide to help you understand how our Agents work together, as well as share\nwith you some best practices surrounding multi-agent chatbot design.`}),`\n`,_jsx(_components.p,{children:`All Agents have two states:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Active:`}),` Agent is “Connected”. It is live and running.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Inactive:`}),` Agent is “Disabled”. It does not do anything.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Only a single Agent engages with the user at any given time. Our AI Supervisor works in the background, in real time,\nto decide which Agent processes the user’s inquiry when it comes in.`}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`Agents are completely isolated from one another. This means that you cannot\ntell Agent B what to do from inside Agent A, and you cannot tell the AI\nSupervisor to “pass the baton” from Agent A to Agent B directly. The AI\nSupervisor cannot be instructed on what to do using natural language.`})}),`\n`,_jsx(_components.p,{children:`The AI Supervisor assigns user queries to AI Agents based on the Agent description. This means that if\nyou have only a single AI Agent, then you don’t need a very good description. But if you are working with\nmultiple AI Agents, then you should have as explict a description as possible.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Agent Description - What kind of tasks should the Agent do?`}),`\n`,_jsx(_components.li,{children:`Agent Prompt - How should the Agent perform its tasks?`}),`\n`]}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/gptchatbot/8xjA4smDDdX6mwcs/images/multi-agents-chatbot-5.png?fit=max\u0026auto=format\u0026n=8xjA4smDDdX6mwcs\u0026q=85\u0026s=72b5839fd5de6216307b72259f95e2c5`,\"data-og-width\":`1330`,width:`1330`,\"data-og-height\":`692`,height:`692`,\"data-path\":`images/multi-agents-chatbot-5.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/gptchatbot/8xjA4smDDdX6mwcs/images/multi-agents-chatbot-5.png?w=280\u0026fit=max\u0026auto=format\u0026n=8xjA4smDDdX6mwcs\u0026q=85\u0026s=af8a5d71a3a409862b15dad39f8d919e 280w, https://mintcdn.com/gptchatbot/8xjA4smDDdX6mwcs/images/multi-agents-chatbot-5.png?w=560\u0026fit=max\u0026auto=format\u0026n=8xjA4smDDdX6mwcs\u0026q=85\u0026s=af8e6be6e2367d1741a339ddf5967917 560w, https://mintcdn.com/gptchatbot/8xjA4smDDdX6mwcs/images/multi-agents-chatbot-5.png?w=840\u0026fit=max\u0026auto=format\u0026n=8xjA4smDDdX6mwcs\u0026q=85\u0026s=99a465ccc037c75abf55a7797dacfca6 840w, https://mintcdn.com/gptchatbot/8xjA4smDDdX6mwcs/images/multi-agents-chatbot-5.png?w=1100\u0026fit=max\u0026auto=format\u0026n=8xjA4smDDdX6mwcs\u0026q=85\u0026s=56f6ce301dbb359c9060e95ffc9dc703 1100w, https://mintcdn.com/gptchatbot/8xjA4smDDdX6mwcs/images/multi-agents-chatbot-5.png?w=1650\u0026fit=max\u0026auto=format\u0026n=8xjA4smDDdX6mwcs\u0026q=85\u0026s=7a527bec8da5b7f6ec18061ee65d2a54 1650w, https://mintcdn.com/gptchatbot/8xjA4smDDdX6mwcs/images/multi-agents-chatbot-5.png?w=2500\u0026fit=max\u0026auto=format\u0026n=8xjA4smDDdX6mwcs\u0026q=85\u0026s=42f687de411d1703102d46cfdb3c6af4 2500w`})}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`AI Agent description is different from the Prompt. Description should tell the\nAI Supervisor what the Agent is designed to do at a high level, focusing on\nthe type of user queries it should handle. Prompt is a set of instructions\ntelling the AI Agent how to behave.`})}),`\n`,_jsxs(_components.p,{children:[`Good Agent descriptions should answer the question `,_jsx(_components.strong,{children:`“What type of queries should the Agent handle?”`}),`\nMore specifically, Agent descriptions should encompass all relevant “user intents” that it is supposed to handle.`]}),`\n`,_jsxs(_components.p,{children:[`Agent descriptions `,_jsx(_components.strong,{children:`should not`}),` include details about “how the Agent performs its job”.\nThat part should be reserved for the Agent’s Prompt.`]}),`\n`,_jsx(_components.p,{children:`Here are some examples of good Agent descriptions:`}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`GPT Chatbot Support`,id:`gpt-chatbot-support`,children:[_jsx(_components.p,{children:`Embody the role of “GPT Chatbot Expert,” a specialized guide for GPT Chatbot. Your main objective is to assist users with answering GPT Chatbot-related questions related to:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Use cases`}),`\n`,_jsx(_components.li,{children:`Features and capabilities`}),`\n`,_jsx(_components.li,{children:`Data security`}),`\n`,_jsx(_components.li,{children:`Pricing`}),`\n`,_jsx(_components.li,{children:`AI Agents and multi-Agent architecture`}),`\n`,_jsx(_components.li,{children:`User identity verification`}),`\n`,_jsx(_components.li,{children:`Chunk curation`}),`\n`,_jsx(_components.li,{children:`Function calling`}),`\n`,_jsx(_components.li,{children:`Partnership program`}),`\n`,_jsx(_components.li,{children:`Custom domains`}),`\n`,_jsx(_components.li,{children:`Tokens`}),`\n`]}),_jsx(_components.p,{children:`All intents handled by this Agent should be related to GPT Chatbot.`})]}),` `,_jsx(Accordion,{title:`Product Expert`,id:`product-expert`,children:_jsx(_components.p,{children:`The Product Expert handles any user queries related to Example Company’s\nproducts. This includes questions regarding: - Product availability - Product\nspecifications - Price - Shipping location - Warranty - Return policy -\nDisclaimers, legal notices, and warning labels`})}),_jsxs(Accordion,{title:`Order Status Assistant`,id:`order-status-assistant`,children:[_jsx(_components.p,{children:`The Order Status Assistant handles any user queries related to an order’s status. This includes questions regarding:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Product package tracking`}),`\n`,_jsx(_components.li,{children:`Current package location`}),`\n`,_jsx(_components.li,{children:`Estimated time of delivery`}),`\n`,_jsx(_components.li,{children:`Late delivery compensation`}),`\n`]})]})]}),`\n`,_jsx(_components.p,{children:`So what makes for a good multi-agent chatbot design? How can I ensure that all my user intents are handled by the appropriate Agent?`}),`\n`,_jsx(_components.p,{children:`In general, a multi-agent architecture is great for having specialized AI Agents work together as a team. Each AI Agent\ncan be trained on a different set of source data, be powered by a different LLM, have a different Prompt, or even be given\ndifferent tools (functions). It is much more effective than dumping everything into a single Agent.`}),`\n`,_jsx(_components.p,{children:`On the surface, your users will not know that they are engaging with multiple AI Agents when talking to the chatbot,\nsince all of the complex orchestration takes place seamlessly behind the scenes. With the right setup, they will feel\nas though they are talking to a human instead of a machine. A multi-agent chatbot has the potential to be much more\npowerful than single-agent ones like ChatGPT.`}),`\n`,_jsx(_components.p,{children:`In our AI Supervisor routing design, we use an algorithm that balances latency with performance.\nIt will not always give you 100% accuracy, but you can get pretty close if you design your chatbots effectively.`}),`\n`,_jsx(Heading,{level:`2`,id:`debugging-the-chatbot`,children:`Debugging the chatbot`}),`\n`,_jsx(_components.p,{children:`If you notice that the chatbot is not responding to your expectations, then there may be two causes.`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`The wrong Agent may have been assigned to handle the incoming user query.`}),`\n`,_jsx(_components.li,{children:`The Agent itself may not be optimally configured.`}),`\n`]}),`\n`,_jsx(_components.p,{children:`To find out whether your intended Agent has been selected to handle the user’s query, go to “Inbox” and turn on debug mode.\nToggle it on here:`}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/gptchatbot/8xjA4smDDdX6mwcs/images/multi-agents-chatbot-6.png?fit=max\u0026auto=format\u0026n=8xjA4smDDdX6mwcs\u0026q=85\u0026s=facb51884b33e6876196f4b122b9c43a`,\"data-og-width\":`1065`,width:`1065`,\"data-og-height\":`831`,height:`831`,\"data-path\":`images/multi-agents-chatbot-6.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/gptchatbot/8xjA4smDDdX6mwcs/images/multi-agents-chatbot-6.png?w=280\u0026fit=max\u0026auto=format\u0026n=8xjA4smDDdX6mwcs\u0026q=85\u0026s=ab7b677621fcc0068e60ae129b0a391a 280w, https://mintcdn.com/gptchatbot/8xjA4smDDdX6mwcs/images/multi-agents-chatbot-6.png?w=560\u0026fit=max\u0026auto=format\u0026n=8xjA4smDDdX6mwcs\u0026q=85\u0026s=489da7ba50f855ece7b4479e7cddf925 560w, https://mintcdn.com/gptchatbot/8xjA4smDDdX6mwcs/images/multi-agents-chatbot-6.png?w=840\u0026fit=max\u0026auto=format\u0026n=8xjA4smDDdX6mwcs\u0026q=85\u0026s=d41c08950c184c1b132f76eef7af97cc 840w, https://mintcdn.com/gptchatbot/8xjA4smDDdX6mwcs/images/multi-agents-chatbot-6.png?w=1100\u0026fit=max\u0026auto=format\u0026n=8xjA4smDDdX6mwcs\u0026q=85\u0026s=520659ae8d2dc78c76c6216f6782e503 1100w, https://mintcdn.com/gptchatbot/8xjA4smDDdX6mwcs/images/multi-agents-chatbot-6.png?w=1650\u0026fit=max\u0026auto=format\u0026n=8xjA4smDDdX6mwcs\u0026q=85\u0026s=9c903cfc6a81205179c043d1d4f99c99 1650w, https://mintcdn.com/gptchatbot/8xjA4smDDdX6mwcs/images/multi-agents-chatbot-6.png?w=2500\u0026fit=max\u0026auto=format\u0026n=8xjA4smDDdX6mwcs\u0026q=85\u0026s=9a19e5dc8cc407821e57b9f2cdea065e 2500w`})}),`\n`,_jsx(_components.p,{children:`Under “Active Agent”, you will see the Agent that generated the response. Please note that you will only see “Active Agent” metadata\nif you have more than one connected AI Agents.`}),`\n`,_jsx(_components.p,{children:`If the Agent that handled the user query was not the correct one, you can return to Agent configuration and update its name, description,\nor prompt.`}),`\n`,_jsx(_components.p,{children:`If the correct Agent handled the user query but the response was not what you expected, then the issue resides within the Agent itself.\nYou will then need to update the Agent configuration. The most straightforward way to fix a response is by revising the AI’s answer directly:`}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/gptchatbot/8xjA4smDDdX6mwcs/images/multi-agents-chatbot-4.png?fit=max\u0026auto=format\u0026n=8xjA4smDDdX6mwcs\u0026q=85\u0026s=3281b8491d6fc6e0b2f0463ab957a387`,\"data-og-width\":`920`,width:`920`,\"data-og-height\":`700`,height:`700`,\"data-path\":`images/multi-agents-chatbot-4.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/gptchatbot/8xjA4smDDdX6mwcs/images/multi-agents-chatbot-4.png?w=280\u0026fit=max\u0026auto=format\u0026n=8xjA4smDDdX6mwcs\u0026q=85\u0026s=374d8b035c64dda3430706b1f736c8a0 280w, https://mintcdn.com/gptchatbot/8xjA4smDDdX6mwcs/images/multi-agents-chatbot-4.png?w=560\u0026fit=max\u0026auto=format\u0026n=8xjA4smDDdX6mwcs\u0026q=85\u0026s=b007b064ff52ba128a88cc3a8ca3475a 560w, https://mintcdn.com/gptchatbot/8xjA4smDDdX6mwcs/images/multi-agents-chatbot-4.png?w=840\u0026fit=max\u0026auto=format\u0026n=8xjA4smDDdX6mwcs\u0026q=85\u0026s=0e31107037ed2a5d1190c64770351f5a 840w, https://mintcdn.com/gptchatbot/8xjA4smDDdX6mwcs/images/multi-agents-chatbot-4.png?w=1100\u0026fit=max\u0026auto=format\u0026n=8xjA4smDDdX6mwcs\u0026q=85\u0026s=adf3dd18ce2022c7a49f82e337c66dcb 1100w, https://mintcdn.com/gptchatbot/8xjA4smDDdX6mwcs/images/multi-agents-chatbot-4.png?w=1650\u0026fit=max\u0026auto=format\u0026n=8xjA4smDDdX6mwcs\u0026q=85\u0026s=8d94b7f93b6d3fdeec6571c95b1bed8d 1650w, https://mintcdn.com/gptchatbot/8xjA4smDDdX6mwcs/images/multi-agents-chatbot-4.png?w=2500\u0026fit=max\u0026auto=format\u0026n=8xjA4smDDdX6mwcs\u0026q=85\u0026s=f5bdbad41cbc159da741be4a147c0711 2500w`})}),`\n`,_jsx(_components.p,{children:`This ensures that the chatbot will generate an answer based on what you revised every time it encounters the question in the future, assuming\nthe same Agent was chosen to respond to the query.`}),`\n`,_jsx(_components.p,{children:`If you’d like to make the Agent more robust and consistent in general, you can curate the training data, choose a more powerful LLM, or be more\nexplicit in your base prompt.`}),`\n`,_jsxs(_components.p,{children:[`To learn some best practices for training the chatbot, see `,_jsx(_components.a,{href:`/best-practices`,children:`best practices for preparing training data`})]}),`\n`,_jsxs(_components.p,{children:[`To learn more about fine-tuning Agent intents, please check out the article `,_jsx(_components.a,{href:`fine-tuning-agent-intents`,children:`Fine-Tuning Agent Intents`}),`.`]})]})}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":"Multi-Agents Chatbot","description":null,"href":"/multi-agents-chatbot"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Debugging the chatbot","slug":"debugging-the-chatbot","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"gptchatbot","siteName":"GPT Chatbot API","title":"Multi-Agents Chatbot - GPT Chatbot API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-04T06:59:33.126Z","originalFileLocation":"multi-agents-chatbot.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=\"system\"}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=\"application-name\" content=\"GPT Chatbot API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/gptchatbot/IDKThlX0BZP96Vwt/_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=\"/mintlify-assets/_mintlify/favicons/gptchatbot/IDKThlX0BZP96Vwt/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gptchatbot/IDKThlX0BZP96Vwt/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/gptchatbot/IDKThlX0BZP96Vwt/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/gptchatbot/IDKThlX0BZP96Vwt/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/gptchatbot/IDKThlX0BZP96Vwt/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gptchatbot/IDKThlX0BZP96Vwt/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/gptchatbot/IDKThlX0BZP96Vwt/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/gptchatbot/IDKThlX0BZP96Vwt/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Multi-Agents Chatbot - GPT Chatbot API\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"GPT Chatbot API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.gptchatbot.it/multi-agents-chatbot\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://gptchatbot.mintlify.app/_mintlify/api/og/v2?division=Guides\u0026amp;title=Multi-Agents+Chatbot\u0026amp;theme=20e021f1004a9f9f06bad9ba\u0026amp;signature=3165163122b58956fdfbef2b9956f717e4195f94452703993f9558b1a34d48d2\">\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=\"Multi-Agents Chatbot - GPT Chatbot API\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://gptchatbot.mintlify.app/_mintlify/api/og/v2?division=Guides\u0026amp;title=Multi-Agents+Chatbot\u0026amp;theme=20e021f1004a9f9f06bad9ba\u0026amp;signature=3165163122b58956fdfbef2b9956f717e4195f94452703993f9558b1a34d48d2\">\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=\"/mintlify-assets/_mintlify/favicons/gptchatbot/IDKThlX0BZP96Vwt/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"GPT Chatbot API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2E3F51\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.gptchatbot.it/multi-agents-chatbot\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/multi-agents-chatbot.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.gptchatbot.it/#organization\",\"name\":\"GPT Chatbot API\",\"url\":\"https://docs.gptchatbot.it\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/gptchatbot/RpxSGx9HJ26aMoIb/logo/light.svg?fit=max\u0026auto=format\u0026n=RpxSGx9HJ26aMoIb\u0026q=85\u0026s=7a58afc2a4b648ed6b3344690bbc012d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.gptchatbot.it#website\",\"name\":\"GPT Chatbot API\",\"url\":\"https://docs.gptchatbot.it\",\"publisher\":{\"@id\":\"https://docs.gptchatbot.it/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.gptchatbot.it/multi-agents-chatbot#webpage\",\"url\":\"https://docs.gptchatbot.it/multi-agents-chatbot\",\"name\":\"Multi-Agents Chatbot\",\"dateModified\":\"2026-07-04T06:59:33.126Z\",\"isPartOf\":{\"@id\":\"https://docs.gptchatbot.it#website\"},\"breadcrumb\":{\"@id\":\"https://docs.gptchatbot.it/multi-agents-chatbot#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.gptchatbot.it/multi-agents-chatbot#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guides\",\"item\":\"https://docs.gptchatbot.it/creating-first-chatbot\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Multi-Agents Chatbot\",\"item\":\"https://docs.gptchatbot.it/multi-agents-chatbot\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.gptchatbot.it/multi-agents-chatbot#article\",\"headline\":\"Multi-Agents Chatbot\",\"name\":\"Multi-Agents Chatbot\",\"url\":\"https://docs.gptchatbot.it/multi-agents-chatbot\",\"mainEntityOfPage\":{\"@id\":\"https://docs.gptchatbot.it/multi-agents-chatbot#webpage\"},\"dateModified\":\"2026-07-04T06:59:33.126Z\",\"publisher\":{\"@id\":\"https://docs.gptchatbot.it/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.gptchatbot.it#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"GPT Chatbot API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"GPT Chatbot API","nav":{"global":null,"anchors":[{"anchor":"Documentation","icon":"book-open","groups":[{"group":"Getting Started","pages":[{"title":"Introduction","href":"/introduction"}]},{"group":"Guides","pages":[{"title":"Create Your First Chatbot","href":"/creating-first-chatbot"},{"title":"Lead Collection","href":"/lead-collection"},{"title":"Human Support Escalation","href":"/human-support-escalation"},{"title":"Inbox Notifications","href":"/inbox-notifications"},{"title":"Conversation Labeling","description":null,"href":"/conversation-labeling"},{"title":"Multi-Agents Chatbot","href":"/multi-agents-chatbot"},{"title":"Fine Tuning Agent Intents","description":null,"href":"/fine-tuning-agent-intents"},{"title":"AI Supervisor Overrides","href":"/supervisor-overrides"},{"title":"Bring Your Own Key (BYOK) and Pricing","href":"/byok-pricing-guide"},{"title":"Working with Tables and CSV","href":"/working-with-tables"},{"title":"Best practices for preparing training data","href":"/best-practices"},{"title":"Why does my chatbot not answer correctly?","href":"/help"}]},{"group":"Function Calling","pages":[{"title":"RAG from an External Data Provider","href":"/rag-from-external-data-provider"}]},{"group":"Authentication Webhook","pages":[{"title":"User Identity Verification","href":"/user-identity"}]}]},{"anchor":"API References","icon":"code","pages":[{"title":"API References","href":"/api-reference/api-key-setup"}]},{"anchor":"Tools","icon":"gear","pages":[{"title":"Tools","href":"/tools/tools-intro"}]}]},"basePath":"","title":"Multi-Agents Chatbot - GPT Chatbot API","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-DXXFP6nH.js","DynamicMarkdown-B54_zNBF.js","zoom-image-lightbox-BG6oD64b.js","lightbox-handle-r17bVUz3.js"]}