Create an advanced AI assistant with multiple MCP servers for complex workflows
Build a sophisticated personal assistant that can manage your schedule, search the web, send reminders, look up locations, and execute complex multi-step workflows. This advanced guide demonstrates how to combine multiple MCP servers to create a truly autonomous AI assistant.
What You’ll Learn
By the end of this guide, you’ll have:
A personal assistant bot with multiple capabilities
Understanding of how to orchestrate multiple MCP servers
Context Window: 20 messages (longer for assistants)
Response Timeout: 60 seconds (complex tasks take time)
Step 2: Create the Agentic Loop
1
Create Advanced Loop
Create a new agentic loop with these settings:
Name: “Personal Assistant Loop”
Description: “Multi-tool autonomous assistant”
Max Iterations: 20 (allow complex multi-step workflows)
Model: Claude 3.5 Sonnet or GPT-4 (required for complex reasoning)
2
Write Comprehensive System Prompt
Define the assistant’s capabilities and personality:
You are a helpful personal AI assistant with access to multipletools to help with scheduling, reminders, information lookup,and task automation.Available capabilities:- Time: Check current date/time, convert timezones- Conversation Context: Set reminders and search past conversations- HTTP: Search web, call APIs, fetch information- Google Maps: Find locations, get directions, search placesWhen a user makes a request:1. Break it down into steps2. Determine which tools you need3. Execute tool calls in the right order4. Combine results into a helpful response5. Confirm completion of the taskPersonality:- Professional but friendly- Proactive in suggesting next steps- Clear about what you can and cannot do- Ask clarifying questions when neededExamples:Request: "Remind me to call John tomorrow at 3 PM"Steps:1. Use time tool to get current date2. Calculate timestamp for tomorrow 3 PM3. Use reminder tool to create reminder4. Confirm: "I'll remind you to call John tomorrow at 3:00 PM"Request: "Find me a coffee shop near Central Park"Steps:1. Use Google Maps to search "coffee shop near Central Park, NYC"2. Get top results with ratings3. Format as list with names, ratings, addresses4. Ask if user wants directions to any of themRequest: "What did I talk about with Sarah last week?"Steps:1. Use conversation archive tool to search for "Sarah"2. Filter by last 7 days3. Summarize key discussion points4. Provide specific quotes if relevant
Step 3: Add Multiple MCP Servers
Connect all the tools your assistant needs.
1
Add Time Server
For date/time awareness:
Add MCP Server → Time
Timezone: Your timezone (e.g., America/New_York)
Save
The assistant can now:
Get current date and time
Convert between timezones
Calculate time differences
2
Add Conversation Context Server
For reminders and conversation history:
Add MCP Server → Conversation Context
Configure webhook URL to receive reminder notifications
Save
The assistant can now:
Create one-time and recurring reminders
List and manage upcoming reminders
Access archived conversation summaries
Search past conversations
3
Add HTTP Client Server
For web searches and API calls:
Add MCP Server → HTTP Client
Allow all domains or specify trusted domains
Save
The assistant can now:
Search the web
Fetch data from APIs
Call your custom services
4
Add Google Maps Server
For location-based queries:
Add MCP Server → Google Maps
Enter your Google Maps API key
Save
The assistant can now:
Search for places
Get directions
Find nearby businesses
Geocode addresses
5
Add OpenRouter Server (Optional)
For advanced AI model switching:
Add MCP Server → OpenRouter
Enter your OpenRouter API key
Save
The assistant can now:
Switch between AI models mid-conversation
Use specialized models for specific tasks
Compare outputs from different models
The AI will automatically see all available tools and decide which ones to use based on the user’s request. You don’t need to explicitly tell it which tool to use for each task.
Step 4: Set Up Reminder Callbacks
Configure callbacks so your assistant can send reminders when they’re due.
1
Create Callback Endpoint
Create a webhook that receives reminder notifications:
After 2 minutes, you should receive the reminder message.
Step 5: Connect Loop to Bot
1
Create Integration
In your bot’s Integrations tab:
Name: “Personal Assistant Loop”
Webhook URL: Your agentic loop webhook URL
Headers: Include API authentication
Timeout: 60 seconds
Weight: 100
2
Test the Integration
Use the built-in test feature:
Test message: "What time is it in Tokyo?"
The agent should:
Use the time tool to get current UTC time
Convert to Tokyo timezone
Return the current time in Tokyo
Advanced Workflows
Multi-Step Planning
The assistant can break down complex requests:
User: "Find a good Italian restaurant near me, check the weather, and if it's nice out, book a table for 7 PM tonight"Agent workflow:1. Use Google Maps to find Italian restaurants nearby2. Rank by rating and get top 3 options3. Use HTTP to check weather forecast4. Evaluate if weather is "nice" (sunny, no rain, temp > 60°F)5. If nice, use HTTP to call restaurant booking API6. Confirm booking with user7. Set reminder 1 hour before reservation
Scheduled Reports
Create recurring tasks that run automatically:
User: "Every Monday at 9 AM, analyze my conversations from last week and send me a summary"Agent setup:1. Create recurring schedule in loop settings2. Agent automatically runs every Monday at 9 AM3. Uses conversation archive tool to fetch last 7 days4. Analyzes common topics and questions5. Formats as executive summary6. Sends via callback to user's Slack
Contextual Actions
Use conversation history for smarter responses:
User: "Book a table at that restaurant we talked about yesterday"Agent workflow:1. Use conversation archive tool to search yesterday's messages2. Find mention of restaurant name and location3. Call restaurant booking API with details4. Confirm booking5. Set reminder 1 hour before reservation
Example Conversations
Example 1: Complex Scheduling
User: What's on my calendar tomorrow?Bot: [Uses time tool to get tomorrow's date] [Uses HTTP to call calendar API] Here's your schedule for tomorrow, January 16: 9:00 AM - Team standup 11:00 AM - Client call with Acme Corp 2:00 PM - Product review meeting 4:30 PM - 1:1 with Sarah You have 4 events scheduled. Would you like me to set any reminders for these?User: Yes, remind me 15 minutes before the client callBot: [Uses reminder tool to create reminder] [Calculates time: tomorrow 10:45 AM] Done! I'll remind you at 10:45 AM tomorrow, 15 minutes before your call with Acme Corp.
Example 2: Location-Based Search
User: I'm in Seattle. Find me a co-working space with good coffeeBot: [Uses Google Maps to search "coworking space Seattle"] [Filters for high ratings] [Checks reviews for coffee mentions] I found 3 great options for you: 1. **WeWork Pacific Tower** ⭐ 4.5/5 1200 12th Ave S Known for: Premium espresso bar, quiet work areas 0.8 miles from your location 2. **Spacious** ⭐ 4.7/5 505 Union Station Known for: Café-style workspace, great lattes 1.2 miles from your location 3. **Office Nomads** ⭐ 4.6/5 1617 Boylston Ave Known for: Community vibe, excellent coffee bar 1.5 miles from your location Would you like directions to any of these?User: Get me directions to Office NomadsBot: [Uses Google Maps directions API] Here are directions to Office Nomads: 📍 From your current location: 1.5 miles, 8 min drive Route: Head north on Pike St, turn right on Boylston Ave [Link to Google Maps] Safe travels!
Example 3: Information Synthesis
User: What's the weather like in Paris? I'm thinking of visiting next month.Bot: [Uses HTTP to call weather API for Paris] [Uses time tool to get next month's date] Current weather in Paris: 45°F, partly cloudy For next month (February), Paris typically sees: - Average temp: 43°F (6°C) - Rainfall: Moderate, 12 days of rain - Daylight: ~10 hours per day February can be chilly but it's a great time to visit - fewer tourists and museums are less crowded. Would you like me to find flight options or hotel recommendations?User: Yes, find flights from NYCBot: [Uses HTTP to search flight APIs] I found several options for NYC to Paris in February: • Feb 5-12: $450 round-trip (Air France, 1 stop) • Feb 12-19: $520 round-trip (Delta, direct) • Feb 19-26: $380 round-trip (Norwegian, 1 stop) Would you like me to set a reminder to book one of these?
API Examples
Trigger assistant with scheduled task
cURL
JavaScript
PHP
Python
curl -X POST https://api.chatbotplatform.io/v1/agentic-loops/loop_123/schedule \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "cron": "0 9 * * MON", "user_message": "Analyze my conversations from last week and send summary", "callback_url": "https://your-api.com/schedule-callback" }'
Always confirm before taking actions with consequences
Graceful Degradation
Handle tool failures without breaking the conversation
Privacy Aware
Be careful with sensitive data in conversation archives
System Prompt Guidelines
List Available Tools:
Available tools:- time: Get current date/time, convert timezones- reminders: Set, list, cancel reminders- http: Search web, call APIs- google_maps: Find places, get directions- conversation_archives: Search past conversations
Define Clear Workflows:
For scheduling tasks:1. Use time tool to understand current date/time2. Calculate target timestamp3. Create reminder with clear description4. Confirm to user with formatted time
Handle Failures:
If a tool call fails:1. Try alternative approach if possible2. If no alternative, explain what went wrong3. Offer to try again or suggest manual action4. Never leave user hanging
Troubleshooting
Assistant doesn’t use the right tool
Cause: Tool selection logic needs guidanceSolution: Add explicit instructions in system prompt:
For location queries (addresses, places, directions):→ Use google_maps toolFor time-related queries (current time, timezones, date calculations):→ Use time toolFor reminders and future tasks:→ Use reminder tool
Tool calls fail silently
Cause: MCP server configuration issuesSolution:
Check MCP server logs for errors
Verify API keys and credentials
Test each tool individually
Add error handling in system prompt
Assistant is too verbose
Cause: No output format guidelinesSolution: Add response format rules:
Response format:- Keep answers concise (2-3 sentences)- Use bullet points for lists- Only provide details if asked- End with a question or next step suggestion
Scheduled tasks don’t trigger
Cause: Cron expression or callback issuesSolution:
Verify cron expression is valid
Test callback URL manually
Check scheduler logs
Ensure timezone is correct
Advanced Customization
Add Custom Tools
Build your own MCP server for specialized functionality:
// Example: Custom calendar MCP serverconst mcpServer = { name: 'calendar', version: '1.0.0', tools: [ { name: 'list_events', description: 'List calendar events for a date range', parameters: { start_date: 'ISO date string', end_date: 'ISO date string' }, handler: async (params) => { // Your calendar API integration const events = await fetchCalendarEvents(params); return { events }; } } ]};
Language support:- Detect user's language from first message- Respond in the same language- For time-related queries, use user's timezone- Format dates according to locale (MM/DD vs DD/MM)
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Chatbot Platform Documentation","colors":{"primary":"#6366F1"},"footer":{},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"chatbotplatform","hasAudioNarration":false,"actualSubdomain":"chatbotplatform","customDomains":["docs.chatbotplatform.io"],"gitSource":{"type":"github","owner":"jonnx","repo":"docs.chatbotplatform.io","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b09daf3bc2b2d94fb276943","clientVersion":"0.0.4342","searchFilterCounts":[{"language":"default","tag":"Bots","count":40},{"language":"default","tag":"Guides","count":16},{"language":"default","tag":"MCP Servers","count":12},{"language":"default","tag":"Agentic Loops","count":10},{"language":"default","tag":"Channels","count":8},{"language":"default","tag":"Behaviors","count":3},{"language":"default","tag":"Conversations","count":3},{"language":"default","tag":"Integrations","count":3},{"language":"default","tag":"Getting Started","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"site-roles","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":"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":"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":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"guides/personal-assistant","slug":"/guides/personal-assistant","pageMetadata":{"title":"Building a Personal Assistant Bot","description":"Create an advanced AI assistant with multiple MCP servers for complex workflows","href":"/guides/personal-assistant"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create an advanced AI assistant with multiple MCP servers for complex workflows\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,Callout,Card,CardGroup,CodeBlock,Frame,Heading,OptimizedImage,Step,Steps,Tab,Tabs}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!Callout)_missingMdxReference(`Callout`,true);if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Build a sophisticated personal assistant that can manage your schedule, search the web, send reminders, look up locations, and execute complex multi-step workflows. This advanced guide demonstrates how to combine multiple MCP servers to create a truly autonomous AI assistant.`}),`\n`,_jsx(Heading,{level:`2`,id:`what-you’ll-learn`,children:`What You’ll Learn`}),`\n`,_jsx(_components.p,{children:`By the end of this guide, you’ll have:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`A personal assistant bot with multiple capabilities`}),`\n`,_jsx(_components.li,{children:`Understanding of how to orchestrate multiple MCP servers`}),`\n`,_jsx(_components.li,{children:`Knowledge of building complex agentic workflows`}),`\n`,_jsx(_components.li,{children:`Real-world examples of autonomous task execution`}),`\n`,_jsx(_components.li,{children:`Best practices for advanced bot configuration`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`prerequisites`,children:`Prerequisites`}),`\n`,_jsx(_components.p,{children:`This is an advanced guide. You should have:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Completed the `,_jsx(_components.a,{href:`/guides/support-bot-basics`,children:`Basic Support Bot`}),` and `,_jsx(_components.a,{href:`/guides/grounded-support-bot`,children:`Grounded Support Bot`}),` guides`]}),`\n`,_jsx(_components.li,{children:`Understanding of Agentic Loops and MCP servers`}),`\n`,_jsx(_components.li,{children:`Experience with API integrations`}),`\n`,_jsx(_components.li,{children:`Familiarity with webhook callbacks`}),`\n`,_jsx(_components.li,{children:`30-45 minutes for setup and testing`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-makes-a-personal-assistant-different`,children:`What Makes a Personal Assistant Different?`}),`\n`,_jsx(_components.p,{children:`Unlike support bots that answer questions, personal assistants:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Take Actions`}),`: Not just responding, but doing things on your behalf`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Multiple Tools`}),`: Use 3+ MCP servers simultaneously`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Complex Workflows`}),`: Chain multiple steps together`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Proactive`}),`: Can run scheduled tasks without user prompting`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Contextual`}),`: Remember preferences and past interactions`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`example-capabilities`,children:`Example Capabilities`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Schedule Management`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`“Remind me to call John at 3 PM tomorrow”`}),`\n`,_jsx(_components.li,{children:`“What’s on my calendar for next week?”`}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Information Lookup`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`“What’s the weather in San Francisco?”`}),`\n`,_jsx(_components.li,{children:`“Find coffee shops near Times Square”`}),`\n`,_jsx(_components.li,{children:`“Search for the latest news on AI”`}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Task Automation`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`“Every Monday at 9 AM, send me a summary of my week”`}),`\n`,_jsx(_components.li,{children:`“When I arrive at the office, remind me to check with the team”`}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Data Processing`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`“Analyze my conversation history and find common questions”`}),`\n`,_jsx(_components.li,{children:`“Summarize the key points from my last 10 conversations”`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`step-1-create-the-personal-assistant-bot`,children:`Step 1: Create the Personal Assistant Bot`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Create a New Bot`,children:[_jsx(_components.p,{children:`Create a bot specifically for personal assistant tasks:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Name`}),`: “Personal Assistant”`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Description`}),`: “AI assistant for scheduling, reminders, and information lookup”`]}),`\n`]})]}),_jsxs(Step,{title:`Connect to Slack`,children:[_jsx(_components.p,{children:`For a personal assistant, Slack works well:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Go to `,_jsx(_components.a,{href:`https://api.slack.com/apps`,children:`api.slack.com/apps`})]}),`\n`,_jsx(_components.li,{children:`Create a new Slack app`}),`\n`,_jsxs(_components.li,{children:[`Configure OAuth scopes: `,_jsx(_components.code,{children:`chat:write`}),`, `,_jsx(_components.code,{children:`chat:read`}),`, `,_jsx(_components.code,{children:`im:history`}),`, `,_jsx(_components.code,{children:`im:write`})]}),`\n`,_jsx(_components.li,{children:`Install to your workspace`}),`\n`,_jsx(_components.li,{children:`Copy Bot Token and Signing Secret`}),`\n`,_jsx(_components.li,{children:`Add Slack channel in Chatbot Platform`}),`\n`]}),_jsx(Frame,{caption:`Slack channel setup`,children:_jsx(OptimizedImage,{src:`https://mintlify.s3.us-west-1.amazonaws.com/chatbotplatform/images/screenshots/03-channels/02_slack_form.png`,alt:`Slack configuration`})})]}),_jsxs(Step,{title:`Configure Behavior`,children:[_jsx(_components.p,{children:`Set bot behaviors for natural interaction:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Typing Indicators`}),`: Enabled`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Reply Detection`}),`: Thread-based (for Slack)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Context Window`}),`: 20 messages (longer for assistants)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Response Timeout`}),`: 60 seconds (complex tasks take time)`]}),`\n`]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`step-2-create-the-agentic-loop`,children:`Step 2: Create the Agentic Loop`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Create Advanced Loop`,children:[_jsx(_components.p,{children:`Create a new agentic loop with these settings:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Name`}),`: “Personal Assistant Loop”`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Description`}),`: “Multi-tool autonomous assistant”`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Max Iterations`}),`: 20 (allow complex multi-step workflows)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Model`}),`: Claude 3.5 Sonnet or GPT-4 (required for complex reasoning)`]}),`\n`]})]}),_jsxs(Step,{title:`Write Comprehensive System Prompt`,children:[_jsx(_components.p,{children:`Define the assistant’s capabilities and personality:`}),_jsx(CodeBlock,{numberOfLines:`46`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`46`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`You are a helpful personal AI assistant with access to multiple`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`tools to help with scheduling, reminders, information lookup,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`and task automation.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Available capabilities:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Time: Check current date/time, convert timezones`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Conversation Context: Set reminders and search past conversations`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- HTTP: Search web, call APIs, fetch information`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Google Maps: Find locations, get directions, search places`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`When a user makes a request:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`1. Break it down into steps`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2. Determine which tools you need`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`3. Execute tool calls in the right order`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`4. Combine results into a helpful response`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`5. Confirm completion of the task`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Personality:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Professional but friendly`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Proactive in suggesting next steps`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Clear about what you can and cannot do`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Ask clarifying questions when needed`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Examples:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Request: \"Remind me to call John tomorrow at 3 PM\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Steps:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`1. Use time tool to get current date`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2. Calculate timestamp for tomorrow 3 PM`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`3. Use reminder tool to create reminder`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`4. Confirm: \"I'll remind you to call John tomorrow at 3:00 PM\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Request: \"Find me a coffee shop near Central Park\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Steps:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`1. Use Google Maps to search \"coffee shop near Central Park, NYC\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2. Get top results with ratings`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`3. Format as list with names, ratings, addresses`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`4. Ask if user wants directions to any of them`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Request: \"What did I talk about with Sarah last week?\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Steps:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`1. Use conversation archive tool to search for \"Sarah\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2. Filter by last 7 days`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`3. Summarize key discussion points`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`4. Provide specific quotes if relevant`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`step-3-add-multiple-mcp-servers`,children:`Step 3: Add Multiple MCP Servers`}),`\n`,_jsx(_components.p,{children:`Connect all the tools your assistant needs.`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Add Time Server`,children:[_jsx(_components.p,{children:`For date/time awareness:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Add MCP Server → `,_jsx(_components.strong,{children:`Time`})]}),`\n`,_jsxs(_components.li,{children:[`Timezone: Your timezone (e.g., `,_jsx(_components.code,{children:`America/New_York`}),`)`]}),`\n`,_jsx(_components.li,{children:`Save`}),`\n`]}),_jsx(_components.p,{children:`The assistant can now:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Get current date and time`}),`\n`,_jsx(_components.li,{children:`Convert between timezones`}),`\n`,_jsx(_components.li,{children:`Calculate time differences`}),`\n`]})]}),_jsxs(Step,{title:`Add Conversation Context Server`,children:[_jsx(_components.p,{children:`For reminders and conversation history:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Add MCP Server → `,_jsx(_components.strong,{children:`Conversation Context`})]}),`\n`,_jsx(_components.li,{children:`Configure webhook URL to receive reminder notifications`}),`\n`,_jsx(_components.li,{children:`Save`}),`\n`]}),_jsx(_components.p,{children:`The assistant can now:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Create one-time and recurring reminders`}),`\n`,_jsx(_components.li,{children:`List and manage upcoming reminders`}),`\n`,_jsx(_components.li,{children:`Access archived conversation summaries`}),`\n`,_jsx(_components.li,{children:`Search past conversations`}),`\n`]})]}),_jsxs(Step,{title:`Add HTTP Client Server`,children:[_jsx(_components.p,{children:`For web searches and API calls:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Add MCP Server → `,_jsx(_components.strong,{children:`HTTP Client`})]}),`\n`,_jsx(_components.li,{children:`Allow all domains or specify trusted domains`}),`\n`,_jsx(_components.li,{children:`Save`}),`\n`]}),_jsx(_components.p,{children:`The assistant can now:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Search the web`}),`\n`,_jsx(_components.li,{children:`Fetch data from APIs`}),`\n`,_jsx(_components.li,{children:`Call your custom services`}),`\n`]})]}),_jsxs(Step,{title:`Add Google Maps Server`,children:[_jsx(_components.p,{children:`For location-based queries:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Add MCP Server → `,_jsx(_components.strong,{children:`Google Maps`})]}),`\n`,_jsx(_components.li,{children:`Enter your Google Maps API key`}),`\n`,_jsx(_components.li,{children:`Save`}),`\n`]}),_jsx(_components.p,{children:`The assistant can now:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Search for places`}),`\n`,_jsx(_components.li,{children:`Get directions`}),`\n`,_jsx(_components.li,{children:`Find nearby businesses`}),`\n`,_jsx(_components.li,{children:`Geocode addresses`}),`\n`]})]}),_jsxs(Step,{title:`Add OpenRouter Server (Optional)`,children:[_jsx(_components.p,{children:`For advanced AI model switching:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Add MCP Server → `,_jsx(_components.strong,{children:`OpenRouter`})]}),`\n`,_jsx(_components.li,{children:`Enter your OpenRouter API key`}),`\n`,_jsx(_components.li,{children:`Save`}),`\n`]}),_jsx(_components.p,{children:`The assistant can now:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Switch between AI models mid-conversation`}),`\n`,_jsx(_components.li,{children:`Use specialized models for specific tasks`}),`\n`,_jsx(_components.li,{children:`Compare outputs from different models`}),`\n`]})]})]}),`\n`,_jsx(Callout,{type:`info`,children:_jsx(_components.p,{children:`The AI will automatically see all available tools and decide which ones to use based on the user’s request. You don’t need to explicitly tell it which tool to use for each task.`})}),`\n`,_jsx(Heading,{level:`2`,id:`step-4-set-up-reminder-callbacks`,children:`Step 4: Set Up Reminder Callbacks`}),`\n`,_jsx(_components.p,{children:`Configure callbacks so your assistant can send reminders when they’re due.`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Create Callback Endpoint`,children:[_jsx(_components.p,{children:`Create a webhook that receives reminder notifications:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`21`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`21`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Your callback endpoint`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`app`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`post`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'/reminder-callback'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`reminder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`user_id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`original_message`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Send reminder via Chatbot Platform API`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://api.chatbotplatform.io/v1/messages'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Bearer YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` bot_id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'bot_123'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` channel_type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'slack'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` user_id:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` user_id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` message:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `⏰ Reminder: \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`reminder`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`success:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})})]}),_jsxs(Step,{title:`Configure Callback in Agentic Loop`,children:[_jsx(_components.p,{children:`Add the callback URL to your agentic loop:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Go to loop settings → `,_jsx(_components.strong,{children:`Callbacks`})]}),`\n`,_jsxs(_components.li,{children:[`Add webhook URL: `,_jsx(_components.code,{children:`https://yourapi.com/reminder-callback`})]}),`\n`,_jsx(_components.li,{children:`Add authentication headers if needed`}),`\n`,_jsx(_components.li,{children:`Save`}),`\n`]})]}),_jsxs(Step,{title:`Test Reminders`,children:[_jsx(_components.p,{children:`Test by asking the assistant:`}),_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`\"Remind me to test the system in 2 minutes\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.p,{children:`After 2 minutes, you should receive the reminder message.`})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`step-5-connect-loop-to-bot`,children:`Step 5: Connect Loop to Bot`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Create Integration`,children:[_jsx(_components.p,{children:`In your bot’s Integrations tab:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Name`}),`: “Personal Assistant Loop”`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Webhook URL`}),`: Your agentic loop webhook URL`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Headers`}),`: Include API authentication`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Timeout`}),`: 60 seconds`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Weight`}),`: 100`]}),`\n`]})]}),_jsxs(Step,{title:`Test the Integration`,children:[_jsx(_components.p,{children:`Use the built-in test feature:`}),_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Test message: \"What time is it in Tokyo?\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.p,{children:`The agent should:`}),_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Use the time tool to get current UTC time`}),`\n`,_jsx(_components.li,{children:`Convert to Tokyo timezone`}),`\n`,_jsx(_components.li,{children:`Return the current time in Tokyo`}),`\n`]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`advanced-workflows`,children:`Advanced Workflows`}),`\n`,_jsx(Heading,{level:`3`,id:`multi-step-planning`,children:`Multi-Step Planning`}),`\n`,_jsx(_components.p,{children:`The assistant can break down complex requests:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`12`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`User: \"Find a good Italian restaurant near me, check the weather,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` and if it's nice out, book a table for 7 PM tonight\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Agent workflow:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`1. Use Google Maps to find Italian restaurants nearby`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2. Rank by rating and get top 3 options`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`3. Use HTTP to check weather forecast`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`4. Evaluate if weather is \"nice\" (sunny, no rain, temp > 60°F)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`5. If nice, use HTTP to call restaurant booking API`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`6. Confirm booking with user`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`7. Set reminder 1 hour before reservation`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`scheduled-reports`,children:`Scheduled Reports`}),`\n`,_jsx(_components.p,{children:`Create recurring tasks that run automatically:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`11`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`User: \"Every Monday at 9 AM, analyze my conversations from`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` last week and send me a summary\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Agent setup:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`1. Create recurring schedule in loop settings`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2. Agent automatically runs every Monday at 9 AM`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`3. Uses conversation archive tool to fetch last 7 days`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`4. Analyzes common topics and questions`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`5. Formats as executive summary`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`6. Sends via callback to user's Slack`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`contextual-actions`,children:`Contextual Actions`}),`\n`,_jsx(_components.p,{children:`Use conversation history for smarter responses:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`9`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`User: \"Book a table at that restaurant we talked about yesterday\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Agent workflow:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`1. Use conversation archive tool to search yesterday's messages`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2. Find mention of restaurant name and location`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`3. Call restaurant booking API with details`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`4. Confirm booking`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`5. Set reminder 1 hour before reservation`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`example-conversations`,children:`Example Conversations`}),`\n`,_jsx(Heading,{level:`3`,id:`example-1-complex-scheduling`,children:`Example 1: Complex Scheduling`}),`\n`,_jsx(CodeBlock,{numberOfLines:`23`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`23`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`User: What's on my calendar tomorrow?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Bot: [Uses time tool to get tomorrow's date]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` [Uses HTTP to call calendar API]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Here's your schedule for tomorrow, January 16:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` 9:00 AM - Team standup`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` 11:00 AM - Client call with Acme Corp`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` 2:00 PM - Product review meeting`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` 4:30 PM - 1:1 with Sarah`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` You have 4 events scheduled. Would you like me to set any`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` reminders for these?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`User: Yes, remind me 15 minutes before the client call`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Bot: [Uses reminder tool to create reminder]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` [Calculates time: tomorrow 10:45 AM]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Done! I'll remind you at 10:45 AM tomorrow, 15 minutes`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` before your call with Acme Corp.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`example-2-location-based-search`,children:`Example 2: Location-Based Search`}),`\n`,_jsx(CodeBlock,{numberOfLines:`38`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`38`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`User: I'm in Seattle. Find me a co-working space with good coffee`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Bot: [Uses Google Maps to search \"coworking space Seattle\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` [Filters for high ratings]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` [Checks reviews for coffee mentions]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` I found 3 great options for you:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` 1. **WeWork Pacific Tower** ⭐ 4.5/5`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` 1200 12th Ave S`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Known for: Premium espresso bar, quiet work areas`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` 0.8 miles from your location`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` 2. **Spacious** ⭐ 4.7/5`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` 505 Union Station`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Known for: Café-style workspace, great lattes`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` 1.2 miles from your location`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` 3. **Office Nomads** ⭐ 4.6/5`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` 1617 Boylston Ave`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Known for: Community vibe, excellent coffee bar`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` 1.5 miles from your location`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Would you like directions to any of these?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`User: Get me directions to Office Nomads`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Bot: [Uses Google Maps directions API]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Here are directions to Office Nomads:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` 📍 From your current location: 1.5 miles, 8 min drive`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Route: Head north on Pike St, turn right on Boylston Ave`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` [Link to Google Maps]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Safe travels!`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`example-3-information-synthesis`,children:`Example 3: Information Synthesis`}),`\n`,_jsx(CodeBlock,{numberOfLines:`29`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`29`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`User: What's the weather like in Paris? I'm thinking of`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` visiting next month.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Bot: [Uses HTTP to call weather API for Paris]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` [Uses time tool to get next month's date]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Current weather in Paris: 45°F, partly cloudy`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` For next month (February), Paris typically sees:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` - Average temp: 43°F (6°C)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` - Rainfall: Moderate, 12 days of rain`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` - Daylight: ~10 hours per day`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` February can be chilly but it's a great time to visit -`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` fewer tourists and museums are less crowded. Would you`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` like me to find flight options or hotel recommendations?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`User: Yes, find flights from NYC`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Bot: [Uses HTTP to search flight APIs]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` I found several options for NYC to Paris in February:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` • Feb 5-12: $450 round-trip (Air France, 1 stop)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` • Feb 12-19: $520 round-trip (Delta, direct)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` • Feb 19-26: $380 round-trip (Norwegian, 1 stop)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Would you like me to set a reminder to book one of these?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`api-examples`,children:`API Examples`}),`\n`,_jsxs(AccordionGroup,{children:[_jsx(Accordion,{title:`Trigger assistant with scheduled task`,id:`trigger-assistant-with-scheduled-task`,children:_jsxs(Tabs,{children:[_jsx(Tab,{title:`cURL`,id:`curl`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.chatbotplatform.io/v1/agentic-loops/loop_123/schedule`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"cron\": \"0 9 * * MON\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"user_message\": \"Analyze my conversations from last week and send summary\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"callback_url\": \"https://your-api.com/schedule-callback\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})}),_jsx(Tab,{title:`JavaScript`,id:`javascript`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`18`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`18`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.chatbotplatform.io/v1/agentic-loops/loop_123/schedule'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Bearer YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` cron:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '0 9 * * MON'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` user_message:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Analyze my conversations from last week and send summary'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` callback_url:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://your-api.com/schedule-callback'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` schedule`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Scheduled task:'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`schedule`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})})}),_jsx(Tab,{title:`PHP`,id:`php`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`php`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`php`,children:_jsxs(_components.code,{language:`php`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$schedule`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` Http`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`withToken`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`post`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://api.chatbotplatform.io/v1/agentic-loops/loop_123/schedule'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'cron'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '0 9 * * MON'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'user_message'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Analyze my conversations from last week and send summary'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'callback_url'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://your-api.com/schedule-callback'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]);`})}),`\n`]})})})}),_jsx(Tab,{title:`Python`,id:`python`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.chatbotplatform.io/v1/agentic-loops/loop_123/schedule'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Authorization'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Bearer YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'cron'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'0 9 * * MON'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'user_message'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Analyze my conversations from last week and send summary'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'callback_url'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://your-api.com/schedule-callback'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`schedule `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response.json()`})]}),`\n`]})})})})]})}),_jsx(Accordion,{title:`Send proactive message`,id:`send-proactive-message`,children:_jsxs(Tabs,{children:[_jsx(Tab,{title:`cURL`,id:`curl-2`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.chatbotplatform.io/v1/messages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"bot_id\": \"bot_123\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"channel_type\": \"slack\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"user_id\": \"U123456\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"message\": \"⏰ Your reminder: Call John at 3 PM\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})}),_jsx(Tab,{title:`JavaScript`,id:`javascript-2`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://api.chatbotplatform.io/v1/messages'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Bearer YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` bot_id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'bot_123'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` channel_type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'slack'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` user_id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'U123456'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` message:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '⏰ Your reminder: Call John at 3 PM'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})})}),_jsx(Tab,{title:`PHP`,id:`php-2`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`php`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`php`,children:_jsxs(_components.code,{language:`php`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Http`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`withToken`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`post`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://api.chatbotplatform.io/v1/messages'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'bot_id'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'bot_123'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'channel_type'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'slack'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'user_id'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'U123456'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'message'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '⏰ Your reminder: Call John at 3 PM'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]);`})}),`\n`]})})})}),_jsx(Tab,{title:`Python`,id:`python-2`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`requests.post(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.chatbotplatform.io/v1/messages'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Authorization'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Bearer YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'bot_id'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'bot_123'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'channel_type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'slack'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'user_id'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'U123456'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'message'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'⏰ Your reminder: Call John at 3 PM'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})})})]})})]}),`\n`,_jsxs(_components.p,{children:[`For complete API documentation, see the `,_jsx(_components.a,{href:`https://app.chatbotplatform.io/openapi`,children:`OpenAPI specification`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`best-practices`,children:`Best Practices`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Clear Capabilities`,icon:`list-check`,children:_jsx(_components.p,{children:`Tell users what the assistant can and cannot do`})}),_jsx(Card,{title:`Confirm Actions`,icon:`check`,children:_jsx(_components.p,{children:`Always confirm before taking actions with consequences`})}),_jsx(Card,{title:`Graceful Degradation`,icon:`shield`,children:_jsx(_components.p,{children:`Handle tool failures without breaking the conversation`})}),_jsx(Card,{title:`Privacy Aware`,icon:`lock`,children:_jsx(_components.p,{children:`Be careful with sensitive data in conversation archives`})})]}),`\n`,_jsx(Heading,{level:`3`,id:`system-prompt-guidelines`,children:`System Prompt Guidelines`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`List Available Tools:`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`7`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Available tools:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- time: Get current date/time, convert timezones`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- reminders: Set, list, cancel reminders`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- http: Search web, call APIs`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- google_maps: Find places, get directions`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- conversation_archives: Search past conversations`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Define Clear Workflows:`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`6`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`For scheduling tasks:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`1. Use time tool to understand current date/time`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2. Calculate target timestamp`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`3. Create reminder with clear description`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`4. Confirm to user with formatted time`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Handle Failures:`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`6`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`If a tool call fails:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`1. Try alternative approach if possible`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2. If no alternative, explain what went wrong`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`3. Offer to try again or suggest manual action`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`4. Never leave user hanging`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`troubleshooting`,children:`Troubleshooting`}),`\n`,_jsx(Heading,{level:`3`,id:`assistant-doesn’t-use-the-right-tool`,children:`Assistant doesn’t use the right tool`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Cause:`}),` Tool selection logic needs guidance`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Solution:`}),` Add explicit instructions in system prompt:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`9`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`For location queries (addresses, places, directions):`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`→ Use google_maps tool`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`For time-related queries (current time, timezones, date calculations):`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`→ Use time tool`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`For reminders and future tasks:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`→ Use reminder tool`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`tool-calls-fail-silently`,children:`Tool calls fail silently`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Cause:`}),` MCP server configuration issues`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Solution:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Check MCP server logs for errors`}),`\n`,_jsx(_components.li,{children:`Verify API keys and credentials`}),`\n`,_jsx(_components.li,{children:`Test each tool individually`}),`\n`,_jsx(_components.li,{children:`Add error handling in system prompt`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`assistant-is-too-verbose`,children:`Assistant is too verbose`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Cause:`}),` No output format guidelines`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Solution:`}),` Add response format rules:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`6`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Response format:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Keep answers concise (2-3 sentences)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Use bullet points for lists`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Only provide details if asked`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- End with a question or next step suggestion`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`scheduled-tasks-don’t-trigger`,children:`Scheduled tasks don’t trigger`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Cause:`}),` Cron expression or callback issues`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Solution:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Verify cron expression is valid`}),`\n`,_jsx(_components.li,{children:`Test callback URL manually`}),`\n`,_jsx(_components.li,{children:`Check scheduler logs`}),`\n`,_jsx(_components.li,{children:`Ensure timezone is correct`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`advanced-customization`,children:`Advanced Customization`}),`\n`,_jsx(Heading,{level:`3`,id:`add-custom-tools`,children:`Add Custom Tools`}),`\n`,_jsx(_components.p,{children:`Build your own MCP server for specialized functionality:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`20`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`20`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Example: Custom calendar MCP server`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` mcpServer`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` name:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'calendar'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` version:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '1.0.0'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` tools:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` name:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'list_events'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` description:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'List calendar events for a date range'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` parameters:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` start_date:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'ISO date string'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` end_date:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'ISO date string'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` handler`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` async`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`params`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Your calendar API integration`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` events`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetchCalendarEvents`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`params`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`events`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` };`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/mcp-servers/building-servers`,children:`Building Custom MCP Servers`}),` for details.`]}),`\n`,_jsx(Heading,{level:`3`,id:`personality-customization`,children:`Personality Customization`}),`\n`,_jsx(_components.p,{children:`Adjust the assistant’s personality in the system prompt:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`6`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Personality traits:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Tone: [Professional | Casual | Humorous | Formal]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Verbosity: [Concise | Detailed | Balanced]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Proactiveness: [Suggestive | Reactive | Anticipatory]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Formality: [Use first names | Formal titles | Friendly]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`multi-language-support`,children:`Multi-Language Support`}),`\n`,_jsx(_components.p,{children:`Handle multiple languages:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`6`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Language support:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Detect user's language from first message`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Respond in the same language`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- For time-related queries, use user's timezone`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Format dates according to locale (MM/DD vs DD/MM)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`next-steps`,children:`Next Steps`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Multi-Channel Deployment`,icon:`globe`,href:`/guides/multi-channel-deployment`,children:_jsx(_components.p,{children:`Deploy your assistant to multiple platforms`})}),_jsx(Card,{title:`Build Custom MCP Servers`,icon:`code`,href:`/mcp-servers/building-servers`,children:_jsx(_components.p,{children:`Create your own specialized tools`})}),_jsx(Card,{title:`Manage Conversation Context`,icon:`messages`,href:`/guides/conversation-context`,children:_jsx(_components.p,{children:`Advanced context management techniques`})}),_jsx(Card,{title:`API Reference`,icon:`book`,href:`https://app.chatbotplatform.io/openapi`,children:_jsx(_components.p,{children:`Complete API documentation`})})]}),`\n`,_jsx(Heading,{level:`2`,id:`related-documentation`,children:`Related Documentation`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/agentic-loops/overview`,children:`Agentic Loops Overview`}),` - Core concepts`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/mcp-servers/overview`,children:`MCP Servers`}),` - Available tools`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/mcp-servers/conversation-context`,children:`Conversation Context MCP Server`}),` - Reminders and history`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/mcp-servers/google-maps`,children:`Google Maps MCP Server`}),` - Location services`]}),`\n`]})]})}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":"Building a Personal Assistant Bot","description":"Create an advanced AI assistant with multiple MCP servers for complex workflows","href":"/guides/personal-assistant"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"What You’ll Learn","slug":"what-you’ll-learn","depth":2,"children":[]},{"title":"Prerequisites","slug":"prerequisites","depth":2,"children":[]},{"title":"What Makes a Personal Assistant Different?","slug":"what-makes-a-personal-assistant-different","depth":2,"children":[{"title":"Example Capabilities","slug":"example-capabilities","depth":3,"children":[]}]},{"title":"Step 1: Create the Personal Assistant Bot","slug":"step-1-create-the-personal-assistant-bot","depth":2,"children":[]},{"title":"Step 2: Create the Agentic Loop","slug":"step-2-create-the-agentic-loop","depth":2,"children":[]},{"title":"Step 3: Add Multiple MCP Servers","slug":"step-3-add-multiple-mcp-servers","depth":2,"children":[]},{"title":"Step 4: Set Up Reminder Callbacks","slug":"step-4-set-up-reminder-callbacks","depth":2,"children":[]},{"title":"Step 5: Connect Loop to Bot","slug":"step-5-connect-loop-to-bot","depth":2,"children":[]},{"title":"Advanced Workflows","slug":"advanced-workflows","depth":2,"children":[{"title":"Multi-Step Planning","slug":"multi-step-planning","depth":3,"children":[]},{"title":"Scheduled Reports","slug":"scheduled-reports","depth":3,"children":[]},{"title":"Contextual Actions","slug":"contextual-actions","depth":3,"children":[]}]},{"title":"Example Conversations","slug":"example-conversations","depth":2,"children":[{"title":"Example 1: Complex Scheduling","slug":"example-1-complex-scheduling","depth":3,"children":[]},{"title":"Example 2: Location-Based Search","slug":"example-2-location-based-search","depth":3,"children":[]},{"title":"Example 3: Information Synthesis","slug":"example-3-information-synthesis","depth":3,"children":[]}]},{"title":"API Examples","slug":"api-examples","depth":2,"children":[]},{"title":"Best Practices","slug":"best-practices","depth":2,"children":[{"title":"System Prompt Guidelines","slug":"system-prompt-guidelines","depth":3,"children":[]}]},{"title":"Troubleshooting","slug":"troubleshooting","depth":2,"children":[{"title":"Assistant doesn’t use the right tool","slug":"assistant-doesn’t-use-the-right-tool","depth":3,"children":[]},{"title":"Tool calls fail silently","slug":"tool-calls-fail-silently","depth":3,"children":[]},{"title":"Assistant is too verbose","slug":"assistant-is-too-verbose","depth":3,"children":[]},{"title":"Scheduled tasks don’t trigger","slug":"scheduled-tasks-don’t-trigger","depth":3,"children":[]}]},{"title":"Advanced Customization","slug":"advanced-customization","depth":2,"children":[{"title":"Add Custom Tools","slug":"add-custom-tools","depth":3,"children":[]},{"title":"Personality Customization","slug":"personality-customization","depth":3,"children":[]},{"title":"Multi-Language Support","slug":"multi-language-support","depth":3,"children":[]}]},{"title":"Next Steps","slug":"next-steps","depth":2,"children":[]},{"title":"Related Documentation","slug":"related-documentation","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"chatbotplatform","siteName":"Chatbot Platform Documentation","title":"Building a Personal Assistant Bot - Chatbot Platform Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-28T19:20:14.787Z","originalFileLocation":"guides/personal-assistant.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=\"description\" content=\"Create an advanced AI assistant with multiple MCP servers for complex workflows\">\u003cmeta data-mint-head name=\"application-name\" content=\"Chatbot Platform Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/chatbotplatform/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/chatbotplatform/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/chatbotplatform/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/chatbotplatform/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"Building a Personal Assistant Bot - Chatbot Platform Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create an advanced AI assistant with multiple MCP servers for complex workflows\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Chatbot Platform Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.chatbotplatform.io/guides/personal-assistant\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://chatbotplatform.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=Building+a+Personal+Assistant+Bot\u0026amp;description=Create+an+advanced+AI+assistant+with+multiple+MCP+servers+for+complex+workflows\u0026amp;theme=c1a9ad670a5314018887f4f9\u0026amp;signature=0d4a4c32cf545edb14feaf856e01551d2fa21d330faae66b4c6edcd082602a68\">\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=\"Building a Personal Assistant Bot - Chatbot Platform Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create an advanced AI assistant with multiple MCP servers for complex workflows\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://chatbotplatform.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=Building+a+Personal+Assistant+Bot\u0026amp;description=Create+an+advanced+AI+assistant+with+multiple+MCP+servers+for+complex+workflows\u0026amp;theme=c1a9ad670a5314018887f4f9\u0026amp;signature=0d4a4c32cf545edb14feaf856e01551d2fa21d330faae66b4c6edcd082602a68\">\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=\"https://mintlify.s3.us-west-1.amazonaws.com/chatbotplatform/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Chatbot Platform Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366F1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.chatbotplatform.io/guides/personal-assistant\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/personal-assistant.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.chatbotplatform.io/#organization\",\"name\":\"Chatbot Platform Documentation\",\"url\":\"https://docs.chatbotplatform.io\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.chatbotplatform.io#website\",\"name\":\"Chatbot Platform Documentation\",\"url\":\"https://docs.chatbotplatform.io\",\"publisher\":{\"@id\":\"https://docs.chatbotplatform.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.chatbotplatform.io/guides/personal-assistant#webpage\",\"url\":\"https://docs.chatbotplatform.io/guides/personal-assistant\",\"name\":\"Building a Personal Assistant Bot\",\"description\":\"Create an advanced AI assistant with multiple MCP servers for complex workflows\",\"dateModified\":\"2026-10-28T19:20:14.787Z\",\"isPartOf\":{\"@id\":\"https://docs.chatbotplatform.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.chatbotplatform.io/guides/personal-assistant#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.chatbotplatform.io/guides/personal-assistant#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guides\",\"item\":\"https://docs.chatbotplatform.io/guides/embedded-assistant-with-mcp\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Building a Personal Assistant Bot\",\"item\":\"https://docs.chatbotplatform.io/guides/personal-assistant\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.chatbotplatform.io/guides/personal-assistant#article\",\"headline\":\"Building a Personal Assistant Bot\",\"name\":\"Building a Personal Assistant Bot\",\"description\":\"Create an advanced AI assistant with multiple MCP servers for complex workflows\",\"url\":\"https://docs.chatbotplatform.io/guides/personal-assistant\",\"mainEntityOfPage\":{\"@id\":\"https://docs.chatbotplatform.io/guides/personal-assistant#webpage\"},\"dateModified\":\"2026-10-28T19:20:14.787Z\",\"publisher\":{\"@id\":\"https://docs.chatbotplatform.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.chatbotplatform.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Chatbot Platform Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Chatbot Platform Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/guides/personal-assistant.md","siteName":"Chatbot Platform Documentation","nav":{"global":null,"tabs":[{"tab":"Guides","groups":[{"group":"Getting Started","pages":[{"title":"Welcome to Chatbot Platform","href":"/introduction"},{"title":"Quickstart","href":"/quickstart"}]},{"group":"Guides","pages":[{"title":"Embed an AI assistant backed by your product's MCP server","href":"/guides/embedded-assistant-with-mcp"},{"title":"Building a Basic Support Bot","href":"/guides/support-bot-basics"},{"title":"Building a Grounded Support Bot","description":"Add agentic loops and MCP servers for responses grounded in real data","href":"/guides/grounded-support-bot"},{"title":"Building a Personal Assistant Bot","href":"/guides/personal-assistant"},{"title":"Multi-Channel Bot Deployment","description":"Deploy your bot across Telegram, Slack, Discord, and more with unified management","href":"/guides/multi-channel-deployment"},{"title":"Webhook Integration Guide","href":"/guides/webhook-integration-guide"},{"title":"Managing Conversation Context","href":"/guides/conversation-context"}]}]},{"tab":"Bots","pages":[{"title":"Bots","href":"/bots/overview"}]},{"tab":"Agentic Loops","pages":[{"title":"Agentic Loops","href":"/agentic-loops/overview"}]},{"tab":"MCP Servers","pages":[{"title":"MCP Servers","href":"/mcp-servers/overview"}]}]},"basePath":"","title":"Building a Personal Assistant Bot - Chatbot Platform Documentation","deploymentId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","buildId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-CUYDhsh7.js","DynamicMarkdown-D8KwOkxZ.js","zoom-image-lightbox-lceUjs6n.js","lightbox-handle-r17bVUz3.js"]}