GPT-trainer 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-trainer Support
Embody the role of “GPT-Trainer Expert,” a specialized guide for GPT-Trainer. Your main objective is to assist users with answering GPT-trainer-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-trainer.
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-trainer API","colors":{"primary":"#2E3F51","light":"#516F90","dark":"#0D001D"},"favicon":"https://mintcdn.com/paladinmaxinc/_odr0HDBZYr--Le1/logo/favicon.png?fit=max\u0026auto=format\u0026n=_odr0HDBZYr--Le1\u0026q=85\u0026s=d04dff53c81245c4d48f0301bad6209f","logo":{"light":"https://mintcdn.com/paladinmaxinc/_odr0HDBZYr--Le1/logo/light.svg?fit=max\u0026auto=format\u0026n=_odr0HDBZYr--Le1\u0026q=85\u0026s=e282ced1ff19648529968cefe4eb3deb","dark":"https://mintcdn.com/paladinmaxinc/_odr0HDBZYr--Le1/logo/dark.svg?fit=max\u0026auto=format\u0026n=_odr0HDBZYr--Le1\u0026q=85\u0026s=bee6ec229dfdcd8e2a9654329a38a3c6"},"api":{"mdx":{"server":"https://app.gpt-trainer.com/api","auth":{"method":"bearer","name":null}}},"background":{"decoration":null,"color":{"light":null,"dark":"#111827"}},"navbar":{"links":[{"label":"Support","href":"mailto:hello@gpt-trainer.com"}],"primary":null},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"paladinmaxinc","hasAudioNarration":false,"actualSubdomain":"paladinmaxinc","customDomains":["guide.gpt-trainer.com"],"gitSource":{"type":"github","owner":"ks-collab","repo":"gpt-trainer-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21e61733a4518725aab1a4","collectionId":"176b19f7-2d23-4aaa-b976-d711aa6932e6","schemaVersion":"v2"},"entitlements":{},"buildId":"6ae91e981deeea3b72f9ff99:success","clientVersion":"0.0.4074","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":"Whitelabel","count":6},{"language":"default","tag":"Agents","count":5},{"language":"default","tag":"Chatbot Sessions","count":5},{"language":"default","tag":"Integrations","count":5}]},"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":"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":"vite-origin","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},{"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},{"name":"comment-mode","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-trainer 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(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/paladinmaxinc/cqqSKD6mznKTkSgB/images/multi-agents-chatbot-7.png?fit=max\u0026auto=format\u0026n=cqqSKD6mznKTkSgB\u0026q=85\u0026s=e7a88736dd430d898d72277fa51631f4`,\"data-og-width\":`1515`,width:`1515`,\"data-og-height\":`495`,height:`495`,\"data-path\":`images/multi-agents-chatbot-7.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/paladinmaxinc/cqqSKD6mznKTkSgB/images/multi-agents-chatbot-7.png?w=280\u0026fit=max\u0026auto=format\u0026n=cqqSKD6mznKTkSgB\u0026q=85\u0026s=5fd8efff977add48b479020615b2bcea 280w, https://mintcdn.com/paladinmaxinc/cqqSKD6mznKTkSgB/images/multi-agents-chatbot-7.png?w=560\u0026fit=max\u0026auto=format\u0026n=cqqSKD6mznKTkSgB\u0026q=85\u0026s=63e1b099a1e9d6adeb91636ab95403e4 560w, https://mintcdn.com/paladinmaxinc/cqqSKD6mznKTkSgB/images/multi-agents-chatbot-7.png?w=840\u0026fit=max\u0026auto=format\u0026n=cqqSKD6mznKTkSgB\u0026q=85\u0026s=ef9d707a453ba163ba22c3961c1782cb 840w, https://mintcdn.com/paladinmaxinc/cqqSKD6mznKTkSgB/images/multi-agents-chatbot-7.png?w=1100\u0026fit=max\u0026auto=format\u0026n=cqqSKD6mznKTkSgB\u0026q=85\u0026s=4bf792baa47aac3f05281ae3c174d6cf 1100w, https://mintcdn.com/paladinmaxinc/cqqSKD6mznKTkSgB/images/multi-agents-chatbot-7.png?w=1650\u0026fit=max\u0026auto=format\u0026n=cqqSKD6mznKTkSgB\u0026q=85\u0026s=ac810650935b2aa38c28adcf31d1a27e 1650w, https://mintcdn.com/paladinmaxinc/cqqSKD6mznKTkSgB/images/multi-agents-chatbot-7.png?w=2500\u0026fit=max\u0026auto=format\u0026n=cqqSKD6mznKTkSgB\u0026q=85\u0026s=b41f81f99476e90d32e583428d893fd0 2500w`})}),`\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/paladinmaxinc/cqqSKD6mznKTkSgB/images/multi-agents-chatbot-5.png?fit=max\u0026auto=format\u0026n=cqqSKD6mznKTkSgB\u0026q=85\u0026s=bb1bffc23bfab05464bdc4f542644ba6`,\"data-og-width\":`762`,width:`762`,\"data-og-height\":`651`,height:`651`,\"data-path\":`images/multi-agents-chatbot-5.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/paladinmaxinc/cqqSKD6mznKTkSgB/images/multi-agents-chatbot-5.png?w=280\u0026fit=max\u0026auto=format\u0026n=cqqSKD6mznKTkSgB\u0026q=85\u0026s=cfaf50a33e800488da9ba310809379a7 280w, https://mintcdn.com/paladinmaxinc/cqqSKD6mznKTkSgB/images/multi-agents-chatbot-5.png?w=560\u0026fit=max\u0026auto=format\u0026n=cqqSKD6mznKTkSgB\u0026q=85\u0026s=d1131044065ad12b70093ad41744ae2f 560w, https://mintcdn.com/paladinmaxinc/cqqSKD6mznKTkSgB/images/multi-agents-chatbot-5.png?w=840\u0026fit=max\u0026auto=format\u0026n=cqqSKD6mznKTkSgB\u0026q=85\u0026s=67574205cc39d4703a84e27b331b1583 840w, https://mintcdn.com/paladinmaxinc/cqqSKD6mznKTkSgB/images/multi-agents-chatbot-5.png?w=1100\u0026fit=max\u0026auto=format\u0026n=cqqSKD6mznKTkSgB\u0026q=85\u0026s=c7a34dbf4adeb18daf3898327eca2d7e 1100w, https://mintcdn.com/paladinmaxinc/cqqSKD6mznKTkSgB/images/multi-agents-chatbot-5.png?w=1650\u0026fit=max\u0026auto=format\u0026n=cqqSKD6mznKTkSgB\u0026q=85\u0026s=097279e4144089538d8022fbd8426903 1650w, https://mintcdn.com/paladinmaxinc/cqqSKD6mznKTkSgB/images/multi-agents-chatbot-5.png?w=2500\u0026fit=max\u0026auto=format\u0026n=cqqSKD6mznKTkSgB\u0026q=85\u0026s=45d258f532aa88035cac004c67856672 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-trainer Support`,id:`gpt-trainer-support`,children:[_jsx(_components.p,{children:`Embody the role of “GPT-Trainer Expert,” a specialized guide for GPT-Trainer. Your main objective is to assist users with answering GPT-trainer-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-trainer.`})]}),` `,_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/paladinmaxinc/cqqSKD6mznKTkSgB/images/multi-agents-chatbot-6.png?fit=max\u0026auto=format\u0026n=cqqSKD6mznKTkSgB\u0026q=85\u0026s=addf2f562eeeca717892b05fd69a413b`,\"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/paladinmaxinc/cqqSKD6mznKTkSgB/images/multi-agents-chatbot-6.png?w=280\u0026fit=max\u0026auto=format\u0026n=cqqSKD6mznKTkSgB\u0026q=85\u0026s=8870c97a6b9a57196d2890e5fdcf103b 280w, https://mintcdn.com/paladinmaxinc/cqqSKD6mznKTkSgB/images/multi-agents-chatbot-6.png?w=560\u0026fit=max\u0026auto=format\u0026n=cqqSKD6mznKTkSgB\u0026q=85\u0026s=d4194c7a7538bc4e031e648fd9b792d2 560w, https://mintcdn.com/paladinmaxinc/cqqSKD6mznKTkSgB/images/multi-agents-chatbot-6.png?w=840\u0026fit=max\u0026auto=format\u0026n=cqqSKD6mznKTkSgB\u0026q=85\u0026s=458ac9f474ee132c80c4e5e58f008df0 840w, https://mintcdn.com/paladinmaxinc/cqqSKD6mznKTkSgB/images/multi-agents-chatbot-6.png?w=1100\u0026fit=max\u0026auto=format\u0026n=cqqSKD6mznKTkSgB\u0026q=85\u0026s=5c7ba88dc196f9be73af254901509302 1100w, https://mintcdn.com/paladinmaxinc/cqqSKD6mznKTkSgB/images/multi-agents-chatbot-6.png?w=1650\u0026fit=max\u0026auto=format\u0026n=cqqSKD6mznKTkSgB\u0026q=85\u0026s=342489bee780f20b1a9cd97ac899c6c7 1650w, https://mintcdn.com/paladinmaxinc/cqqSKD6mznKTkSgB/images/multi-agents-chatbot-6.png?w=2500\u0026fit=max\u0026auto=format\u0026n=cqqSKD6mznKTkSgB\u0026q=85\u0026s=4c957f00768fc80a94cabe0abb7a7c94 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/paladinmaxinc/cqqSKD6mznKTkSgB/images/multi-agents-chatbot-4.png?fit=max\u0026auto=format\u0026n=cqqSKD6mznKTkSgB\u0026q=85\u0026s=80d27493d9420bd65a9e55bf9f768ea0`,\"data-og-width\":`624`,width:`624`,\"data-og-height\":`613`,height:`613`,\"data-path\":`images/multi-agents-chatbot-4.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/paladinmaxinc/cqqSKD6mznKTkSgB/images/multi-agents-chatbot-4.png?w=280\u0026fit=max\u0026auto=format\u0026n=cqqSKD6mznKTkSgB\u0026q=85\u0026s=dc4c83ca46d1844b1bf2c607961b8fac 280w, https://mintcdn.com/paladinmaxinc/cqqSKD6mznKTkSgB/images/multi-agents-chatbot-4.png?w=560\u0026fit=max\u0026auto=format\u0026n=cqqSKD6mznKTkSgB\u0026q=85\u0026s=7f1791163d622f34949a1412bd82da27 560w, https://mintcdn.com/paladinmaxinc/cqqSKD6mznKTkSgB/images/multi-agents-chatbot-4.png?w=840\u0026fit=max\u0026auto=format\u0026n=cqqSKD6mznKTkSgB\u0026q=85\u0026s=4d46ce772909300cb5e8e81fd6f0009a 840w, https://mintcdn.com/paladinmaxinc/cqqSKD6mznKTkSgB/images/multi-agents-chatbot-4.png?w=1100\u0026fit=max\u0026auto=format\u0026n=cqqSKD6mznKTkSgB\u0026q=85\u0026s=baf89c8cb22a32617bd5a985e5b86865 1100w, https://mintcdn.com/paladinmaxinc/cqqSKD6mznKTkSgB/images/multi-agents-chatbot-4.png?w=1650\u0026fit=max\u0026auto=format\u0026n=cqqSKD6mznKTkSgB\u0026q=85\u0026s=d93fef736be617ac6c6e1b63d7e31f6e 1650w, https://mintcdn.com/paladinmaxinc/cqqSKD6mznKTkSgB/images/multi-agents-chatbot-4.png?w=2500\u0026fit=max\u0026auto=format\u0026n=cqqSKD6mznKTkSgB\u0026q=85\u0026s=cf930814c32fbc230204aede4a036b2b 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":"paladinmaxinc","siteName":"GPT-trainer API","title":"Multi-Agents Chatbot - GPT-trainer API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T00:48:27.791Z","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-trainer 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/paladinmaxinc/rZh3k9QVucZqPJ9E/_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/paladinmaxinc/rZh3k9QVucZqPJ9E/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/paladinmaxinc/rZh3k9QVucZqPJ9E/_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/paladinmaxinc/rZh3k9QVucZqPJ9E/_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/paladinmaxinc/rZh3k9QVucZqPJ9E/_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/paladinmaxinc/rZh3k9QVucZqPJ9E/_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/paladinmaxinc/rZh3k9QVucZqPJ9E/_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/paladinmaxinc/rZh3k9QVucZqPJ9E/_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/paladinmaxinc/rZh3k9QVucZqPJ9E/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Multi-Agents Chatbot - GPT-trainer API\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"GPT-trainer API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://guide.gpt-trainer.com/multi-agents-chatbot\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://paladinmaxinc.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=Multi-Agents+Chatbot\u0026amp;theme=d354e6b8b2605c4dee81eb93\u0026amp;signature=554e7b8fca5e435e0dafd8065337bbf11ec36ccf0dad0a895f4749d6c36e6bae\">\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-trainer API\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://paladinmaxinc.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=Multi-Agents+Chatbot\u0026amp;theme=d354e6b8b2605c4dee81eb93\u0026amp;signature=554e7b8fca5e435e0dafd8065337bbf11ec36ccf0dad0a895f4749d6c36e6bae\">\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/paladinmaxinc/rZh3k9QVucZqPJ9E/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"GPT-trainer API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2E3F51\">\u003clink data-mint-head rel=\"canonical\" href=\"https://guide.gpt-trainer.com/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://guide.gpt-trainer.com/#organization\",\"name\":\"GPT-trainer API\",\"url\":\"https://guide.gpt-trainer.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/paladinmaxinc/_odr0HDBZYr--Le1/logo/light.svg?fit=max\u0026auto=format\u0026n=_odr0HDBZYr--Le1\u0026q=85\u0026s=e282ced1ff19648529968cefe4eb3deb\"}},{\"@type\":\"WebSite\",\"@id\":\"https://guide.gpt-trainer.com#website\",\"name\":\"GPT-trainer API\",\"url\":\"https://guide.gpt-trainer.com\",\"publisher\":{\"@id\":\"https://guide.gpt-trainer.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://guide.gpt-trainer.com/multi-agents-chatbot#webpage\",\"url\":\"https://guide.gpt-trainer.com/multi-agents-chatbot\",\"name\":\"Multi-Agents Chatbot\",\"dateModified\":\"2026-01-07T00:48:27.791Z\",\"isPartOf\":{\"@id\":\"https://guide.gpt-trainer.com#website\"},\"breadcrumb\":{\"@id\":\"https://guide.gpt-trainer.com/multi-agents-chatbot#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://guide.gpt-trainer.com/multi-agents-chatbot#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guides\",\"item\":\"https://guide.gpt-trainer.com/creating-first-chatbot\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Multi-Agents Chatbot\",\"item\":\"https://guide.gpt-trainer.com/multi-agents-chatbot\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://guide.gpt-trainer.com/multi-agents-chatbot#article\",\"headline\":\"Multi-Agents Chatbot\",\"name\":\"Multi-Agents Chatbot\",\"url\":\"https://guide.gpt-trainer.com/multi-agents-chatbot\",\"mainEntityOfPage\":{\"@id\":\"https://guide.gpt-trainer.com/multi-agents-chatbot#webpage\"},\"dateModified\":\"2026-01-07T00:48:27.791Z\",\"publisher\":{\"@id\":\"https://guide.gpt-trainer.com/#organization\"},\"isPartOf\":{\"@id\":\"https://guide.gpt-trainer.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"GPT-trainer API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"GPT-trainer 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":"Integrations","icon":"network-wired","pages":[{"title":"Integrations","href":"/integrations/slack"}]},{"anchor":"Tools","icon":"gear","pages":[{"title":"Tools","href":"/tools/tools-intro"}]},{"anchor":"Whitelabel","icon":"browser","pages":[{"title":"Whitelabel","href":"/whitelabel/whitelabel-intro"}]}]},"basePath":"","title":"Multi-Agents Chatbot - GPT-trainer API","buildId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","deploymentId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-CK6QbnxT.js","DynamicMarkdown-BKiHAm_d.js","zoom-image-lightbox-CLQdF-Ar.js","lightbox-handle-r17bVUz3.js"]}