[{"data":1,"prerenderedAt":557},["ShallowReactive",2],{"docs.navigation":3,"docs.content.mcp-build-a-bot":342,"docs.section.mcp":540,"docs.prevnext.mcp-build-a-bot":554},[4,46,100,137,158,192,253,260,279,296,317],{"id":5,"title":6,"position":7,"children":8},32,"Introduction",0,[9,13,17,22,27,32,36,41],{"id":10,"title":6,"slug":11,"position":7,"directory":12},34,"getting-started","introduction",{"id":14,"title":15,"slug":16,"position":7,"directory":12},35,"Quickstart guide","quickstart-guide",{"id":18,"title":19,"slug":20,"position":21,"directory":12},37,"What is a bot?","what-is-a-bot",3,{"id":23,"title":24,"slug":25,"position":26,"directory":12},39,"What is a data source?","what-is-a-data-source",4,{"id":28,"title":29,"slug":30,"position":31,"directory":12},38,"What is a channel?","what-is-a-channel",6,{"id":33,"title":34,"slug":35,"position":31,"directory":12},40,"What is a power-up?","what-is-a-power-up",{"id":37,"title":38,"slug":39,"position":40,"directory":12},33,"FAQ","faq",7,{"id":42,"title":43,"slug":44,"position":45,"directory":12},36,"Troubleshooting","troubleshooting",8,{"id":7,"title":47,"position":48,"children":49},"Bots",1,[50,54,58,62,66,70,74,77,81,84,87,92,96],{"id":21,"title":51,"slug":52,"position":7,"directory":53},"Bot advanced settings","bot-advanced-settings","bots",{"id":55,"title":56,"slug":57,"position":48,"directory":53},10,"Prompt engineering tips","prompt-engineering-tips",{"id":59,"title":60,"slug":61,"position":59,"directory":53},2,"Available models","available-models",{"id":63,"title":64,"slug":65,"position":21,"directory":53},13,"Widget customisation","widget-customisation",{"id":67,"title":68,"slug":69,"position":26,"directory":53},12,"Webhooks","webhooks",{"id":71,"title":72,"slug":73,"position":71,"directory":53},5,"Custom domains","custom-domains",{"id":26,"title":75,"slug":76,"position":31,"directory":53},"Bot testing","bot-testing",{"id":78,"title":79,"slug":80,"position":31,"directory":53},11,"SDK","sdk",{"id":40,"title":82,"slug":83,"position":40,"directory":53},"Human takeover","human-takeover",{"id":31,"title":85,"slug":86,"position":55,"directory":53},"Duplicating bots","duplicating-bots",{"id":88,"title":89,"slug":90,"position":91,"directory":53},9,"My Chats","my-chats",15,{"id":48,"title":93,"slug":94,"position":95,"directory":53},"Analytics","analytics",16,{"id":45,"title":97,"slug":98,"position":99,"directory":53},"Lead capture","lead-capture",20,{"id":101,"title":102,"position":59,"children":103},23,"Data sources",[104,109,113,117,121,125,129,133],{"id":105,"title":106,"slug":107,"position":7,"directory":108},25,"File","file-data-source","data-sources",{"id":110,"title":111,"slug":112,"position":7,"directory":108},28,"Notion","notion-data-source",{"id":114,"title":115,"slug":116,"position":59,"directory":108},30,"Website","website-data-source",{"id":118,"title":119,"slug":120,"position":21,"directory":108},31,"YouTube","youtube-data-source",{"id":122,"title":123,"slug":124,"position":26,"directory":108},29,"RSS","rss-data-source",{"id":126,"title":127,"slug":128,"position":71,"directory":108},27,"Manual","manual-data-source",{"id":130,"title":131,"slug":132,"position":88,"directory":108},24,"Data source best practices","data-source-best-practices",{"id":134,"title":135,"slug":136,"position":55,"directory":108},26,"Keeping your bot up to date","keeping-your-bot-up-to-date",{"id":138,"title":139,"position":21,"children":140},41,"MCP",[141,146,150,154],{"id":142,"title":143,"slug":144,"position":48,"directory":145},44,"Getting started","mcp-getting-started","mcp",{"id":147,"title":148,"slug":149,"position":59,"directory":145},42,"Authentication","mcp-authentication",{"id":151,"title":152,"slug":153,"position":21,"directory":145},45,"Tools","mcp-tools",{"id":155,"title":156,"slug":157,"position":26,"directory":145},43,"Build a bot","mcp-build-a-bot",{"id":159,"title":160,"position":26,"children":161},14,"Channels",[162,167,171,175,178,181,185,188],{"id":163,"title":164,"slug":165,"position":7,"directory":166},21,"Web","web-channel","channels",{"id":168,"title":169,"slug":170,"position":48,"directory":166},18,"Slack","slack-bot-channel",{"id":172,"title":173,"slug":174,"position":48,"directory":166},19,"Slack (V1 Deprecated)","slack-channel",{"id":95,"title":176,"slug":177,"position":59,"directory":166},"Discord","discord-channel",{"id":99,"title":179,"slug":180,"position":21,"directory":166},"Telegram","telegram-channel",{"id":182,"title":183,"slug":184,"position":26,"directory":166},22,"WhatsApp","whatsapp-channel",{"id":91,"title":186,"slug":187,"position":71,"directory":166},"API","api-channel",{"id":189,"title":190,"slug":191,"position":45,"directory":166},17,"Email","email-channel",{"id":193,"title":194,"position":26,"children":195},52,"Power-ups",[196,201,205,209,213,217,221,225,229,233,237,241,245,249],{"id":197,"title":198,"slug":199,"position":7,"directory":200},54,"Browse Webpage Power-up","browse-webpage-power-up","power-ups",{"id":202,"title":203,"slug":204,"position":7,"directory":200},58,"Google Search Power-up","google-search-power-up",{"id":206,"title":207,"slug":208,"position":7,"directory":200},60,"Power-up basics","power-up-basics",{"id":210,"title":211,"slug":212,"position":7,"directory":200},65,"Use API Power-up","use-api-power-up",{"id":214,"title":215,"slug":216,"position":48,"directory":200},66,"Zapier Power-up","zapier-power-up",{"id":218,"title":219,"slug":220,"position":59,"directory":200},59,"Notion Power-ups","notion-power-ups",{"id":222,"title":223,"slug":224,"position":21,"directory":200},64,"Talk to a Human Power-up","talk-to-a-human",{"id":226,"title":227,"slug":228,"position":26,"directory":200},57,"Email Power-ups","email-power-up",{"id":230,"title":231,"slug":232,"position":71,"directory":200},62,"Send an email","send-email-power-up",{"id":234,"title":235,"slug":236,"position":55,"directory":200},63,"Slack Power-ups","slack-power-ups",{"id":238,"title":239,"slug":240,"position":78,"directory":200},55,"Discord Power-ups","discord-power-ups",{"id":242,"title":243,"slug":244,"position":67,"directory":200},53,"Bot-to-bot power-up","bot-to-bot-power-up",{"id":246,"title":247,"slug":248,"position":63,"directory":200},56,"Display power-ups","display-power-ups",{"id":250,"title":251,"slug":252,"position":159,"directory":200},61,"Power-up display modes","power-up-display-modes",{"id":254,"title":255,"position":71,"children":256},67,"Tasks",[257],{"id":258,"title":255,"slug":259,"position":7,"directory":259},68,"tasks",{"id":261,"title":262,"position":31,"children":263},69,"Teams",[264,267,271,275],{"id":265,"title":262,"slug":266,"position":7,"directory":266},70,"teams",{"id":268,"title":269,"slug":270,"position":48,"directory":266},71,"Inviting team members","teams-inviting",{"id":272,"title":273,"slug":274,"position":59,"directory":266},72,"Managing team members","teams-member-roles",{"id":276,"title":277,"slug":278,"position":21,"directory":266},73,"Transferring bots","teams-transferring-bots",{"id":280,"title":281,"position":31,"children":282},79,"Use cases",[283,288,292],{"id":284,"title":285,"slug":286,"position":7,"directory":287},82,"Build a support bot for your website","support-bot","use-cases",{"id":289,"title":290,"slug":291,"position":48,"directory":287},80,"Build an internal knowledge bot for your team","internal-knowledge-bot",{"id":293,"title":294,"slug":295,"position":59,"directory":287},81,"Build a lead capture bot for your website","lead-capture-bot",{"id":297,"title":298,"position":40,"children":299},74,"Usage and billing",[300,305,309,313],{"id":301,"title":302,"slug":303,"position":7,"directory":304},76,"How does billing work?","how-does-billing-work","usage-and-billing",{"id":306,"title":307,"slug":308,"position":7,"directory":304},78,"What are storage tokens?","what-are-storage-tokens",{"id":310,"title":311,"slug":312,"position":21,"directory":304},77,"What are message tokens?","what-are-message-tokens",{"id":314,"title":315,"slug":316,"position":26,"directory":304},75,"Add-ons","addons",{"id":318,"title":319,"position":45,"children":320},46,"Plans",[321,326,330,334,338],{"id":322,"title":323,"slug":324,"position":7,"directory":325},49,"Free","free-plan","plans",{"id":327,"title":328,"slug":329,"position":48,"directory":325},47,"Basic","basic-plan",{"id":331,"title":332,"slug":333,"position":59,"directory":325},51,"Standard","standard-plan",{"id":335,"title":336,"slug":337,"position":21,"directory":325},50,"Pro","pro-plan",{"id":339,"title":340,"slug":341,"position":26,"directory":325},48,"Enterprise","enterprise-plan",{"id":343,"title":156,"body":344,"description":531,"extension":532,"longTitle":533,"meta":534,"navigation":535,"path":536,"position":26,"seo":537,"stem":538,"__hash__":539},"docs\u002Fdocs\u002Fmcp\u002Fmcp-build-a-bot.md",{"type":345,"value":346,"toc":518},"minimark",[347,356,361,364,368,371,383,386,390,395,403,407,418,435,439,447,451,454,459,477,481,492,496,499],[348,349,350,351,355],"p",{},"This guide shows how to build a working support bot end to end using your connected agent. You will not run any of the tools by hand - you describe what you want, and the agent uses the MCP tools to make it happen. If you have not connected yet, start with ",[352,353,143],"a",{"href":354},"\u002Fdocs\u002Fmcp-getting-started",".",[357,358,360],"h2",{"id":359},"the-goal","The goal",[348,362,363],{},"We will build a bot that answers customer questions from a help site, and hands off to a human when it cannot help.",[357,365,367],{"id":366},"ask-your-agent","Ask your agent",[348,369,370],{},"With your client connected, a single prompt is enough to get started. For example:",[372,373,374],"blockquote",{},[348,375,376,377,382],{},"Build me a customer support bot for my company. Use the help pages at ",[352,378,379],{"href":379,"rel":380},"https:\u002F\u002Fhelp.example.com",[381],"nofollow"," as its knowledge, and add a way for customers to reach a human if the bot can't answer.",[348,384,385],{},"Behind the scenes, your agent works through the recipe below. Understanding the shape helps you steer it and know what \"good\" looks like.",[357,387,389],{"id":388},"what-a-good-build-looks-like","What a good build looks like",[391,392,394],"h3",{"id":393},"_1-create-the-bot","1. Create the bot",[348,396,397,398,402],{},"The agent calls ",[399,400,401],"code",{},"create_bot"," to make the bot, then sets a clear support-focused prompt so it answers in your tone and stays on topic.",[391,404,406],{"id":405},"_2-add-your-knowledge","2. Add your knowledge",[348,408,409,410,413,414,417],{},"The agent uses ",[399,411,412],{},"discover_pages"," to preview which pages of your help site would be indexed, refines the list if needed, then calls ",[399,415,416],{},"add_data_source"," to add the pages as a WEB source. This is what grounds the bot's answers in your content rather than guesswork.",[419,420,423],"callout",{"title":421,"type":422},"Tune retrieval for multi-page sites","info",[348,424,425,426,430,431,434],{},"For a support bot that reads many pages, ask the agent to turn on ",[427,428,429],"strong",{},"enhanced retrieval"," and raise the amount of context it pulls in (",[399,432,433],{},"update_bot","). Enhanced retrieval rephrases a follow-up into a standalone question before searching, which matters a lot for real conversations. If your content is many short rows (like an FAQ feed), a lower relevance threshold helps short entries surface.",[391,436,438],{"id":437},"_3-add-an-escape-hatch","3. Add an escape hatch",[348,440,441,442,446],{},"A support bot should never dead-end. The agent attaches an escalation power-up - \"talk to a human\" for hand-off, or an email\u002Fwebhook action for \"contact us\" - using the ",[352,443,445],{"href":444},"\u002Fdocs\u002Fmcp-tools#the-discovery-pattern","discovery pattern",": list the power-up types, fetch the schema, then create it.",[391,448,450],{"id":449},"_4-test-before-you-ship","4. Test before you ship",[348,452,453],{},"Ask the agent to test the bot with questions whose answers you know are in your content:",[372,455,456],{},[348,457,458],{},"Ask the support bot what your refund window is and check it cites the right page.",[348,460,409,461,464,465,468,469,472,473,476],{},[399,462,463],{},"start_chat"," and ",[399,466,467],{},"send_message",", then reads the response - including which sources it cited - so you can confirm it is answering from your knowledge and not making things up. For ongoing confidence, ask it to add test cases (",[399,470,471],{},"create_test_case",") and run them (",[399,474,475],{},"start_test_run",") so you catch regressions later.",[391,478,480],{"id":479},"_5-go-live","5. Go live",[348,482,483,484,487,488,491],{},"Once you are happy, the agent can configure the web channel (",[399,485,486],{},"update_web_channel",") so the bot is ready to embed on your site. See ",[352,489,160],{"href":490},"\u002Fdocs\u002Fweb-channel"," for putting the widget on your pages.",[357,493,495],{"id":494},"keep-going","Keep going",[348,497,498],{},"From here you can ask your agent to iterate: refine the prompt, add more data sources, wire up webhooks for lead capture, or connect the bot to other channels. Anything you can do in the dashboard, you can now ask for in plain language.",[500,501,502,510],"ul",{},[503,504,505,506,355],"li",{},"Browse the full ",[352,507,509],{"href":508},"\u002Fdocs\u002Fmcp-tools","tool reference",[503,511,512,513,517],{},"Review ",[352,514,516],{"href":515},"\u002Fdocs\u002Fmcp-authentication","authentication and scopes"," to understand what an agent can change.",{"title":519,"searchDepth":59,"depth":59,"links":520},"",[521,522,523,530],{"id":359,"depth":59,"text":360},{"id":366,"depth":59,"text":367},{"id":388,"depth":59,"text":389,"children":524},[525,526,527,528,529],{"id":393,"depth":21,"text":394},{"id":405,"depth":21,"text":406},{"id":437,"depth":21,"text":438},{"id":449,"depth":21,"text":450},{"id":479,"depth":21,"text":480},{"id":494,"depth":59,"text":495},"A worked example - go from a single prompt to a live support bot using your AI agent and the Chat Thing MCP server.","md",null,{},true,"\u002Fdocs\u002Fmcp\u002Fmcp-build-a-bot",{"title":156,"description":531},"docs\u002Fmcp\u002Fmcp-build-a-bot","KoNxmDByrz2Cfp1RQJSiiP16B1JeNXcv4CeIjxj89Jk",{"id":541,"title":139,"body":542,"description":519,"extension":532,"longTitle":533,"meta":549,"navigation":535,"path":550,"position":21,"seo":551,"stem":552,"__hash__":553},"docs\u002Fdocs\u002Fmcp\u002F_index.md",{"type":345,"value":543,"toc":547},[544],[545,546,139],"h1",{"id":145},{"title":519,"searchDepth":59,"depth":59,"links":548},[],{},"\u002Fdocs\u002Fmcp\u002F_index",{"title":139,"description":519},"docs\u002Fmcp\u002F_index","zsqL9ZsYL3KwgDezwFV8kWdp_Pnt6oragCh5YPaidn4",{"prev":555,"next":556},{"title":152,"slug":153,"position":21,"directory":145},{"title":164,"slug":165,"position":7,"directory":166},1783961476197]