[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-twilio-twilio-agent-connect":3,"mdc-jzk6eu-key":33,"related-repo-twilio-twilio-agent-connect":4745,"related-org-twilio-twilio-agent-connect":4842},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":29,"sourceUrl":31,"mdContent":32},"twilio-agent-connect","connect AI agents to Twilio channels","Connect third-party AI agents (OpenAI, Bedrock, LangChain, Microsoft Foundry) to Twilio's communication channels using the Twilio Agent Connect SDK. Covers identity resolution, memory and context management via Conversation Memory, conversation orchestration via Conversation Orchestrator, multi-channel handling (Voice, SMS, RCS, WhatsApp, Chat), and AI-to-human escalation. Use this skill when integrating an existing LLM agent with Twilio services.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"twilio","Twilio","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Ftwilio.png",[12,16,19,22],{"name":13,"slug":14,"type":15},"Agents","agents","tag",{"name":17,"slug":18,"type":15},"API Development","api-development",{"name":20,"slug":21,"type":15},"Communications","communications",{"name":9,"slug":8,"type":15},25,"https:\u002F\u002Fgithub.com\u002Ftwilio\u002Fai","2026-07-17T06:06:05.217098",null,7,[],{"repoUrl":24,"stars":23,"forks":27,"topics":30,"description":26},[],"https:\u002F\u002Fgithub.com\u002Ftwilio\u002Fai\u002Ftree\u002FHEAD\u002Fskills\u002Ftwilio\u002Ftwilio-agent-connect","---\nname: twilio-agent-connect\ndescription: >\n  Connect third-party AI agents (OpenAI, Bedrock, LangChain, Microsoft Foundry)\n  to Twilio's communication channels using the Twilio Agent Connect SDK. Covers\n  identity resolution, memory and context management via Conversation Memory,\n  conversation orchestration via Conversation Orchestrator, multi-channel\n  handling (Voice, SMS, RCS, WhatsApp, Chat), and AI-to-human escalation.\n  Use this skill when integrating an existing LLM agent with Twilio services.\n---\n\n# Twilio Agent Connect\n\n## Overview\n\nTwilio Agent Connect (TAC) is a Python and TypeScript SDK that integrates third-party LLM agentic applications with Twilio's communication technologies. TAC provides middleware for identity resolution, memory\u002Fcontext management (via Conversation Memory), conversation orchestration (via Conversation Orchestrator), and multi-channel handling (Voice, SMS, RCS, WhatsApp, Chat).\n\n**Key Architecture Principle**: TAC is not an agent runtime itself—it's middleware that enables existing LLM applications (OpenAI Agents SDK, Bedrock, LangChain, Microsoft Foundry, etc.) to leverage Twilio Conversations services.\n\n## Product Context\n\n### Core Twilio Conversations Services\n\nTAC integrates with three core Twilio Conversations services:\n\n1. **Conversation Memory (Memory Store)** - Persistent user context and memory management\n   - Profile storage with traits and attributes\n   - Observation and summary storage\n   - Session history with full conversation context\n   - Identity resolution (profile lookup by phone\u002Femail)\n\n2. **Conversation Orchestrator** - Multi-channel conversation lifecycle management\n   - Unified conversation API across all channels\n   - Participant management\n   - Communication routing\n   - Conversation grouping and configuration\n\n3. **Enterprise Knowledge** - Knowledge base integration\n   - Semantic search across knowledge bases\n   - RAG (Retrieval-Augmented Generation) support\n   - Knowledge chunk retrieval with relevance scoring\n\n### Supported Channels\n\nTAC provides built-in support for:\n- **Voice** - ConversationRelay (WebSocket-based real-time voice)\n- **SMS** - Text messaging\n- **RCS** - Rich Communication Services\n- **WhatsApp** - WhatsApp Business messaging\n- **Chat** - Web chat integrations\n\nAll channels support both inbound (customer-initiated) and outbound (agent-initiated) conversations.\n\n### ConversationRelay-Only Mode\n\nTAC supports a simplified \"ConversationRelay-only\" mode for getting started with voice conversations without requiring Conversation Orchestrator or Conversation Memory setup. This mode provides:\n- TwiML generation\n- WebSocket protocol handling\n- Voice conversation lifecycle management\n- Callback-based message processing\n\n## Installation\n\n### Python SDK\n\n**Requirements**: Python 3.10+\n\n```bash\n# Using uv (recommended)\nuv add git+https:\u002F\u002Fgithub.com\u002Ftwilio\u002Ftwilio-agent-connect-python.git\n\n# With server support (includes FastAPI and uvicorn for TACFastAPIServer)\nuv add git+https:\u002F\u002Fgithub.com\u002Ftwilio\u002Ftwilio-agent-connect-python.git --extra server\n\n# Using pip\npip install git+https:\u002F\u002Fgithub.com\u002Ftwilio\u002Ftwilio-agent-connect-python.git\npip install \"git+https:\u002F\u002Fgithub.com\u002Ftwilio\u002Ftwilio-agent-connect-python.git[server]\"\n```\n\n### TypeScript SDK\n\n**Requirements**: Node.js 22.13+\n\n```bash\n# Clone and build (not yet published to npm)\ngit clone https:\u002F\u002Fgithub.com\u002Ftwilio\u002Ftwilio-agent-connect-typescript.git\ncd twilio-agent-connect-typescript\nnpm install\nnpm run build\n```\n\n## Quick Start\n\n### Multi-Channel Agent with OpenAI (Python)\n\n```python\nfrom dotenv import load_dotenv\nfrom openai import AsyncOpenAI\nfrom tac import TAC, TACConfig\nfrom tac.adapters.openai import with_tac_memory\nfrom tac.channels.sms import SMSChannel\nfrom tac.channels.voice import VoiceChannel\nfrom tac.server import TACFastAPIServer\n\nload_dotenv()\n\ntac = TAC(config=TACConfig.from_env())\nvoice_channel = VoiceChannel(tac)\nsms_channel = SMSChannel(tac)\nopenai_client = AsyncOpenAI()\n\nconversation_history = {}\nSYSTEM_INSTRUCTIONS = (\n    \"You are a customer service agent speaking with a user over voice or SMS. \"\n    \"Keep responses short and conversational — a sentence or two. \"\n    \"Do not use markdown, asterisks, bullets, or emojis; your words will be \"\n    \"spoken aloud or sent as plain text.\"\n)\n\nasync def handle_message_ready(user_message, context, memory_response):\n    conv_id = context.conversation_id\n\n    if conv_id not in conversation_history:\n        conversation_history[conv_id] = []\n    conversation_history[conv_id].append({\"role\": \"user\", \"content\": user_message})\n\n    # Inject conversation memory and profile into OpenAI client\n    client = with_tac_memory(openai_client, memory_response, context)\n\n    response = await client.responses.create(\n        model=\"gpt-5.4-mini\",\n        instructions=SYSTEM_INSTRUCTIONS,\n        input=conversation_history[conv_id]\n    )\n\n    llm_response = response.output_text\n    conversation_history[conv_id].append({\"role\": \"assistant\", \"content\": llm_response})\n\n    return llm_response\n\ntac.on_message_ready(handle_message_ready)\nTACFastAPIServer(tac=tac, voice_channel=voice_channel, messaging_channels=[sms_channel]).start()\n```\n\n### Multi-Channel Agent with OpenAI (TypeScript)\n\n```typescript\nimport { config } from 'dotenv';\nimport OpenAI from 'openai';\nimport {\n  TAC,\n  TACConfig,\n  VoiceChannel,\n  SMSChannel,\n  TACServer,\n  MemoryPromptBuilder,\n} from 'twilio-agent-connect';\n\nconfig();\n\nconst openai = new OpenAI();\nconst tac = await TAC.create({ config: TACConfig.fromEnv() });\nconst voiceChannel = new VoiceChannel(tac);\nconst smsChannel = new SMSChannel(tac);\n\ntac.registerChannel(voiceChannel);\ntac.registerChannel(smsChannel);\n\nconst conversationHistory: Record\u003Cstring, OpenAI.Chat.ChatCompletionMessageParam[]> = {};\n\nconst SYSTEM_INSTRUCTIONS =\n  'You are a customer service agent speaking with a user over voice or SMS. ' +\n  'Keep responses short and conversational — a sentence or two. ' +\n  'Do not use markdown, asterisks, bullets, or emojis; your words will be ' +\n  'spoken aloud or sent as plain text.';\n\ntac.onMessageReady(async ({ conversationId, message, memory, session }) => {\n  const convId = conversationId as string;\n\n  if (!conversationHistory[convId]) {\n    conversationHistory[convId] = [];\n  }\n\n  const memoryContext = MemoryPromptBuilder.build(memory, session);\n  const systemPrompt = SYSTEM_INSTRUCTIONS + (memoryContext ? `\\n\\n${memoryContext}` : '');\n\n  conversationHistory[convId].push({ role: 'user', content: message });\n\n  const response = await openai.chat.completions.create({\n    model: 'gpt-5.4-mini',\n    messages: [\n      { role: 'system', content: systemPrompt },\n      ...conversationHistory[convId],\n    ],\n  });\n\n  const llmResponse = response.choices[0]?.message?.content ?? '';\n  conversationHistory[convId].push({ role: 'assistant', content: llmResponse });\n\n  return llmResponse;\n});\n\nconst server = new TACServer(tac);\nawait server.start();\n```\n\n## Configuration\n\n### Required Environment Variables\n\n```bash\n# Twilio Account Credentials\nTWILIO_ACCOUNT_SID=ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\nTWILIO_AUTH_TOKEN=your_auth_token\nTWILIO_API_KEY=SKxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\nTWILIO_API_SECRET=your_api_key_secret\n\n# Conversation Configuration\nTWILIO_CONVERSATION_CONFIGURATION_ID=conv_configuration_xxxx\n\n# Phone Number\nTWILIO_PHONE_NUMBER=+1234567890\n\n# Server Configuration (for Voice)\nTWILIO_VOICE_PUBLIC_DOMAIN=your-domain.ngrok.io\n```\n\n### Optional Memory Configuration\n\n```bash\n# Conversation Memory (optional)\nTWILIO_MEMORY_STORE_ID=mem_service_xxxx\nTWILIO_TRAIT_GROUPS=Contact,Preferences\n```\n\n## Cloud Platform Integrations\n\n### AWS Integration\n\n**Package**: `twilio-agent-connect-aws`\n\nConnect AWS agent services to Twilio channels:\n\n```bash\n# With Strands SDK\npip install twilio-agent-connect-aws[strands,server]\n\n# With Bedrock Agents\npip install twilio-agent-connect-aws[bedrock,server]\n\n# With Bedrock AgentCore\npip install twilio-agent-connect-aws[agentcore,server]\n```\n\n**Features**:\n- **StrandsConnector** - AWS Strands SDK integration with per-conversation agent isolation\n- **BedrockConnector** - AWS Bedrock Agents (console-created agents)\n- **BedrockAgentCoreConnector** - AWS Bedrock AgentCore (custom agent code deployment)\n\n**Repository**: https:\u002F\u002Fgithub.com\u002Ftwilio\u002Ftwilio-agent-connect-aws\n\n### Microsoft\u002FAzure Integration\n\n**Package**: `twilio-agent-connect-microsoft` (formerly `tac-azure`)\n\nConnect Microsoft Foundry agents to Twilio channels:\n\n```bash\n# With Agent Framework\npip install twilio-agent-connect-microsoft[agent-framework,server]\n\n# With Voice Live\npip install twilio-agent-connect-microsoft[voice-live,server]\n```\n\n**Features**:\n- **AgentFrameworkConnector** - Microsoft Agent Framework integration\n  - Supports Foundry Hosted Agents, Foundry Prompt Agents, Azure OpenAI (Responses API, Chat Completions)\n  - Pluggable session persistence (in-memory, file, Cosmos DB)\n  - Memory context injection and lifecycle hooks\n- **VoiceLiveConnector** - Voice Live API integration\n  - Text-in \u002F text-streaming-out over WebSocket\n  - STT and TTS handled by Twilio ConversationRelay\n  - Native interrupt handling via Voice Live `response.cancel`\n  - Server-side conversation state management\n  - Tool execution with async handlers\n\n**Repository**: https:\u002F\u002Fgithub.com\u002Ftwilio\u002Ftwilio-agent-connect-microsoft\n\n## Key Features\n\n### Memory Management\n\nAutomatic integration with Twilio Conversation Memory for persistent user context:\n- Profile retrieval with traits\n- Observation and summary storage\n- Session history with full message context\n- Automatic profile lookup by phone\u002Femail\n\n### Conversation Lifecycle\n\nAutomatic tracking of conversation sessions and state:\n- Multi-channel conversation initialization\n- Participant management\n- Conversation status tracking\n- Graceful cleanup on conversation end\n\n### Message Flow\n\n1. **Webhook\u002FConnection Received** - Twilio sends webhook (messaging) or WebSocket connection (voice)\n2. **Channel Processing** - Channel validates and processes the incoming event\n3. **Memory Retrieval** - TAC optionally retrieves user memories and profile from Conversation Memory\n4. **Callback Invoked** - Your `on_message_ready` callback receives user message, context, and optional memory response\n5. **Response Handling** - Your callback returns a response string that TAC routes to the appropriate channel\n\n### Outbound Conversations\n\nTAC supports agent-initiated conversations across all channels:\n- Programmatic conversation creation\n- Participant addition\n- Message sending\n- Full conversation lifecycle management\n\n## Voice-Specific Features\n\n### ConversationRelay Protocol\n\nTAC handles the full ConversationRelay WebSocket protocol:\n- TwiML generation for inbound calls\n- WebSocket connection management\n- Message parsing and validation\n- Automatic conversation initialization\n- Status callback handling\n\n### Voice Live API (Microsoft Integration)\n\nThe Voice Live connector provides:\n- Text-in \u002F text-streaming-out interface\n- STT (Speech-to-Text) handled by Twilio\n- TTS (Text-to-Speech) handled by Twilio\n- Server-side interrupt handling\n- No local session management required\n\n## Messaging-Specific Features\n\n### SMS Channel\n\n- Idempotency-based deduplication using Twilio's `i-twilio-idempotency-token` header\n- Fire-and-forget webhook processing with immediate 200 response\n- Automatic conversation initialization\n- Profile retrieval per message\n\n### Multi-Channel Support\n\nTAC provides unified handling across SMS, RCS, WhatsApp, and Chat:\n- Single `on_message_ready` callback for all channels\n- Automatic channel detection and routing\n- Per-channel response formatting\n\n## Advanced Features\n\n### Conversation Intelligence Integration\n\nProcess Conversation Intelligence operator results to create observations and summaries:\n\n```python\nfrom tac.core.config import ConversationIntelligenceConfig\n\nconfig = TACConfig.from_env()\nconfig.conversation_intelligence_config = ConversationIntelligenceConfig(\n    configuration_id=\"your_ci_configuration_id\",\n    observation_operator_sid=\"LY...\",\n    summary_operator_sid=\"LY...\",\n)\n\n@app.post(\"\u002Fci-webhook\")\nasync def ci_webhook_handler(request: Request):\n    payload = await request.json()\n    result = await tac.process_conversation_intelligence_event(payload)\n    return result.model_dump()\n```\n\n### Custom Tools\n\nTAC provides built-in tools for common operations:\n- Memory recall\n- Knowledge base search\n- Studio Flow handoff (human escalation)\n- Message sending\n\nYou can also create custom tools using the `@function_tool` decorator:\n\n```python\nfrom tac.tools import function_tool\n\n@function_tool()\ndef send_email(recipient: str, subject: str, body: str) -> bool:\n    \"\"\"\n    Sends an email to a recipient.\n\n    Args:\n        recipient: Email address\n        subject: Email subject\n        body: Email body\n\n    Returns:\n        True on success, False on failure\n    \"\"\"\n    # Implementation here\n    return True\n```\n\n### Adapter Pattern\n\nTAC provides adapters for automatic memory injection into LLM runtimes:\n\n**Python OpenAI Adapter**:\n```python\nfrom tac.adapters.openai import with_tac_memory\n\nclient = with_tac_memory(openai_client, memory_response, context)\n# Memory and profile automatically injected into system messages\n```\n\n**TypeScript Memory Prompt Builder**:\n```typescript\nimport { MemoryPromptBuilder } from 'twilio-agent-connect';\n\nconst memoryContext = MemoryPromptBuilder.build(memory, session);\nconst systemPrompt = SYSTEM_INSTRUCTIONS + `\\n\\n${memoryContext}`;\n```\n\n## Documentation Links\n\n- **Quickstart Guide**: https:\u002F\u002Fwww.twilio.com\u002Fdocs\u002Fplatform\u002Ftac\u002Fquickstart\n- **Overview Documentation**: https:\u002F\u002Fwww.twilio.com\u002Fdocs\u002Fplatform\u002Ftac\u002Foverview\n- **Python SDK**: https:\u002F\u002Fgithub.com\u002Ftwilio\u002Ftwilio-agent-connect-python\n- **TypeScript SDK**: https:\u002F\u002Fgithub.com\u002Ftwilio\u002Ftwilio-agent-connect-typescript\n- **AWS Integration**: https:\u002F\u002Fgithub.com\u002Ftwilio\u002Ftwilio-agent-connect-aws\n- **Microsoft Integration**: https:\u002F\u002Fgithub.com\u002Ftwilio\u002Ftwilio-agent-connect-microsoft\n\n## Setup Wizard\n\nTAC includes a web-based setup wizard to automatically create required Twilio services:\n\n```bash\n# Python SDK\ngit clone https:\u002F\u002Fgithub.com\u002Ftwilio\u002Ftwilio-agent-connect-python.git\ncd twilio-agent-connect-python\nmake setup  # Opens http:\u002F\u002Flocalhost:8080\n```\n\nThe wizard creates:\n- Conversation Memory store\n- Conversation Configuration\n- Generates `.env` file with all required credentials\n\n## Common Use Cases\n\n### Customer Support Agent\n\nBuild an AI-powered customer support agent with:\n- Multi-channel support (voice, SMS, WhatsApp)\n- Persistent customer memory and context\n- Knowledge base integration\n- Human handoff capability\n\n### Outbound Campaign Agent\n\nCreate an agent that initiates conversations:\n- Schedule outbound calls or messages\n- Personalized messaging based on customer profile\n- Conversation tracking and analytics\n\n### Voice IVR Replacement\n\nReplace traditional IVR with conversational AI:\n- Natural language understanding\n- Context-aware responses\n- Seamless handoff to human agents\n\n### Multi-Language Support\n\nBuild globally accessible agents:\n- Automatic language detection\n- Multi-language conversation memory\n- Localized responses\n\n## Best Practices\n\n### Error Handling\n\nTAC provides lenient error handling:\n- Profile lookup failures fall back to Conversation Orchestrator API\n- Memory retrieval failures continue without exceptions\n- All errors logged with appropriate severity levels\n\n### Performance Optimization\n\n- Use immediate 200 responses for webhooks to prevent retries\n- Enable conversation deduplication for high-traffic applications\n- Leverage conversation grouping for related interactions\n\n### Security\n\n- Never commit API keys or tokens to version control\n- Use environment variables for all credentials\n- Implement webhook signature validation (Twilio SDK provides helpers)\n- Use HTTPS for all webhook endpoints\n\n### Testing\n\n- Use ngrok for local webhook testing\n- Test each channel independently before multi-channel deployment\n- Implement logging for debugging webhook processing\n- Use TAC's built-in logging with channel-specific logger names\n\n## Troubleshooting\n\n### Common Issues\n\n**Memory not retrieving**:\n- Verify `TWILIO_MEMORY_STORE_ID` is set\n- Check profile_id is present in webhook data\n- Enable DEBUG logging: `TWILIO_TAC_LOG_LEVEL=DEBUG`\n\n**Voice not connecting**:\n- Verify `TWILIO_VOICE_PUBLIC_DOMAIN` is accessible\n- Check TwiML endpoint returns valid XML\n- Ensure WebSocket endpoint is reachable\n- Verify Conversation Configuration is active\n\n**Duplicate messages**:\n- Ensure webhook returns 200 immediately\n- Verify idempotency token is passed to channel\n- Check deduplication capacity is sufficient\n\n**Channel isolation issues**:\n- Verify each channel has distinct conversation sessions\n- Check `configuration_id` filtering is enabled\n- Ensure conversation status is properly tracked\n\n## Version Requirements\n\n- **Python SDK**: Python 3.10+\n- **TypeScript SDK**: Node.js 22.13+\n- **Twilio SDK**: twilio>=9.8.3\n\n## License\n\nMIT License - see repository LICENSE files for details.\n",{"data":34,"body":35},{"name":4,"description":6},{"type":36,"children":37},"root",[38,46,53,59,70,76,83,88,188,194,199,252,257,263,268,291,297,303,313,466,472,481,558,564,570,973,979,2609,2615,2621,2800,2806,2855,2861,2867,2883,2888,2981,2990,3023,3040,3046,3069,3074,3136,3144,3219,3233,3239,3245,3250,3272,3278,3283,3305,3311,3372,3378,3383,3406,3412,3418,3423,3451,3457,3462,3490,3496,3502,3532,3538,3543,3568,3574,3580,3585,3701,3707,3712,3734,3747,3886,3892,3897,3906,3943,3952,4100,4106,4194,4200,4205,4266,4271,4297,4303,4309,4314,4337,4343,4348,4366,4372,4377,4395,4401,4406,4424,4430,4436,4441,4459,4465,4483,4489,4512,4518,4541,4547,4553,4562,4593,4602,4631,4640,4658,4667,4693,4699,4728,4734,4739],{"type":39,"tag":40,"props":41,"children":42},"element","h1",{"id":4},[43],{"type":44,"value":45},"text","Twilio Agent Connect",{"type":39,"tag":47,"props":48,"children":50},"h2",{"id":49},"overview",[51],{"type":44,"value":52},"Overview",{"type":39,"tag":54,"props":55,"children":56},"p",{},[57],{"type":44,"value":58},"Twilio Agent Connect (TAC) is a Python and TypeScript SDK that integrates third-party LLM agentic applications with Twilio's communication technologies. TAC provides middleware for identity resolution, memory\u002Fcontext management (via Conversation Memory), conversation orchestration (via Conversation Orchestrator), and multi-channel handling (Voice, SMS, RCS, WhatsApp, Chat).",{"type":39,"tag":54,"props":60,"children":61},{},[62,68],{"type":39,"tag":63,"props":64,"children":65},"strong",{},[66],{"type":44,"value":67},"Key Architecture Principle",{"type":44,"value":69},": TAC is not an agent runtime itself—it's middleware that enables existing LLM applications (OpenAI Agents SDK, Bedrock, LangChain, Microsoft Foundry, etc.) to leverage Twilio Conversations services.",{"type":39,"tag":47,"props":71,"children":73},{"id":72},"product-context",[74],{"type":44,"value":75},"Product Context",{"type":39,"tag":77,"props":78,"children":80},"h3",{"id":79},"core-twilio-conversations-services",[81],{"type":44,"value":82},"Core Twilio Conversations Services",{"type":39,"tag":54,"props":84,"children":85},{},[86],{"type":44,"value":87},"TAC integrates with three core Twilio Conversations services:",{"type":39,"tag":89,"props":90,"children":91},"ol",{},[92,127,160],{"type":39,"tag":93,"props":94,"children":95},"li",{},[96,101,103],{"type":39,"tag":63,"props":97,"children":98},{},[99],{"type":44,"value":100},"Conversation Memory (Memory Store)",{"type":44,"value":102}," - Persistent user context and memory management",{"type":39,"tag":104,"props":105,"children":106},"ul",{},[107,112,117,122],{"type":39,"tag":93,"props":108,"children":109},{},[110],{"type":44,"value":111},"Profile storage with traits and attributes",{"type":39,"tag":93,"props":113,"children":114},{},[115],{"type":44,"value":116},"Observation and summary storage",{"type":39,"tag":93,"props":118,"children":119},{},[120],{"type":44,"value":121},"Session history with full conversation context",{"type":39,"tag":93,"props":123,"children":124},{},[125],{"type":44,"value":126},"Identity resolution (profile lookup by phone\u002Femail)",{"type":39,"tag":93,"props":128,"children":129},{},[130,135,137],{"type":39,"tag":63,"props":131,"children":132},{},[133],{"type":44,"value":134},"Conversation Orchestrator",{"type":44,"value":136}," - Multi-channel conversation lifecycle management",{"type":39,"tag":104,"props":138,"children":139},{},[140,145,150,155],{"type":39,"tag":93,"props":141,"children":142},{},[143],{"type":44,"value":144},"Unified conversation API across all channels",{"type":39,"tag":93,"props":146,"children":147},{},[148],{"type":44,"value":149},"Participant management",{"type":39,"tag":93,"props":151,"children":152},{},[153],{"type":44,"value":154},"Communication routing",{"type":39,"tag":93,"props":156,"children":157},{},[158],{"type":44,"value":159},"Conversation grouping and configuration",{"type":39,"tag":93,"props":161,"children":162},{},[163,168,170],{"type":39,"tag":63,"props":164,"children":165},{},[166],{"type":44,"value":167},"Enterprise Knowledge",{"type":44,"value":169}," - Knowledge base integration",{"type":39,"tag":104,"props":171,"children":172},{},[173,178,183],{"type":39,"tag":93,"props":174,"children":175},{},[176],{"type":44,"value":177},"Semantic search across knowledge bases",{"type":39,"tag":93,"props":179,"children":180},{},[181],{"type":44,"value":182},"RAG (Retrieval-Augmented Generation) support",{"type":39,"tag":93,"props":184,"children":185},{},[186],{"type":44,"value":187},"Knowledge chunk retrieval with relevance scoring",{"type":39,"tag":77,"props":189,"children":191},{"id":190},"supported-channels",[192],{"type":44,"value":193},"Supported Channels",{"type":39,"tag":54,"props":195,"children":196},{},[197],{"type":44,"value":198},"TAC provides built-in support for:",{"type":39,"tag":104,"props":200,"children":201},{},[202,212,222,232,242],{"type":39,"tag":93,"props":203,"children":204},{},[205,210],{"type":39,"tag":63,"props":206,"children":207},{},[208],{"type":44,"value":209},"Voice",{"type":44,"value":211}," - ConversationRelay (WebSocket-based real-time voice)",{"type":39,"tag":93,"props":213,"children":214},{},[215,220],{"type":39,"tag":63,"props":216,"children":217},{},[218],{"type":44,"value":219},"SMS",{"type":44,"value":221}," - Text messaging",{"type":39,"tag":93,"props":223,"children":224},{},[225,230],{"type":39,"tag":63,"props":226,"children":227},{},[228],{"type":44,"value":229},"RCS",{"type":44,"value":231}," - Rich Communication Services",{"type":39,"tag":93,"props":233,"children":234},{},[235,240],{"type":39,"tag":63,"props":236,"children":237},{},[238],{"type":44,"value":239},"WhatsApp",{"type":44,"value":241}," - WhatsApp Business messaging",{"type":39,"tag":93,"props":243,"children":244},{},[245,250],{"type":39,"tag":63,"props":246,"children":247},{},[248],{"type":44,"value":249},"Chat",{"type":44,"value":251}," - Web chat integrations",{"type":39,"tag":54,"props":253,"children":254},{},[255],{"type":44,"value":256},"All channels support both inbound (customer-initiated) and outbound (agent-initiated) conversations.",{"type":39,"tag":77,"props":258,"children":260},{"id":259},"conversationrelay-only-mode",[261],{"type":44,"value":262},"ConversationRelay-Only Mode",{"type":39,"tag":54,"props":264,"children":265},{},[266],{"type":44,"value":267},"TAC supports a simplified \"ConversationRelay-only\" mode for getting started with voice conversations without requiring Conversation Orchestrator or Conversation Memory setup. This mode provides:",{"type":39,"tag":104,"props":269,"children":270},{},[271,276,281,286],{"type":39,"tag":93,"props":272,"children":273},{},[274],{"type":44,"value":275},"TwiML generation",{"type":39,"tag":93,"props":277,"children":278},{},[279],{"type":44,"value":280},"WebSocket protocol handling",{"type":39,"tag":93,"props":282,"children":283},{},[284],{"type":44,"value":285},"Voice conversation lifecycle management",{"type":39,"tag":93,"props":287,"children":288},{},[289],{"type":44,"value":290},"Callback-based message processing",{"type":39,"tag":47,"props":292,"children":294},{"id":293},"installation",[295],{"type":44,"value":296},"Installation",{"type":39,"tag":77,"props":298,"children":300},{"id":299},"python-sdk",[301],{"type":44,"value":302},"Python SDK",{"type":39,"tag":54,"props":304,"children":305},{},[306,311],{"type":39,"tag":63,"props":307,"children":308},{},[309],{"type":44,"value":310},"Requirements",{"type":44,"value":312},": Python 3.10+",{"type":39,"tag":314,"props":315,"children":320},"pre",{"className":316,"code":317,"language":318,"meta":319,"style":319},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Using uv (recommended)\nuv add git+https:\u002F\u002Fgithub.com\u002Ftwilio\u002Ftwilio-agent-connect-python.git\n\n# With server support (includes FastAPI and uvicorn for TACFastAPIServer)\nuv add git+https:\u002F\u002Fgithub.com\u002Ftwilio\u002Ftwilio-agent-connect-python.git --extra server\n\n# Using pip\npip install git+https:\u002F\u002Fgithub.com\u002Ftwilio\u002Ftwilio-agent-connect-python.git\npip install \"git+https:\u002F\u002Fgithub.com\u002Ftwilio\u002Ftwilio-agent-connect-python.git[server]\"\n","bash","",[321],{"type":39,"tag":322,"props":323,"children":324},"code",{"__ignoreMap":319},[325,337,358,368,377,404,412,420,438],{"type":39,"tag":326,"props":327,"children":330},"span",{"class":328,"line":329},"line",1,[331],{"type":39,"tag":326,"props":332,"children":334},{"style":333},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[335],{"type":44,"value":336},"# Using uv (recommended)\n",{"type":39,"tag":326,"props":338,"children":340},{"class":328,"line":339},2,[341,347,353],{"type":39,"tag":326,"props":342,"children":344},{"style":343},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[345],{"type":44,"value":346},"uv",{"type":39,"tag":326,"props":348,"children":350},{"style":349},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[351],{"type":44,"value":352}," add",{"type":39,"tag":326,"props":354,"children":355},{"style":349},[356],{"type":44,"value":357}," git+https:\u002F\u002Fgithub.com\u002Ftwilio\u002Ftwilio-agent-connect-python.git\n",{"type":39,"tag":326,"props":359,"children":361},{"class":328,"line":360},3,[362],{"type":39,"tag":326,"props":363,"children":365},{"emptyLinePlaceholder":364},true,[366],{"type":44,"value":367},"\n",{"type":39,"tag":326,"props":369,"children":371},{"class":328,"line":370},4,[372],{"type":39,"tag":326,"props":373,"children":374},{"style":333},[375],{"type":44,"value":376},"# With server support (includes FastAPI and uvicorn for TACFastAPIServer)\n",{"type":39,"tag":326,"props":378,"children":380},{"class":328,"line":379},5,[381,385,389,394,399],{"type":39,"tag":326,"props":382,"children":383},{"style":343},[384],{"type":44,"value":346},{"type":39,"tag":326,"props":386,"children":387},{"style":349},[388],{"type":44,"value":352},{"type":39,"tag":326,"props":390,"children":391},{"style":349},[392],{"type":44,"value":393}," git+https:\u002F\u002Fgithub.com\u002Ftwilio\u002Ftwilio-agent-connect-python.git",{"type":39,"tag":326,"props":395,"children":396},{"style":349},[397],{"type":44,"value":398}," --extra",{"type":39,"tag":326,"props":400,"children":401},{"style":349},[402],{"type":44,"value":403}," server\n",{"type":39,"tag":326,"props":405,"children":407},{"class":328,"line":406},6,[408],{"type":39,"tag":326,"props":409,"children":410},{"emptyLinePlaceholder":364},[411],{"type":44,"value":367},{"type":39,"tag":326,"props":413,"children":414},{"class":328,"line":27},[415],{"type":39,"tag":326,"props":416,"children":417},{"style":333},[418],{"type":44,"value":419},"# Using pip\n",{"type":39,"tag":326,"props":421,"children":423},{"class":328,"line":422},8,[424,429,434],{"type":39,"tag":326,"props":425,"children":426},{"style":343},[427],{"type":44,"value":428},"pip",{"type":39,"tag":326,"props":430,"children":431},{"style":349},[432],{"type":44,"value":433}," install",{"type":39,"tag":326,"props":435,"children":436},{"style":349},[437],{"type":44,"value":357},{"type":39,"tag":326,"props":439,"children":441},{"class":328,"line":440},9,[442,446,450,456,461],{"type":39,"tag":326,"props":443,"children":444},{"style":343},[445],{"type":44,"value":428},{"type":39,"tag":326,"props":447,"children":448},{"style":349},[449],{"type":44,"value":433},{"type":39,"tag":326,"props":451,"children":453},{"style":452},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[454],{"type":44,"value":455}," \"",{"type":39,"tag":326,"props":457,"children":458},{"style":349},[459],{"type":44,"value":460},"git+https:\u002F\u002Fgithub.com\u002Ftwilio\u002Ftwilio-agent-connect-python.git[server]",{"type":39,"tag":326,"props":462,"children":463},{"style":452},[464],{"type":44,"value":465},"\"\n",{"type":39,"tag":77,"props":467,"children":469},{"id":468},"typescript-sdk",[470],{"type":44,"value":471},"TypeScript SDK",{"type":39,"tag":54,"props":473,"children":474},{},[475,479],{"type":39,"tag":63,"props":476,"children":477},{},[478],{"type":44,"value":310},{"type":44,"value":480},": Node.js 22.13+",{"type":39,"tag":314,"props":482,"children":484},{"className":316,"code":483,"language":318,"meta":319,"style":319},"# Clone and build (not yet published to npm)\ngit clone https:\u002F\u002Fgithub.com\u002Ftwilio\u002Ftwilio-agent-connect-typescript.git\ncd twilio-agent-connect-typescript\nnpm install\nnpm run build\n",[485],{"type":39,"tag":322,"props":486,"children":487},{"__ignoreMap":319},[488,496,514,528,541],{"type":39,"tag":326,"props":489,"children":490},{"class":328,"line":329},[491],{"type":39,"tag":326,"props":492,"children":493},{"style":333},[494],{"type":44,"value":495},"# Clone and build (not yet published to npm)\n",{"type":39,"tag":326,"props":497,"children":498},{"class":328,"line":339},[499,504,509],{"type":39,"tag":326,"props":500,"children":501},{"style":343},[502],{"type":44,"value":503},"git",{"type":39,"tag":326,"props":505,"children":506},{"style":349},[507],{"type":44,"value":508}," clone",{"type":39,"tag":326,"props":510,"children":511},{"style":349},[512],{"type":44,"value":513}," https:\u002F\u002Fgithub.com\u002Ftwilio\u002Ftwilio-agent-connect-typescript.git\n",{"type":39,"tag":326,"props":515,"children":516},{"class":328,"line":360},[517,523],{"type":39,"tag":326,"props":518,"children":520},{"style":519},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[521],{"type":44,"value":522},"cd",{"type":39,"tag":326,"props":524,"children":525},{"style":349},[526],{"type":44,"value":527}," twilio-agent-connect-typescript\n",{"type":39,"tag":326,"props":529,"children":530},{"class":328,"line":370},[531,536],{"type":39,"tag":326,"props":532,"children":533},{"style":343},[534],{"type":44,"value":535},"npm",{"type":39,"tag":326,"props":537,"children":538},{"style":349},[539],{"type":44,"value":540}," install\n",{"type":39,"tag":326,"props":542,"children":543},{"class":328,"line":379},[544,548,553],{"type":39,"tag":326,"props":545,"children":546},{"style":343},[547],{"type":44,"value":535},{"type":39,"tag":326,"props":549,"children":550},{"style":349},[551],{"type":44,"value":552}," run",{"type":39,"tag":326,"props":554,"children":555},{"style":349},[556],{"type":44,"value":557}," build\n",{"type":39,"tag":47,"props":559,"children":561},{"id":560},"quick-start",[562],{"type":44,"value":563},"Quick Start",{"type":39,"tag":77,"props":565,"children":567},{"id":566},"multi-channel-agent-with-openai-python",[568],{"type":44,"value":569},"Multi-Channel Agent with OpenAI (Python)",{"type":39,"tag":314,"props":571,"children":575},{"className":572,"code":573,"language":574,"meta":319,"style":319},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","from dotenv import load_dotenv\nfrom openai import AsyncOpenAI\nfrom tac import TAC, TACConfig\nfrom tac.adapters.openai import with_tac_memory\nfrom tac.channels.sms import SMSChannel\nfrom tac.channels.voice import VoiceChannel\nfrom tac.server import TACFastAPIServer\n\nload_dotenv()\n\ntac = TAC(config=TACConfig.from_env())\nvoice_channel = VoiceChannel(tac)\nsms_channel = SMSChannel(tac)\nopenai_client = AsyncOpenAI()\n\nconversation_history = {}\nSYSTEM_INSTRUCTIONS = (\n    \"You are a customer service agent speaking with a user over voice or SMS. \"\n    \"Keep responses short and conversational — a sentence or two. \"\n    \"Do not use markdown, asterisks, bullets, or emojis; your words will be \"\n    \"spoken aloud or sent as plain text.\"\n)\n\nasync def handle_message_ready(user_message, context, memory_response):\n    conv_id = context.conversation_id\n\n    if conv_id not in conversation_history:\n        conversation_history[conv_id] = []\n    conversation_history[conv_id].append({\"role\": \"user\", \"content\": user_message})\n\n    # Inject conversation memory and profile into OpenAI client\n    client = with_tac_memory(openai_client, memory_response, context)\n\n    response = await client.responses.create(\n        model=\"gpt-5.4-mini\",\n        instructions=SYSTEM_INSTRUCTIONS,\n        input=conversation_history[conv_id]\n    )\n\n    llm_response = response.output_text\n    conversation_history[conv_id].append({\"role\": \"assistant\", \"content\": llm_response})\n\n    return llm_response\n\ntac.on_message_ready(handle_message_ready)\nTACFastAPIServer(tac=tac, voice_channel=voice_channel, messaging_channels=[sms_channel]).start()\n","python",[576],{"type":39,"tag":322,"props":577,"children":578},{"__ignoreMap":319},[579,587,595,603,611,619,627,635,642,650,658,667,676,685,694,702,711,720,729,738,747,756,765,773,782,790,798,807,816,825,833,842,851,859,868,877,886,895,904,912,921,930,938,947,955,964],{"type":39,"tag":326,"props":580,"children":581},{"class":328,"line":329},[582],{"type":39,"tag":326,"props":583,"children":584},{},[585],{"type":44,"value":586},"from dotenv import load_dotenv\n",{"type":39,"tag":326,"props":588,"children":589},{"class":328,"line":339},[590],{"type":39,"tag":326,"props":591,"children":592},{},[593],{"type":44,"value":594},"from openai import AsyncOpenAI\n",{"type":39,"tag":326,"props":596,"children":597},{"class":328,"line":360},[598],{"type":39,"tag":326,"props":599,"children":600},{},[601],{"type":44,"value":602},"from tac import TAC, TACConfig\n",{"type":39,"tag":326,"props":604,"children":605},{"class":328,"line":370},[606],{"type":39,"tag":326,"props":607,"children":608},{},[609],{"type":44,"value":610},"from tac.adapters.openai import with_tac_memory\n",{"type":39,"tag":326,"props":612,"children":613},{"class":328,"line":379},[614],{"type":39,"tag":326,"props":615,"children":616},{},[617],{"type":44,"value":618},"from tac.channels.sms import SMSChannel\n",{"type":39,"tag":326,"props":620,"children":621},{"class":328,"line":406},[622],{"type":39,"tag":326,"props":623,"children":624},{},[625],{"type":44,"value":626},"from tac.channels.voice import VoiceChannel\n",{"type":39,"tag":326,"props":628,"children":629},{"class":328,"line":27},[630],{"type":39,"tag":326,"props":631,"children":632},{},[633],{"type":44,"value":634},"from tac.server import TACFastAPIServer\n",{"type":39,"tag":326,"props":636,"children":637},{"class":328,"line":422},[638],{"type":39,"tag":326,"props":639,"children":640},{"emptyLinePlaceholder":364},[641],{"type":44,"value":367},{"type":39,"tag":326,"props":643,"children":644},{"class":328,"line":440},[645],{"type":39,"tag":326,"props":646,"children":647},{},[648],{"type":44,"value":649},"load_dotenv()\n",{"type":39,"tag":326,"props":651,"children":653},{"class":328,"line":652},10,[654],{"type":39,"tag":326,"props":655,"children":656},{"emptyLinePlaceholder":364},[657],{"type":44,"value":367},{"type":39,"tag":326,"props":659,"children":661},{"class":328,"line":660},11,[662],{"type":39,"tag":326,"props":663,"children":664},{},[665],{"type":44,"value":666},"tac = TAC(config=TACConfig.from_env())\n",{"type":39,"tag":326,"props":668,"children":670},{"class":328,"line":669},12,[671],{"type":39,"tag":326,"props":672,"children":673},{},[674],{"type":44,"value":675},"voice_channel = VoiceChannel(tac)\n",{"type":39,"tag":326,"props":677,"children":679},{"class":328,"line":678},13,[680],{"type":39,"tag":326,"props":681,"children":682},{},[683],{"type":44,"value":684},"sms_channel = SMSChannel(tac)\n",{"type":39,"tag":326,"props":686,"children":688},{"class":328,"line":687},14,[689],{"type":39,"tag":326,"props":690,"children":691},{},[692],{"type":44,"value":693},"openai_client = AsyncOpenAI()\n",{"type":39,"tag":326,"props":695,"children":697},{"class":328,"line":696},15,[698],{"type":39,"tag":326,"props":699,"children":700},{"emptyLinePlaceholder":364},[701],{"type":44,"value":367},{"type":39,"tag":326,"props":703,"children":705},{"class":328,"line":704},16,[706],{"type":39,"tag":326,"props":707,"children":708},{},[709],{"type":44,"value":710},"conversation_history = {}\n",{"type":39,"tag":326,"props":712,"children":714},{"class":328,"line":713},17,[715],{"type":39,"tag":326,"props":716,"children":717},{},[718],{"type":44,"value":719},"SYSTEM_INSTRUCTIONS = (\n",{"type":39,"tag":326,"props":721,"children":723},{"class":328,"line":722},18,[724],{"type":39,"tag":326,"props":725,"children":726},{},[727],{"type":44,"value":728},"    \"You are a customer service agent speaking with a user over voice or SMS. \"\n",{"type":39,"tag":326,"props":730,"children":732},{"class":328,"line":731},19,[733],{"type":39,"tag":326,"props":734,"children":735},{},[736],{"type":44,"value":737},"    \"Keep responses short and conversational — a sentence or two. \"\n",{"type":39,"tag":326,"props":739,"children":741},{"class":328,"line":740},20,[742],{"type":39,"tag":326,"props":743,"children":744},{},[745],{"type":44,"value":746},"    \"Do not use markdown, asterisks, bullets, or emojis; your words will be \"\n",{"type":39,"tag":326,"props":748,"children":750},{"class":328,"line":749},21,[751],{"type":39,"tag":326,"props":752,"children":753},{},[754],{"type":44,"value":755},"    \"spoken aloud or sent as plain text.\"\n",{"type":39,"tag":326,"props":757,"children":759},{"class":328,"line":758},22,[760],{"type":39,"tag":326,"props":761,"children":762},{},[763],{"type":44,"value":764},")\n",{"type":39,"tag":326,"props":766,"children":768},{"class":328,"line":767},23,[769],{"type":39,"tag":326,"props":770,"children":771},{"emptyLinePlaceholder":364},[772],{"type":44,"value":367},{"type":39,"tag":326,"props":774,"children":776},{"class":328,"line":775},24,[777],{"type":39,"tag":326,"props":778,"children":779},{},[780],{"type":44,"value":781},"async def handle_message_ready(user_message, context, memory_response):\n",{"type":39,"tag":326,"props":783,"children":784},{"class":328,"line":23},[785],{"type":39,"tag":326,"props":786,"children":787},{},[788],{"type":44,"value":789},"    conv_id = context.conversation_id\n",{"type":39,"tag":326,"props":791,"children":793},{"class":328,"line":792},26,[794],{"type":39,"tag":326,"props":795,"children":796},{"emptyLinePlaceholder":364},[797],{"type":44,"value":367},{"type":39,"tag":326,"props":799,"children":801},{"class":328,"line":800},27,[802],{"type":39,"tag":326,"props":803,"children":804},{},[805],{"type":44,"value":806},"    if conv_id not in conversation_history:\n",{"type":39,"tag":326,"props":808,"children":810},{"class":328,"line":809},28,[811],{"type":39,"tag":326,"props":812,"children":813},{},[814],{"type":44,"value":815},"        conversation_history[conv_id] = []\n",{"type":39,"tag":326,"props":817,"children":819},{"class":328,"line":818},29,[820],{"type":39,"tag":326,"props":821,"children":822},{},[823],{"type":44,"value":824},"    conversation_history[conv_id].append({\"role\": \"user\", \"content\": user_message})\n",{"type":39,"tag":326,"props":826,"children":828},{"class":328,"line":827},30,[829],{"type":39,"tag":326,"props":830,"children":831},{"emptyLinePlaceholder":364},[832],{"type":44,"value":367},{"type":39,"tag":326,"props":834,"children":836},{"class":328,"line":835},31,[837],{"type":39,"tag":326,"props":838,"children":839},{},[840],{"type":44,"value":841},"    # Inject conversation memory and profile into OpenAI client\n",{"type":39,"tag":326,"props":843,"children":845},{"class":328,"line":844},32,[846],{"type":39,"tag":326,"props":847,"children":848},{},[849],{"type":44,"value":850},"    client = with_tac_memory(openai_client, memory_response, context)\n",{"type":39,"tag":326,"props":852,"children":854},{"class":328,"line":853},33,[855],{"type":39,"tag":326,"props":856,"children":857},{"emptyLinePlaceholder":364},[858],{"type":44,"value":367},{"type":39,"tag":326,"props":860,"children":862},{"class":328,"line":861},34,[863],{"type":39,"tag":326,"props":864,"children":865},{},[866],{"type":44,"value":867},"    response = await client.responses.create(\n",{"type":39,"tag":326,"props":869,"children":871},{"class":328,"line":870},35,[872],{"type":39,"tag":326,"props":873,"children":874},{},[875],{"type":44,"value":876},"        model=\"gpt-5.4-mini\",\n",{"type":39,"tag":326,"props":878,"children":880},{"class":328,"line":879},36,[881],{"type":39,"tag":326,"props":882,"children":883},{},[884],{"type":44,"value":885},"        instructions=SYSTEM_INSTRUCTIONS,\n",{"type":39,"tag":326,"props":887,"children":889},{"class":328,"line":888},37,[890],{"type":39,"tag":326,"props":891,"children":892},{},[893],{"type":44,"value":894},"        input=conversation_history[conv_id]\n",{"type":39,"tag":326,"props":896,"children":898},{"class":328,"line":897},38,[899],{"type":39,"tag":326,"props":900,"children":901},{},[902],{"type":44,"value":903},"    )\n",{"type":39,"tag":326,"props":905,"children":907},{"class":328,"line":906},39,[908],{"type":39,"tag":326,"props":909,"children":910},{"emptyLinePlaceholder":364},[911],{"type":44,"value":367},{"type":39,"tag":326,"props":913,"children":915},{"class":328,"line":914},40,[916],{"type":39,"tag":326,"props":917,"children":918},{},[919],{"type":44,"value":920},"    llm_response = response.output_text\n",{"type":39,"tag":326,"props":922,"children":924},{"class":328,"line":923},41,[925],{"type":39,"tag":326,"props":926,"children":927},{},[928],{"type":44,"value":929},"    conversation_history[conv_id].append({\"role\": \"assistant\", \"content\": llm_response})\n",{"type":39,"tag":326,"props":931,"children":933},{"class":328,"line":932},42,[934],{"type":39,"tag":326,"props":935,"children":936},{"emptyLinePlaceholder":364},[937],{"type":44,"value":367},{"type":39,"tag":326,"props":939,"children":941},{"class":328,"line":940},43,[942],{"type":39,"tag":326,"props":943,"children":944},{},[945],{"type":44,"value":946},"    return llm_response\n",{"type":39,"tag":326,"props":948,"children":950},{"class":328,"line":949},44,[951],{"type":39,"tag":326,"props":952,"children":953},{"emptyLinePlaceholder":364},[954],{"type":44,"value":367},{"type":39,"tag":326,"props":956,"children":958},{"class":328,"line":957},45,[959],{"type":39,"tag":326,"props":960,"children":961},{},[962],{"type":44,"value":963},"tac.on_message_ready(handle_message_ready)\n",{"type":39,"tag":326,"props":965,"children":967},{"class":328,"line":966},46,[968],{"type":39,"tag":326,"props":969,"children":970},{},[971],{"type":44,"value":972},"TACFastAPIServer(tac=tac, voice_channel=voice_channel, messaging_channels=[sms_channel]).start()\n",{"type":39,"tag":77,"props":974,"children":976},{"id":975},"multi-channel-agent-with-openai-typescript",[977],{"type":44,"value":978},"Multi-Channel Agent with OpenAI (TypeScript)",{"type":39,"tag":314,"props":980,"children":984},{"className":981,"code":982,"language":983,"meta":319,"style":319},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { config } from 'dotenv';\nimport OpenAI from 'openai';\nimport {\n  TAC,\n  TACConfig,\n  VoiceChannel,\n  SMSChannel,\n  TACServer,\n  MemoryPromptBuilder,\n} from 'twilio-agent-connect';\n\nconfig();\n\nconst openai = new OpenAI();\nconst tac = await TAC.create({ config: TACConfig.fromEnv() });\nconst voiceChannel = new VoiceChannel(tac);\nconst smsChannel = new SMSChannel(tac);\n\ntac.registerChannel(voiceChannel);\ntac.registerChannel(smsChannel);\n\nconst conversationHistory: Record\u003Cstring, OpenAI.Chat.ChatCompletionMessageParam[]> = {};\n\nconst SYSTEM_INSTRUCTIONS =\n  'You are a customer service agent speaking with a user over voice or SMS. ' +\n  'Keep responses short and conversational — a sentence or two. ' +\n  'Do not use markdown, asterisks, bullets, or emojis; your words will be ' +\n  'spoken aloud or sent as plain text.';\n\ntac.onMessageReady(async ({ conversationId, message, memory, session }) => {\n  const convId = conversationId as string;\n\n  if (!conversationHistory[convId]) {\n    conversationHistory[convId] = [];\n  }\n\n  const memoryContext = MemoryPromptBuilder.build(memory, session);\n  const systemPrompt = SYSTEM_INSTRUCTIONS + (memoryContext ? `\\n\\n${memoryContext}` : '');\n\n  conversationHistory[convId].push({ role: 'user', content: message });\n\n  const response = await openai.chat.completions.create({\n    model: 'gpt-5.4-mini',\n    messages: [\n      { role: 'system', content: systemPrompt },\n      ...conversationHistory[convId],\n    ],\n  });\n\n  const llmResponse = response.choices[0]?.message?.content ?? '';\n  conversationHistory[convId].push({ role: 'assistant', content: llmResponse });\n\n  return llmResponse;\n});\n\nconst server = new TACServer(tac);\nawait server.start();\n","typescript",[985],{"type":39,"tag":322,"props":986,"children":987},{"__ignoreMap":319},[988,1038,1072,1084,1097,1109,1121,1133,1145,1157,1185,1192,1209,1216,1253,1341,1375,1408,1415,1441,1465,1472,1549,1556,1573,1595,1615,1635,1655,1662,1739,1774,1781,1824,1858,1866,1873,1928,2010,2017,2106,2113,2172,2201,2218,2268,2296,2309,2326,2334,2410,2495,2503,2520,2536,2544,2578],{"type":39,"tag":326,"props":989,"children":990},{"class":328,"line":329},[991,997,1002,1008,1013,1018,1023,1028,1033],{"type":39,"tag":326,"props":992,"children":994},{"style":993},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[995],{"type":44,"value":996},"import",{"type":39,"tag":326,"props":998,"children":999},{"style":452},[1000],{"type":44,"value":1001}," {",{"type":39,"tag":326,"props":1003,"children":1005},{"style":1004},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[1006],{"type":44,"value":1007}," config",{"type":39,"tag":326,"props":1009,"children":1010},{"style":452},[1011],{"type":44,"value":1012}," }",{"type":39,"tag":326,"props":1014,"children":1015},{"style":993},[1016],{"type":44,"value":1017}," from",{"type":39,"tag":326,"props":1019,"children":1020},{"style":452},[1021],{"type":44,"value":1022}," '",{"type":39,"tag":326,"props":1024,"children":1025},{"style":349},[1026],{"type":44,"value":1027},"dotenv",{"type":39,"tag":326,"props":1029,"children":1030},{"style":452},[1031],{"type":44,"value":1032},"'",{"type":39,"tag":326,"props":1034,"children":1035},{"style":452},[1036],{"type":44,"value":1037},";\n",{"type":39,"tag":326,"props":1039,"children":1040},{"class":328,"line":339},[1041,1045,1050,1055,1059,1064,1068],{"type":39,"tag":326,"props":1042,"children":1043},{"style":993},[1044],{"type":44,"value":996},{"type":39,"tag":326,"props":1046,"children":1047},{"style":1004},[1048],{"type":44,"value":1049}," OpenAI ",{"type":39,"tag":326,"props":1051,"children":1052},{"style":993},[1053],{"type":44,"value":1054},"from",{"type":39,"tag":326,"props":1056,"children":1057},{"style":452},[1058],{"type":44,"value":1022},{"type":39,"tag":326,"props":1060,"children":1061},{"style":349},[1062],{"type":44,"value":1063},"openai",{"type":39,"tag":326,"props":1065,"children":1066},{"style":452},[1067],{"type":44,"value":1032},{"type":39,"tag":326,"props":1069,"children":1070},{"style":452},[1071],{"type":44,"value":1037},{"type":39,"tag":326,"props":1073,"children":1074},{"class":328,"line":360},[1075,1079],{"type":39,"tag":326,"props":1076,"children":1077},{"style":993},[1078],{"type":44,"value":996},{"type":39,"tag":326,"props":1080,"children":1081},{"style":452},[1082],{"type":44,"value":1083}," {\n",{"type":39,"tag":326,"props":1085,"children":1086},{"class":328,"line":370},[1087,1092],{"type":39,"tag":326,"props":1088,"children":1089},{"style":1004},[1090],{"type":44,"value":1091},"  TAC",{"type":39,"tag":326,"props":1093,"children":1094},{"style":452},[1095],{"type":44,"value":1096},",\n",{"type":39,"tag":326,"props":1098,"children":1099},{"class":328,"line":379},[1100,1105],{"type":39,"tag":326,"props":1101,"children":1102},{"style":1004},[1103],{"type":44,"value":1104},"  TACConfig",{"type":39,"tag":326,"props":1106,"children":1107},{"style":452},[1108],{"type":44,"value":1096},{"type":39,"tag":326,"props":1110,"children":1111},{"class":328,"line":406},[1112,1117],{"type":39,"tag":326,"props":1113,"children":1114},{"style":1004},[1115],{"type":44,"value":1116},"  VoiceChannel",{"type":39,"tag":326,"props":1118,"children":1119},{"style":452},[1120],{"type":44,"value":1096},{"type":39,"tag":326,"props":1122,"children":1123},{"class":328,"line":27},[1124,1129],{"type":39,"tag":326,"props":1125,"children":1126},{"style":1004},[1127],{"type":44,"value":1128},"  SMSChannel",{"type":39,"tag":326,"props":1130,"children":1131},{"style":452},[1132],{"type":44,"value":1096},{"type":39,"tag":326,"props":1134,"children":1135},{"class":328,"line":422},[1136,1141],{"type":39,"tag":326,"props":1137,"children":1138},{"style":1004},[1139],{"type":44,"value":1140},"  TACServer",{"type":39,"tag":326,"props":1142,"children":1143},{"style":452},[1144],{"type":44,"value":1096},{"type":39,"tag":326,"props":1146,"children":1147},{"class":328,"line":440},[1148,1153],{"type":39,"tag":326,"props":1149,"children":1150},{"style":1004},[1151],{"type":44,"value":1152},"  MemoryPromptBuilder",{"type":39,"tag":326,"props":1154,"children":1155},{"style":452},[1156],{"type":44,"value":1096},{"type":39,"tag":326,"props":1158,"children":1159},{"class":328,"line":652},[1160,1165,1169,1173,1177,1181],{"type":39,"tag":326,"props":1161,"children":1162},{"style":452},[1163],{"type":44,"value":1164},"}",{"type":39,"tag":326,"props":1166,"children":1167},{"style":993},[1168],{"type":44,"value":1017},{"type":39,"tag":326,"props":1170,"children":1171},{"style":452},[1172],{"type":44,"value":1022},{"type":39,"tag":326,"props":1174,"children":1175},{"style":349},[1176],{"type":44,"value":4},{"type":39,"tag":326,"props":1178,"children":1179},{"style":452},[1180],{"type":44,"value":1032},{"type":39,"tag":326,"props":1182,"children":1183},{"style":452},[1184],{"type":44,"value":1037},{"type":39,"tag":326,"props":1186,"children":1187},{"class":328,"line":660},[1188],{"type":39,"tag":326,"props":1189,"children":1190},{"emptyLinePlaceholder":364},[1191],{"type":44,"value":367},{"type":39,"tag":326,"props":1193,"children":1194},{"class":328,"line":669},[1195,1200,1205],{"type":39,"tag":326,"props":1196,"children":1197},{"style":519},[1198],{"type":44,"value":1199},"config",{"type":39,"tag":326,"props":1201,"children":1202},{"style":1004},[1203],{"type":44,"value":1204},"()",{"type":39,"tag":326,"props":1206,"children":1207},{"style":452},[1208],{"type":44,"value":1037},{"type":39,"tag":326,"props":1210,"children":1211},{"class":328,"line":678},[1212],{"type":39,"tag":326,"props":1213,"children":1214},{"emptyLinePlaceholder":364},[1215],{"type":44,"value":367},{"type":39,"tag":326,"props":1217,"children":1218},{"class":328,"line":687},[1219,1225,1230,1235,1240,1245,1249],{"type":39,"tag":326,"props":1220,"children":1222},{"style":1221},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[1223],{"type":44,"value":1224},"const",{"type":39,"tag":326,"props":1226,"children":1227},{"style":1004},[1228],{"type":44,"value":1229}," openai ",{"type":39,"tag":326,"props":1231,"children":1232},{"style":452},[1233],{"type":44,"value":1234},"=",{"type":39,"tag":326,"props":1236,"children":1237},{"style":452},[1238],{"type":44,"value":1239}," new",{"type":39,"tag":326,"props":1241,"children":1242},{"style":519},[1243],{"type":44,"value":1244}," OpenAI",{"type":39,"tag":326,"props":1246,"children":1247},{"style":1004},[1248],{"type":44,"value":1204},{"type":39,"tag":326,"props":1250,"children":1251},{"style":452},[1252],{"type":44,"value":1037},{"type":39,"tag":326,"props":1254,"children":1255},{"class":328,"line":696},[1256,1260,1265,1269,1274,1279,1284,1289,1294,1299,1304,1309,1314,1318,1323,1328,1332,1337],{"type":39,"tag":326,"props":1257,"children":1258},{"style":1221},[1259],{"type":44,"value":1224},{"type":39,"tag":326,"props":1261,"children":1262},{"style":1004},[1263],{"type":44,"value":1264}," tac ",{"type":39,"tag":326,"props":1266,"children":1267},{"style":452},[1268],{"type":44,"value":1234},{"type":39,"tag":326,"props":1270,"children":1271},{"style":993},[1272],{"type":44,"value":1273}," await",{"type":39,"tag":326,"props":1275,"children":1276},{"style":1004},[1277],{"type":44,"value":1278}," TAC",{"type":39,"tag":326,"props":1280,"children":1281},{"style":452},[1282],{"type":44,"value":1283},".",{"type":39,"tag":326,"props":1285,"children":1286},{"style":519},[1287],{"type":44,"value":1288},"create",{"type":39,"tag":326,"props":1290,"children":1291},{"style":1004},[1292],{"type":44,"value":1293},"(",{"type":39,"tag":326,"props":1295,"children":1296},{"style":452},[1297],{"type":44,"value":1298},"{",{"type":39,"tag":326,"props":1300,"children":1302},{"style":1301},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[1303],{"type":44,"value":1007},{"type":39,"tag":326,"props":1305,"children":1306},{"style":452},[1307],{"type":44,"value":1308},":",{"type":39,"tag":326,"props":1310,"children":1311},{"style":1004},[1312],{"type":44,"value":1313}," TACConfig",{"type":39,"tag":326,"props":1315,"children":1316},{"style":452},[1317],{"type":44,"value":1283},{"type":39,"tag":326,"props":1319,"children":1320},{"style":519},[1321],{"type":44,"value":1322},"fromEnv",{"type":39,"tag":326,"props":1324,"children":1325},{"style":1004},[1326],{"type":44,"value":1327},"() ",{"type":39,"tag":326,"props":1329,"children":1330},{"style":452},[1331],{"type":44,"value":1164},{"type":39,"tag":326,"props":1333,"children":1334},{"style":1004},[1335],{"type":44,"value":1336},")",{"type":39,"tag":326,"props":1338,"children":1339},{"style":452},[1340],{"type":44,"value":1037},{"type":39,"tag":326,"props":1342,"children":1343},{"class":328,"line":704},[1344,1348,1353,1357,1361,1366,1371],{"type":39,"tag":326,"props":1345,"children":1346},{"style":1221},[1347],{"type":44,"value":1224},{"type":39,"tag":326,"props":1349,"children":1350},{"style":1004},[1351],{"type":44,"value":1352}," voiceChannel ",{"type":39,"tag":326,"props":1354,"children":1355},{"style":452},[1356],{"type":44,"value":1234},{"type":39,"tag":326,"props":1358,"children":1359},{"style":452},[1360],{"type":44,"value":1239},{"type":39,"tag":326,"props":1362,"children":1363},{"style":519},[1364],{"type":44,"value":1365}," VoiceChannel",{"type":39,"tag":326,"props":1367,"children":1368},{"style":1004},[1369],{"type":44,"value":1370},"(tac)",{"type":39,"tag":326,"props":1372,"children":1373},{"style":452},[1374],{"type":44,"value":1037},{"type":39,"tag":326,"props":1376,"children":1377},{"class":328,"line":713},[1378,1382,1387,1391,1395,1400,1404],{"type":39,"tag":326,"props":1379,"children":1380},{"style":1221},[1381],{"type":44,"value":1224},{"type":39,"tag":326,"props":1383,"children":1384},{"style":1004},[1385],{"type":44,"value":1386}," smsChannel ",{"type":39,"tag":326,"props":1388,"children":1389},{"style":452},[1390],{"type":44,"value":1234},{"type":39,"tag":326,"props":1392,"children":1393},{"style":452},[1394],{"type":44,"value":1239},{"type":39,"tag":326,"props":1396,"children":1397},{"style":519},[1398],{"type":44,"value":1399}," SMSChannel",{"type":39,"tag":326,"props":1401,"children":1402},{"style":1004},[1403],{"type":44,"value":1370},{"type":39,"tag":326,"props":1405,"children":1406},{"style":452},[1407],{"type":44,"value":1037},{"type":39,"tag":326,"props":1409,"children":1410},{"class":328,"line":722},[1411],{"type":39,"tag":326,"props":1412,"children":1413},{"emptyLinePlaceholder":364},[1414],{"type":44,"value":367},{"type":39,"tag":326,"props":1416,"children":1417},{"class":328,"line":731},[1418,1423,1427,1432,1437],{"type":39,"tag":326,"props":1419,"children":1420},{"style":1004},[1421],{"type":44,"value":1422},"tac",{"type":39,"tag":326,"props":1424,"children":1425},{"style":452},[1426],{"type":44,"value":1283},{"type":39,"tag":326,"props":1428,"children":1429},{"style":519},[1430],{"type":44,"value":1431},"registerChannel",{"type":39,"tag":326,"props":1433,"children":1434},{"style":1004},[1435],{"type":44,"value":1436},"(voiceChannel)",{"type":39,"tag":326,"props":1438,"children":1439},{"style":452},[1440],{"type":44,"value":1037},{"type":39,"tag":326,"props":1442,"children":1443},{"class":328,"line":740},[1444,1448,1452,1456,1461],{"type":39,"tag":326,"props":1445,"children":1446},{"style":1004},[1447],{"type":44,"value":1422},{"type":39,"tag":326,"props":1449,"children":1450},{"style":452},[1451],{"type":44,"value":1283},{"type":39,"tag":326,"props":1453,"children":1454},{"style":519},[1455],{"type":44,"value":1431},{"type":39,"tag":326,"props":1457,"children":1458},{"style":1004},[1459],{"type":44,"value":1460},"(smsChannel)",{"type":39,"tag":326,"props":1462,"children":1463},{"style":452},[1464],{"type":44,"value":1037},{"type":39,"tag":326,"props":1466,"children":1467},{"class":328,"line":749},[1468],{"type":39,"tag":326,"props":1469,"children":1470},{"emptyLinePlaceholder":364},[1471],{"type":44,"value":367},{"type":39,"tag":326,"props":1473,"children":1474},{"class":328,"line":758},[1475,1479,1484,1488,1493,1498,1503,1508,1512,1516,1520,1524,1529,1534,1539,1544],{"type":39,"tag":326,"props":1476,"children":1477},{"style":1221},[1478],{"type":44,"value":1224},{"type":39,"tag":326,"props":1480,"children":1481},{"style":1004},[1482],{"type":44,"value":1483}," conversationHistory",{"type":39,"tag":326,"props":1485,"children":1486},{"style":452},[1487],{"type":44,"value":1308},{"type":39,"tag":326,"props":1489,"children":1490},{"style":343},[1491],{"type":44,"value":1492}," Record",{"type":39,"tag":326,"props":1494,"children":1495},{"style":452},[1496],{"type":44,"value":1497},"\u003C",{"type":39,"tag":326,"props":1499,"children":1500},{"style":343},[1501],{"type":44,"value":1502},"string",{"type":39,"tag":326,"props":1504,"children":1505},{"style":452},[1506],{"type":44,"value":1507},",",{"type":39,"tag":326,"props":1509,"children":1510},{"style":343},[1511],{"type":44,"value":1244},{"type":39,"tag":326,"props":1513,"children":1514},{"style":452},[1515],{"type":44,"value":1283},{"type":39,"tag":326,"props":1517,"children":1518},{"style":343},[1519],{"type":44,"value":249},{"type":39,"tag":326,"props":1521,"children":1522},{"style":452},[1523],{"type":44,"value":1283},{"type":39,"tag":326,"props":1525,"children":1526},{"style":343},[1527],{"type":44,"value":1528},"ChatCompletionMessageParam",{"type":39,"tag":326,"props":1530,"children":1531},{"style":1004},[1532],{"type":44,"value":1533},"[]",{"type":39,"tag":326,"props":1535,"children":1536},{"style":452},[1537],{"type":44,"value":1538},">",{"type":39,"tag":326,"props":1540,"children":1541},{"style":452},[1542],{"type":44,"value":1543}," =",{"type":39,"tag":326,"props":1545,"children":1546},{"style":452},[1547],{"type":44,"value":1548}," {};\n",{"type":39,"tag":326,"props":1550,"children":1551},{"class":328,"line":767},[1552],{"type":39,"tag":326,"props":1553,"children":1554},{"emptyLinePlaceholder":364},[1555],{"type":44,"value":367},{"type":39,"tag":326,"props":1557,"children":1558},{"class":328,"line":775},[1559,1563,1568],{"type":39,"tag":326,"props":1560,"children":1561},{"style":1221},[1562],{"type":44,"value":1224},{"type":39,"tag":326,"props":1564,"children":1565},{"style":1004},[1566],{"type":44,"value":1567}," SYSTEM_INSTRUCTIONS ",{"type":39,"tag":326,"props":1569,"children":1570},{"style":452},[1571],{"type":44,"value":1572},"=\n",{"type":39,"tag":326,"props":1574,"children":1575},{"class":328,"line":23},[1576,1581,1586,1590],{"type":39,"tag":326,"props":1577,"children":1578},{"style":452},[1579],{"type":44,"value":1580},"  '",{"type":39,"tag":326,"props":1582,"children":1583},{"style":349},[1584],{"type":44,"value":1585},"You are a customer service agent speaking with a user over voice or SMS. ",{"type":39,"tag":326,"props":1587,"children":1588},{"style":452},[1589],{"type":44,"value":1032},{"type":39,"tag":326,"props":1591,"children":1592},{"style":452},[1593],{"type":44,"value":1594}," +\n",{"type":39,"tag":326,"props":1596,"children":1597},{"class":328,"line":792},[1598,1602,1607,1611],{"type":39,"tag":326,"props":1599,"children":1600},{"style":452},[1601],{"type":44,"value":1580},{"type":39,"tag":326,"props":1603,"children":1604},{"style":349},[1605],{"type":44,"value":1606},"Keep responses short and conversational — a sentence or two. ",{"type":39,"tag":326,"props":1608,"children":1609},{"style":452},[1610],{"type":44,"value":1032},{"type":39,"tag":326,"props":1612,"children":1613},{"style":452},[1614],{"type":44,"value":1594},{"type":39,"tag":326,"props":1616,"children":1617},{"class":328,"line":800},[1618,1622,1627,1631],{"type":39,"tag":326,"props":1619,"children":1620},{"style":452},[1621],{"type":44,"value":1580},{"type":39,"tag":326,"props":1623,"children":1624},{"style":349},[1625],{"type":44,"value":1626},"Do not use markdown, asterisks, bullets, or emojis; your words will be ",{"type":39,"tag":326,"props":1628,"children":1629},{"style":452},[1630],{"type":44,"value":1032},{"type":39,"tag":326,"props":1632,"children":1633},{"style":452},[1634],{"type":44,"value":1594},{"type":39,"tag":326,"props":1636,"children":1637},{"class":328,"line":809},[1638,1642,1647,1651],{"type":39,"tag":326,"props":1639,"children":1640},{"style":452},[1641],{"type":44,"value":1580},{"type":39,"tag":326,"props":1643,"children":1644},{"style":349},[1645],{"type":44,"value":1646},"spoken aloud or sent as plain text.",{"type":39,"tag":326,"props":1648,"children":1649},{"style":452},[1650],{"type":44,"value":1032},{"type":39,"tag":326,"props":1652,"children":1653},{"style":452},[1654],{"type":44,"value":1037},{"type":39,"tag":326,"props":1656,"children":1657},{"class":328,"line":818},[1658],{"type":39,"tag":326,"props":1659,"children":1660},{"emptyLinePlaceholder":364},[1661],{"type":44,"value":367},{"type":39,"tag":326,"props":1663,"children":1664},{"class":328,"line":827},[1665,1669,1673,1678,1682,1687,1692,1698,1702,1707,1711,1716,1720,1725,1730,1735],{"type":39,"tag":326,"props":1666,"children":1667},{"style":1004},[1668],{"type":44,"value":1422},{"type":39,"tag":326,"props":1670,"children":1671},{"style":452},[1672],{"type":44,"value":1283},{"type":39,"tag":326,"props":1674,"children":1675},{"style":519},[1676],{"type":44,"value":1677},"onMessageReady",{"type":39,"tag":326,"props":1679,"children":1680},{"style":1004},[1681],{"type":44,"value":1293},{"type":39,"tag":326,"props":1683,"children":1684},{"style":1221},[1685],{"type":44,"value":1686},"async",{"type":39,"tag":326,"props":1688,"children":1689},{"style":452},[1690],{"type":44,"value":1691}," ({",{"type":39,"tag":326,"props":1693,"children":1695},{"style":1694},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[1696],{"type":44,"value":1697}," conversationId",{"type":39,"tag":326,"props":1699,"children":1700},{"style":452},[1701],{"type":44,"value":1507},{"type":39,"tag":326,"props":1703,"children":1704},{"style":1694},[1705],{"type":44,"value":1706}," message",{"type":39,"tag":326,"props":1708,"children":1709},{"style":452},[1710],{"type":44,"value":1507},{"type":39,"tag":326,"props":1712,"children":1713},{"style":1694},[1714],{"type":44,"value":1715}," memory",{"type":39,"tag":326,"props":1717,"children":1718},{"style":452},[1719],{"type":44,"value":1507},{"type":39,"tag":326,"props":1721,"children":1722},{"style":1694},[1723],{"type":44,"value":1724}," session",{"type":39,"tag":326,"props":1726,"children":1727},{"style":452},[1728],{"type":44,"value":1729}," })",{"type":39,"tag":326,"props":1731,"children":1732},{"style":1221},[1733],{"type":44,"value":1734}," =>",{"type":39,"tag":326,"props":1736,"children":1737},{"style":452},[1738],{"type":44,"value":1083},{"type":39,"tag":326,"props":1740,"children":1741},{"class":328,"line":835},[1742,1747,1752,1756,1760,1765,1770],{"type":39,"tag":326,"props":1743,"children":1744},{"style":1221},[1745],{"type":44,"value":1746},"  const",{"type":39,"tag":326,"props":1748,"children":1749},{"style":1004},[1750],{"type":44,"value":1751}," convId",{"type":39,"tag":326,"props":1753,"children":1754},{"style":452},[1755],{"type":44,"value":1543},{"type":39,"tag":326,"props":1757,"children":1758},{"style":1004},[1759],{"type":44,"value":1697},{"type":39,"tag":326,"props":1761,"children":1762},{"style":993},[1763],{"type":44,"value":1764}," as",{"type":39,"tag":326,"props":1766,"children":1767},{"style":343},[1768],{"type":44,"value":1769}," string",{"type":39,"tag":326,"props":1771,"children":1772},{"style":452},[1773],{"type":44,"value":1037},{"type":39,"tag":326,"props":1775,"children":1776},{"class":328,"line":844},[1777],{"type":39,"tag":326,"props":1778,"children":1779},{"emptyLinePlaceholder":364},[1780],{"type":44,"value":367},{"type":39,"tag":326,"props":1782,"children":1783},{"class":328,"line":853},[1784,1789,1794,1799,1804,1809,1814,1819],{"type":39,"tag":326,"props":1785,"children":1786},{"style":993},[1787],{"type":44,"value":1788},"  if",{"type":39,"tag":326,"props":1790,"children":1791},{"style":1301},[1792],{"type":44,"value":1793}," (",{"type":39,"tag":326,"props":1795,"children":1796},{"style":452},[1797],{"type":44,"value":1798},"!",{"type":39,"tag":326,"props":1800,"children":1801},{"style":1004},[1802],{"type":44,"value":1803},"conversationHistory",{"type":39,"tag":326,"props":1805,"children":1806},{"style":1301},[1807],{"type":44,"value":1808},"[",{"type":39,"tag":326,"props":1810,"children":1811},{"style":1004},[1812],{"type":44,"value":1813},"convId",{"type":39,"tag":326,"props":1815,"children":1816},{"style":1301},[1817],{"type":44,"value":1818},"]) ",{"type":39,"tag":326,"props":1820,"children":1821},{"style":452},[1822],{"type":44,"value":1823},"{\n",{"type":39,"tag":326,"props":1825,"children":1826},{"class":328,"line":861},[1827,1832,1836,1840,1845,1849,1854],{"type":39,"tag":326,"props":1828,"children":1829},{"style":1004},[1830],{"type":44,"value":1831},"    conversationHistory",{"type":39,"tag":326,"props":1833,"children":1834},{"style":1301},[1835],{"type":44,"value":1808},{"type":39,"tag":326,"props":1837,"children":1838},{"style":1004},[1839],{"type":44,"value":1813},{"type":39,"tag":326,"props":1841,"children":1842},{"style":1301},[1843],{"type":44,"value":1844},"] ",{"type":39,"tag":326,"props":1846,"children":1847},{"style":452},[1848],{"type":44,"value":1234},{"type":39,"tag":326,"props":1850,"children":1851},{"style":1301},[1852],{"type":44,"value":1853}," []",{"type":39,"tag":326,"props":1855,"children":1856},{"style":452},[1857],{"type":44,"value":1037},{"type":39,"tag":326,"props":1859,"children":1860},{"class":328,"line":870},[1861],{"type":39,"tag":326,"props":1862,"children":1863},{"style":452},[1864],{"type":44,"value":1865},"  }\n",{"type":39,"tag":326,"props":1867,"children":1868},{"class":328,"line":879},[1869],{"type":39,"tag":326,"props":1870,"children":1871},{"emptyLinePlaceholder":364},[1872],{"type":44,"value":367},{"type":39,"tag":326,"props":1874,"children":1875},{"class":328,"line":888},[1876,1880,1885,1889,1894,1898,1903,1907,1912,1916,1920,1924],{"type":39,"tag":326,"props":1877,"children":1878},{"style":1221},[1879],{"type":44,"value":1746},{"type":39,"tag":326,"props":1881,"children":1882},{"style":1004},[1883],{"type":44,"value":1884}," memoryContext",{"type":39,"tag":326,"props":1886,"children":1887},{"style":452},[1888],{"type":44,"value":1543},{"type":39,"tag":326,"props":1890,"children":1891},{"style":1004},[1892],{"type":44,"value":1893}," MemoryPromptBuilder",{"type":39,"tag":326,"props":1895,"children":1896},{"style":452},[1897],{"type":44,"value":1283},{"type":39,"tag":326,"props":1899,"children":1900},{"style":519},[1901],{"type":44,"value":1902},"build",{"type":39,"tag":326,"props":1904,"children":1905},{"style":1301},[1906],{"type":44,"value":1293},{"type":39,"tag":326,"props":1908,"children":1909},{"style":1004},[1910],{"type":44,"value":1911},"memory",{"type":39,"tag":326,"props":1913,"children":1914},{"style":452},[1915],{"type":44,"value":1507},{"type":39,"tag":326,"props":1917,"children":1918},{"style":1004},[1919],{"type":44,"value":1724},{"type":39,"tag":326,"props":1921,"children":1922},{"style":1301},[1923],{"type":44,"value":1336},{"type":39,"tag":326,"props":1925,"children":1926},{"style":452},[1927],{"type":44,"value":1037},{"type":39,"tag":326,"props":1929,"children":1930},{"class":328,"line":897},[1931,1935,1940,1944,1949,1954,1958,1963,1968,1973,1978,1983,1987,1992,1997,2002,2006],{"type":39,"tag":326,"props":1932,"children":1933},{"style":1221},[1934],{"type":44,"value":1746},{"type":39,"tag":326,"props":1936,"children":1937},{"style":1004},[1938],{"type":44,"value":1939}," systemPrompt",{"type":39,"tag":326,"props":1941,"children":1942},{"style":452},[1943],{"type":44,"value":1543},{"type":39,"tag":326,"props":1945,"children":1946},{"style":1004},[1947],{"type":44,"value":1948}," SYSTEM_INSTRUCTIONS",{"type":39,"tag":326,"props":1950,"children":1951},{"style":452},[1952],{"type":44,"value":1953}," +",{"type":39,"tag":326,"props":1955,"children":1956},{"style":1301},[1957],{"type":44,"value":1793},{"type":39,"tag":326,"props":1959,"children":1960},{"style":1004},[1961],{"type":44,"value":1962},"memoryContext",{"type":39,"tag":326,"props":1964,"children":1965},{"style":452},[1966],{"type":44,"value":1967}," ?",{"type":39,"tag":326,"props":1969,"children":1970},{"style":452},[1971],{"type":44,"value":1972}," `",{"type":39,"tag":326,"props":1974,"children":1975},{"style":1004},[1976],{"type":44,"value":1977},"\\n\\n",{"type":39,"tag":326,"props":1979,"children":1980},{"style":452},[1981],{"type":44,"value":1982},"${",{"type":39,"tag":326,"props":1984,"children":1985},{"style":1004},[1986],{"type":44,"value":1962},{"type":39,"tag":326,"props":1988,"children":1989},{"style":452},[1990],{"type":44,"value":1991},"}`",{"type":39,"tag":326,"props":1993,"children":1994},{"style":452},[1995],{"type":44,"value":1996}," :",{"type":39,"tag":326,"props":1998,"children":1999},{"style":452},[2000],{"type":44,"value":2001}," ''",{"type":39,"tag":326,"props":2003,"children":2004},{"style":1301},[2005],{"type":44,"value":1336},{"type":39,"tag":326,"props":2007,"children":2008},{"style":452},[2009],{"type":44,"value":1037},{"type":39,"tag":326,"props":2011,"children":2012},{"class":328,"line":906},[2013],{"type":39,"tag":326,"props":2014,"children":2015},{"emptyLinePlaceholder":364},[2016],{"type":44,"value":367},{"type":39,"tag":326,"props":2018,"children":2019},{"class":328,"line":914},[2020,2025,2029,2033,2038,2042,2047,2051,2055,2060,2064,2068,2073,2077,2081,2086,2090,2094,2098,2102],{"type":39,"tag":326,"props":2021,"children":2022},{"style":1004},[2023],{"type":44,"value":2024},"  conversationHistory",{"type":39,"tag":326,"props":2026,"children":2027},{"style":1301},[2028],{"type":44,"value":1808},{"type":39,"tag":326,"props":2030,"children":2031},{"style":1004},[2032],{"type":44,"value":1813},{"type":39,"tag":326,"props":2034,"children":2035},{"style":1301},[2036],{"type":44,"value":2037},"]",{"type":39,"tag":326,"props":2039,"children":2040},{"style":452},[2041],{"type":44,"value":1283},{"type":39,"tag":326,"props":2043,"children":2044},{"style":519},[2045],{"type":44,"value":2046},"push",{"type":39,"tag":326,"props":2048,"children":2049},{"style":1301},[2050],{"type":44,"value":1293},{"type":39,"tag":326,"props":2052,"children":2053},{"style":452},[2054],{"type":44,"value":1298},{"type":39,"tag":326,"props":2056,"children":2057},{"style":1301},[2058],{"type":44,"value":2059}," role",{"type":39,"tag":326,"props":2061,"children":2062},{"style":452},[2063],{"type":44,"value":1308},{"type":39,"tag":326,"props":2065,"children":2066},{"style":452},[2067],{"type":44,"value":1022},{"type":39,"tag":326,"props":2069,"children":2070},{"style":349},[2071],{"type":44,"value":2072},"user",{"type":39,"tag":326,"props":2074,"children":2075},{"style":452},[2076],{"type":44,"value":1032},{"type":39,"tag":326,"props":2078,"children":2079},{"style":452},[2080],{"type":44,"value":1507},{"type":39,"tag":326,"props":2082,"children":2083},{"style":1301},[2084],{"type":44,"value":2085}," content",{"type":39,"tag":326,"props":2087,"children":2088},{"style":452},[2089],{"type":44,"value":1308},{"type":39,"tag":326,"props":2091,"children":2092},{"style":1004},[2093],{"type":44,"value":1706},{"type":39,"tag":326,"props":2095,"children":2096},{"style":452},[2097],{"type":44,"value":1012},{"type":39,"tag":326,"props":2099,"children":2100},{"style":1301},[2101],{"type":44,"value":1336},{"type":39,"tag":326,"props":2103,"children":2104},{"style":452},[2105],{"type":44,"value":1037},{"type":39,"tag":326,"props":2107,"children":2108},{"class":328,"line":923},[2109],{"type":39,"tag":326,"props":2110,"children":2111},{"emptyLinePlaceholder":364},[2112],{"type":44,"value":367},{"type":39,"tag":326,"props":2114,"children":2115},{"class":328,"line":932},[2116,2120,2125,2129,2133,2138,2142,2147,2151,2156,2160,2164,2168],{"type":39,"tag":326,"props":2117,"children":2118},{"style":1221},[2119],{"type":44,"value":1746},{"type":39,"tag":326,"props":2121,"children":2122},{"style":1004},[2123],{"type":44,"value":2124}," response",{"type":39,"tag":326,"props":2126,"children":2127},{"style":452},[2128],{"type":44,"value":1543},{"type":39,"tag":326,"props":2130,"children":2131},{"style":993},[2132],{"type":44,"value":1273},{"type":39,"tag":326,"props":2134,"children":2135},{"style":1004},[2136],{"type":44,"value":2137}," openai",{"type":39,"tag":326,"props":2139,"children":2140},{"style":452},[2141],{"type":44,"value":1283},{"type":39,"tag":326,"props":2143,"children":2144},{"style":1004},[2145],{"type":44,"value":2146},"chat",{"type":39,"tag":326,"props":2148,"children":2149},{"style":452},[2150],{"type":44,"value":1283},{"type":39,"tag":326,"props":2152,"children":2153},{"style":1004},[2154],{"type":44,"value":2155},"completions",{"type":39,"tag":326,"props":2157,"children":2158},{"style":452},[2159],{"type":44,"value":1283},{"type":39,"tag":326,"props":2161,"children":2162},{"style":519},[2163],{"type":44,"value":1288},{"type":39,"tag":326,"props":2165,"children":2166},{"style":1301},[2167],{"type":44,"value":1293},{"type":39,"tag":326,"props":2169,"children":2170},{"style":452},[2171],{"type":44,"value":1823},{"type":39,"tag":326,"props":2173,"children":2174},{"class":328,"line":940},[2175,2180,2184,2188,2193,2197],{"type":39,"tag":326,"props":2176,"children":2177},{"style":1301},[2178],{"type":44,"value":2179},"    model",{"type":39,"tag":326,"props":2181,"children":2182},{"style":452},[2183],{"type":44,"value":1308},{"type":39,"tag":326,"props":2185,"children":2186},{"style":452},[2187],{"type":44,"value":1022},{"type":39,"tag":326,"props":2189,"children":2190},{"style":349},[2191],{"type":44,"value":2192},"gpt-5.4-mini",{"type":39,"tag":326,"props":2194,"children":2195},{"style":452},[2196],{"type":44,"value":1032},{"type":39,"tag":326,"props":2198,"children":2199},{"style":452},[2200],{"type":44,"value":1096},{"type":39,"tag":326,"props":2202,"children":2203},{"class":328,"line":949},[2204,2209,2213],{"type":39,"tag":326,"props":2205,"children":2206},{"style":1301},[2207],{"type":44,"value":2208},"    messages",{"type":39,"tag":326,"props":2210,"children":2211},{"style":452},[2212],{"type":44,"value":1308},{"type":39,"tag":326,"props":2214,"children":2215},{"style":1301},[2216],{"type":44,"value":2217}," [\n",{"type":39,"tag":326,"props":2219,"children":2220},{"class":328,"line":957},[2221,2226,2230,2234,2238,2243,2247,2251,2255,2259,2263],{"type":39,"tag":326,"props":2222,"children":2223},{"style":452},[2224],{"type":44,"value":2225},"      {",{"type":39,"tag":326,"props":2227,"children":2228},{"style":1301},[2229],{"type":44,"value":2059},{"type":39,"tag":326,"props":2231,"children":2232},{"style":452},[2233],{"type":44,"value":1308},{"type":39,"tag":326,"props":2235,"children":2236},{"style":452},[2237],{"type":44,"value":1022},{"type":39,"tag":326,"props":2239,"children":2240},{"style":349},[2241],{"type":44,"value":2242},"system",{"type":39,"tag":326,"props":2244,"children":2245},{"style":452},[2246],{"type":44,"value":1032},{"type":39,"tag":326,"props":2248,"children":2249},{"style":452},[2250],{"type":44,"value":1507},{"type":39,"tag":326,"props":2252,"children":2253},{"style":1301},[2254],{"type":44,"value":2085},{"type":39,"tag":326,"props":2256,"children":2257},{"style":452},[2258],{"type":44,"value":1308},{"type":39,"tag":326,"props":2260,"children":2261},{"style":1004},[2262],{"type":44,"value":1939},{"type":39,"tag":326,"props":2264,"children":2265},{"style":452},[2266],{"type":44,"value":2267}," },\n",{"type":39,"tag":326,"props":2269,"children":2270},{"class":328,"line":966},[2271,2276,2280,2284,2288,2292],{"type":39,"tag":326,"props":2272,"children":2273},{"style":452},[2274],{"type":44,"value":2275},"      ...",{"type":39,"tag":326,"props":2277,"children":2278},{"style":1004},[2279],{"type":44,"value":1803},{"type":39,"tag":326,"props":2281,"children":2282},{"style":1301},[2283],{"type":44,"value":1808},{"type":39,"tag":326,"props":2285,"children":2286},{"style":1004},[2287],{"type":44,"value":1813},{"type":39,"tag":326,"props":2289,"children":2290},{"style":1301},[2291],{"type":44,"value":2037},{"type":39,"tag":326,"props":2293,"children":2294},{"style":452},[2295],{"type":44,"value":1096},{"type":39,"tag":326,"props":2297,"children":2299},{"class":328,"line":2298},47,[2300,2305],{"type":39,"tag":326,"props":2301,"children":2302},{"style":1301},[2303],{"type":44,"value":2304},"    ]",{"type":39,"tag":326,"props":2306,"children":2307},{"style":452},[2308],{"type":44,"value":1096},{"type":39,"tag":326,"props":2310,"children":2312},{"class":328,"line":2311},48,[2313,2318,2322],{"type":39,"tag":326,"props":2314,"children":2315},{"style":452},[2316],{"type":44,"value":2317},"  }",{"type":39,"tag":326,"props":2319,"children":2320},{"style":1301},[2321],{"type":44,"value":1336},{"type":39,"tag":326,"props":2323,"children":2324},{"style":452},[2325],{"type":44,"value":1037},{"type":39,"tag":326,"props":2327,"children":2329},{"class":328,"line":2328},49,[2330],{"type":39,"tag":326,"props":2331,"children":2332},{"emptyLinePlaceholder":364},[2333],{"type":44,"value":367},{"type":39,"tag":326,"props":2335,"children":2337},{"class":328,"line":2336},50,[2338,2342,2347,2351,2355,2359,2364,2368,2374,2378,2383,2388,2392,2397,2402,2406],{"type":39,"tag":326,"props":2339,"children":2340},{"style":1221},[2341],{"type":44,"value":1746},{"type":39,"tag":326,"props":2343,"children":2344},{"style":1004},[2345],{"type":44,"value":2346}," llmResponse",{"type":39,"tag":326,"props":2348,"children":2349},{"style":452},[2350],{"type":44,"value":1543},{"type":39,"tag":326,"props":2352,"children":2353},{"style":1004},[2354],{"type":44,"value":2124},{"type":39,"tag":326,"props":2356,"children":2357},{"style":452},[2358],{"type":44,"value":1283},{"type":39,"tag":326,"props":2360,"children":2361},{"style":1004},[2362],{"type":44,"value":2363},"choices",{"type":39,"tag":326,"props":2365,"children":2366},{"style":1301},[2367],{"type":44,"value":1808},{"type":39,"tag":326,"props":2369,"children":2371},{"style":2370},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[2372],{"type":44,"value":2373},"0",{"type":39,"tag":326,"props":2375,"children":2376},{"style":1301},[2377],{"type":44,"value":2037},{"type":39,"tag":326,"props":2379,"children":2380},{"style":452},[2381],{"type":44,"value":2382},"?.",{"type":39,"tag":326,"props":2384,"children":2385},{"style":1004},[2386],{"type":44,"value":2387},"message",{"type":39,"tag":326,"props":2389,"children":2390},{"style":452},[2391],{"type":44,"value":2382},{"type":39,"tag":326,"props":2393,"children":2394},{"style":1004},[2395],{"type":44,"value":2396},"content",{"type":39,"tag":326,"props":2398,"children":2399},{"style":452},[2400],{"type":44,"value":2401}," ??",{"type":39,"tag":326,"props":2403,"children":2404},{"style":452},[2405],{"type":44,"value":2001},{"type":39,"tag":326,"props":2407,"children":2408},{"style":452},[2409],{"type":44,"value":1037},{"type":39,"tag":326,"props":2411,"children":2413},{"class":328,"line":2412},51,[2414,2418,2422,2426,2430,2434,2438,2442,2446,2450,2454,2458,2463,2467,2471,2475,2479,2483,2487,2491],{"type":39,"tag":326,"props":2415,"children":2416},{"style":1004},[2417],{"type":44,"value":2024},{"type":39,"tag":326,"props":2419,"children":2420},{"style":1301},[2421],{"type":44,"value":1808},{"type":39,"tag":326,"props":2423,"children":2424},{"style":1004},[2425],{"type":44,"value":1813},{"type":39,"tag":326,"props":2427,"children":2428},{"style":1301},[2429],{"type":44,"value":2037},{"type":39,"tag":326,"props":2431,"children":2432},{"style":452},[2433],{"type":44,"value":1283},{"type":39,"tag":326,"props":2435,"children":2436},{"style":519},[2437],{"type":44,"value":2046},{"type":39,"tag":326,"props":2439,"children":2440},{"style":1301},[2441],{"type":44,"value":1293},{"type":39,"tag":326,"props":2443,"children":2444},{"style":452},[2445],{"type":44,"value":1298},{"type":39,"tag":326,"props":2447,"children":2448},{"style":1301},[2449],{"type":44,"value":2059},{"type":39,"tag":326,"props":2451,"children":2452},{"style":452},[2453],{"type":44,"value":1308},{"type":39,"tag":326,"props":2455,"children":2456},{"style":452},[2457],{"type":44,"value":1022},{"type":39,"tag":326,"props":2459,"children":2460},{"style":349},[2461],{"type":44,"value":2462},"assistant",{"type":39,"tag":326,"props":2464,"children":2465},{"style":452},[2466],{"type":44,"value":1032},{"type":39,"tag":326,"props":2468,"children":2469},{"style":452},[2470],{"type":44,"value":1507},{"type":39,"tag":326,"props":2472,"children":2473},{"style":1301},[2474],{"type":44,"value":2085},{"type":39,"tag":326,"props":2476,"children":2477},{"style":452},[2478],{"type":44,"value":1308},{"type":39,"tag":326,"props":2480,"children":2481},{"style":1004},[2482],{"type":44,"value":2346},{"type":39,"tag":326,"props":2484,"children":2485},{"style":452},[2486],{"type":44,"value":1012},{"type":39,"tag":326,"props":2488,"children":2489},{"style":1301},[2490],{"type":44,"value":1336},{"type":39,"tag":326,"props":2492,"children":2493},{"style":452},[2494],{"type":44,"value":1037},{"type":39,"tag":326,"props":2496,"children":2498},{"class":328,"line":2497},52,[2499],{"type":39,"tag":326,"props":2500,"children":2501},{"emptyLinePlaceholder":364},[2502],{"type":44,"value":367},{"type":39,"tag":326,"props":2504,"children":2506},{"class":328,"line":2505},53,[2507,2512,2516],{"type":39,"tag":326,"props":2508,"children":2509},{"style":993},[2510],{"type":44,"value":2511},"  return",{"type":39,"tag":326,"props":2513,"children":2514},{"style":1004},[2515],{"type":44,"value":2346},{"type":39,"tag":326,"props":2517,"children":2518},{"style":452},[2519],{"type":44,"value":1037},{"type":39,"tag":326,"props":2521,"children":2523},{"class":328,"line":2522},54,[2524,2528,2532],{"type":39,"tag":326,"props":2525,"children":2526},{"style":452},[2527],{"type":44,"value":1164},{"type":39,"tag":326,"props":2529,"children":2530},{"style":1004},[2531],{"type":44,"value":1336},{"type":39,"tag":326,"props":2533,"children":2534},{"style":452},[2535],{"type":44,"value":1037},{"type":39,"tag":326,"props":2537,"children":2539},{"class":328,"line":2538},55,[2540],{"type":39,"tag":326,"props":2541,"children":2542},{"emptyLinePlaceholder":364},[2543],{"type":44,"value":367},{"type":39,"tag":326,"props":2545,"children":2547},{"class":328,"line":2546},56,[2548,2552,2557,2561,2565,2570,2574],{"type":39,"tag":326,"props":2549,"children":2550},{"style":1221},[2551],{"type":44,"value":1224},{"type":39,"tag":326,"props":2553,"children":2554},{"style":1004},[2555],{"type":44,"value":2556}," server ",{"type":39,"tag":326,"props":2558,"children":2559},{"style":452},[2560],{"type":44,"value":1234},{"type":39,"tag":326,"props":2562,"children":2563},{"style":452},[2564],{"type":44,"value":1239},{"type":39,"tag":326,"props":2566,"children":2567},{"style":519},[2568],{"type":44,"value":2569}," TACServer",{"type":39,"tag":326,"props":2571,"children":2572},{"style":1004},[2573],{"type":44,"value":1370},{"type":39,"tag":326,"props":2575,"children":2576},{"style":452},[2577],{"type":44,"value":1037},{"type":39,"tag":326,"props":2579,"children":2581},{"class":328,"line":2580},57,[2582,2587,2592,2596,2601,2605],{"type":39,"tag":326,"props":2583,"children":2584},{"style":993},[2585],{"type":44,"value":2586},"await",{"type":39,"tag":326,"props":2588,"children":2589},{"style":1004},[2590],{"type":44,"value":2591}," server",{"type":39,"tag":326,"props":2593,"children":2594},{"style":452},[2595],{"type":44,"value":1283},{"type":39,"tag":326,"props":2597,"children":2598},{"style":519},[2599],{"type":44,"value":2600},"start",{"type":39,"tag":326,"props":2602,"children":2603},{"style":1004},[2604],{"type":44,"value":1204},{"type":39,"tag":326,"props":2606,"children":2607},{"style":452},[2608],{"type":44,"value":1037},{"type":39,"tag":47,"props":2610,"children":2612},{"id":2611},"configuration",[2613],{"type":44,"value":2614},"Configuration",{"type":39,"tag":77,"props":2616,"children":2618},{"id":2617},"required-environment-variables",[2619],{"type":44,"value":2620},"Required Environment Variables",{"type":39,"tag":314,"props":2622,"children":2624},{"className":316,"code":2623,"language":318,"meta":319,"style":319},"# Twilio Account Credentials\nTWILIO_ACCOUNT_SID=ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\nTWILIO_AUTH_TOKEN=your_auth_token\nTWILIO_API_KEY=SKxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\nTWILIO_API_SECRET=your_api_key_secret\n\n# Conversation Configuration\nTWILIO_CONVERSATION_CONFIGURATION_ID=conv_configuration_xxxx\n\n# Phone Number\nTWILIO_PHONE_NUMBER=+1234567890\n\n# Server Configuration (for Voice)\nTWILIO_VOICE_PUBLIC_DOMAIN=your-domain.ngrok.io\n",[2625],{"type":39,"tag":322,"props":2626,"children":2627},{"__ignoreMap":319},[2628,2636,2653,2670,2687,2704,2711,2719,2736,2743,2751,2768,2775,2783],{"type":39,"tag":326,"props":2629,"children":2630},{"class":328,"line":329},[2631],{"type":39,"tag":326,"props":2632,"children":2633},{"style":333},[2634],{"type":44,"value":2635},"# Twilio Account Credentials\n",{"type":39,"tag":326,"props":2637,"children":2638},{"class":328,"line":339},[2639,2644,2648],{"type":39,"tag":326,"props":2640,"children":2641},{"style":1004},[2642],{"type":44,"value":2643},"TWILIO_ACCOUNT_SID",{"type":39,"tag":326,"props":2645,"children":2646},{"style":452},[2647],{"type":44,"value":1234},{"type":39,"tag":326,"props":2649,"children":2650},{"style":349},[2651],{"type":44,"value":2652},"ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n",{"type":39,"tag":326,"props":2654,"children":2655},{"class":328,"line":360},[2656,2661,2665],{"type":39,"tag":326,"props":2657,"children":2658},{"style":1004},[2659],{"type":44,"value":2660},"TWILIO_AUTH_TOKEN",{"type":39,"tag":326,"props":2662,"children":2663},{"style":452},[2664],{"type":44,"value":1234},{"type":39,"tag":326,"props":2666,"children":2667},{"style":349},[2668],{"type":44,"value":2669},"your_auth_token\n",{"type":39,"tag":326,"props":2671,"children":2672},{"class":328,"line":370},[2673,2678,2682],{"type":39,"tag":326,"props":2674,"children":2675},{"style":1004},[2676],{"type":44,"value":2677},"TWILIO_API_KEY",{"type":39,"tag":326,"props":2679,"children":2680},{"style":452},[2681],{"type":44,"value":1234},{"type":39,"tag":326,"props":2683,"children":2684},{"style":349},[2685],{"type":44,"value":2686},"SKxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n",{"type":39,"tag":326,"props":2688,"children":2689},{"class":328,"line":379},[2690,2695,2699],{"type":39,"tag":326,"props":2691,"children":2692},{"style":1004},[2693],{"type":44,"value":2694},"TWILIO_API_SECRET",{"type":39,"tag":326,"props":2696,"children":2697},{"style":452},[2698],{"type":44,"value":1234},{"type":39,"tag":326,"props":2700,"children":2701},{"style":349},[2702],{"type":44,"value":2703},"your_api_key_secret\n",{"type":39,"tag":326,"props":2705,"children":2706},{"class":328,"line":406},[2707],{"type":39,"tag":326,"props":2708,"children":2709},{"emptyLinePlaceholder":364},[2710],{"type":44,"value":367},{"type":39,"tag":326,"props":2712,"children":2713},{"class":328,"line":27},[2714],{"type":39,"tag":326,"props":2715,"children":2716},{"style":333},[2717],{"type":44,"value":2718},"# Conversation Configuration\n",{"type":39,"tag":326,"props":2720,"children":2721},{"class":328,"line":422},[2722,2727,2731],{"type":39,"tag":326,"props":2723,"children":2724},{"style":1004},[2725],{"type":44,"value":2726},"TWILIO_CONVERSATION_CONFIGURATION_ID",{"type":39,"tag":326,"props":2728,"children":2729},{"style":452},[2730],{"type":44,"value":1234},{"type":39,"tag":326,"props":2732,"children":2733},{"style":349},[2734],{"type":44,"value":2735},"conv_configuration_xxxx\n",{"type":39,"tag":326,"props":2737,"children":2738},{"class":328,"line":440},[2739],{"type":39,"tag":326,"props":2740,"children":2741},{"emptyLinePlaceholder":364},[2742],{"type":44,"value":367},{"type":39,"tag":326,"props":2744,"children":2745},{"class":328,"line":652},[2746],{"type":39,"tag":326,"props":2747,"children":2748},{"style":333},[2749],{"type":44,"value":2750},"# Phone Number\n",{"type":39,"tag":326,"props":2752,"children":2753},{"class":328,"line":660},[2754,2759,2763],{"type":39,"tag":326,"props":2755,"children":2756},{"style":1004},[2757],{"type":44,"value":2758},"TWILIO_PHONE_NUMBER",{"type":39,"tag":326,"props":2760,"children":2761},{"style":452},[2762],{"type":44,"value":1234},{"type":39,"tag":326,"props":2764,"children":2765},{"style":349},[2766],{"type":44,"value":2767},"+1234567890\n",{"type":39,"tag":326,"props":2769,"children":2770},{"class":328,"line":669},[2771],{"type":39,"tag":326,"props":2772,"children":2773},{"emptyLinePlaceholder":364},[2774],{"type":44,"value":367},{"type":39,"tag":326,"props":2776,"children":2777},{"class":328,"line":678},[2778],{"type":39,"tag":326,"props":2779,"children":2780},{"style":333},[2781],{"type":44,"value":2782},"# Server Configuration (for Voice)\n",{"type":39,"tag":326,"props":2784,"children":2785},{"class":328,"line":687},[2786,2791,2795],{"type":39,"tag":326,"props":2787,"children":2788},{"style":1004},[2789],{"type":44,"value":2790},"TWILIO_VOICE_PUBLIC_DOMAIN",{"type":39,"tag":326,"props":2792,"children":2793},{"style":452},[2794],{"type":44,"value":1234},{"type":39,"tag":326,"props":2796,"children":2797},{"style":349},[2798],{"type":44,"value":2799},"your-domain.ngrok.io\n",{"type":39,"tag":77,"props":2801,"children":2803},{"id":2802},"optional-memory-configuration",[2804],{"type":44,"value":2805},"Optional Memory Configuration",{"type":39,"tag":314,"props":2807,"children":2809},{"className":316,"code":2808,"language":318,"meta":319,"style":319},"# Conversation Memory (optional)\nTWILIO_MEMORY_STORE_ID=mem_service_xxxx\nTWILIO_TRAIT_GROUPS=Contact,Preferences\n",[2810],{"type":39,"tag":322,"props":2811,"children":2812},{"__ignoreMap":319},[2813,2821,2838],{"type":39,"tag":326,"props":2814,"children":2815},{"class":328,"line":329},[2816],{"type":39,"tag":326,"props":2817,"children":2818},{"style":333},[2819],{"type":44,"value":2820},"# Conversation Memory (optional)\n",{"type":39,"tag":326,"props":2822,"children":2823},{"class":328,"line":339},[2824,2829,2833],{"type":39,"tag":326,"props":2825,"children":2826},{"style":1004},[2827],{"type":44,"value":2828},"TWILIO_MEMORY_STORE_ID",{"type":39,"tag":326,"props":2830,"children":2831},{"style":452},[2832],{"type":44,"value":1234},{"type":39,"tag":326,"props":2834,"children":2835},{"style":349},[2836],{"type":44,"value":2837},"mem_service_xxxx\n",{"type":39,"tag":326,"props":2839,"children":2840},{"class":328,"line":360},[2841,2846,2850],{"type":39,"tag":326,"props":2842,"children":2843},{"style":1004},[2844],{"type":44,"value":2845},"TWILIO_TRAIT_GROUPS",{"type":39,"tag":326,"props":2847,"children":2848},{"style":452},[2849],{"type":44,"value":1234},{"type":39,"tag":326,"props":2851,"children":2852},{"style":349},[2853],{"type":44,"value":2854},"Contact,Preferences\n",{"type":39,"tag":47,"props":2856,"children":2858},{"id":2857},"cloud-platform-integrations",[2859],{"type":44,"value":2860},"Cloud Platform Integrations",{"type":39,"tag":77,"props":2862,"children":2864},{"id":2863},"aws-integration",[2865],{"type":44,"value":2866},"AWS Integration",{"type":39,"tag":54,"props":2868,"children":2869},{},[2870,2875,2877],{"type":39,"tag":63,"props":2871,"children":2872},{},[2873],{"type":44,"value":2874},"Package",{"type":44,"value":2876},": ",{"type":39,"tag":322,"props":2878,"children":2880},{"className":2879},[],[2881],{"type":44,"value":2882},"twilio-agent-connect-aws",{"type":39,"tag":54,"props":2884,"children":2885},{},[2886],{"type":44,"value":2887},"Connect AWS agent services to Twilio channels:",{"type":39,"tag":314,"props":2889,"children":2891},{"className":316,"code":2890,"language":318,"meta":319,"style":319},"# With Strands SDK\npip install twilio-agent-connect-aws[strands,server]\n\n# With Bedrock Agents\npip install twilio-agent-connect-aws[bedrock,server]\n\n# With Bedrock AgentCore\npip install twilio-agent-connect-aws[agentcore,server]\n",[2892],{"type":39,"tag":322,"props":2893,"children":2894},{"__ignoreMap":319},[2895,2903,2919,2926,2934,2950,2957,2965],{"type":39,"tag":326,"props":2896,"children":2897},{"class":328,"line":329},[2898],{"type":39,"tag":326,"props":2899,"children":2900},{"style":333},[2901],{"type":44,"value":2902},"# With Strands SDK\n",{"type":39,"tag":326,"props":2904,"children":2905},{"class":328,"line":339},[2906,2910,2914],{"type":39,"tag":326,"props":2907,"children":2908},{"style":343},[2909],{"type":44,"value":428},{"type":39,"tag":326,"props":2911,"children":2912},{"style":349},[2913],{"type":44,"value":433},{"type":39,"tag":326,"props":2915,"children":2916},{"style":349},[2917],{"type":44,"value":2918}," twilio-agent-connect-aws[strands,server]\n",{"type":39,"tag":326,"props":2920,"children":2921},{"class":328,"line":360},[2922],{"type":39,"tag":326,"props":2923,"children":2924},{"emptyLinePlaceholder":364},[2925],{"type":44,"value":367},{"type":39,"tag":326,"props":2927,"children":2928},{"class":328,"line":370},[2929],{"type":39,"tag":326,"props":2930,"children":2931},{"style":333},[2932],{"type":44,"value":2933},"# With Bedrock Agents\n",{"type":39,"tag":326,"props":2935,"children":2936},{"class":328,"line":379},[2937,2941,2945],{"type":39,"tag":326,"props":2938,"children":2939},{"style":343},[2940],{"type":44,"value":428},{"type":39,"tag":326,"props":2942,"children":2943},{"style":349},[2944],{"type":44,"value":433},{"type":39,"tag":326,"props":2946,"children":2947},{"style":349},[2948],{"type":44,"value":2949}," twilio-agent-connect-aws[bedrock,server]\n",{"type":39,"tag":326,"props":2951,"children":2952},{"class":328,"line":406},[2953],{"type":39,"tag":326,"props":2954,"children":2955},{"emptyLinePlaceholder":364},[2956],{"type":44,"value":367},{"type":39,"tag":326,"props":2958,"children":2959},{"class":328,"line":27},[2960],{"type":39,"tag":326,"props":2961,"children":2962},{"style":333},[2963],{"type":44,"value":2964},"# With Bedrock AgentCore\n",{"type":39,"tag":326,"props":2966,"children":2967},{"class":328,"line":422},[2968,2972,2976],{"type":39,"tag":326,"props":2969,"children":2970},{"style":343},[2971],{"type":44,"value":428},{"type":39,"tag":326,"props":2973,"children":2974},{"style":349},[2975],{"type":44,"value":433},{"type":39,"tag":326,"props":2977,"children":2978},{"style":349},[2979],{"type":44,"value":2980}," twilio-agent-connect-aws[agentcore,server]\n",{"type":39,"tag":54,"props":2982,"children":2983},{},[2984,2989],{"type":39,"tag":63,"props":2985,"children":2986},{},[2987],{"type":44,"value":2988},"Features",{"type":44,"value":1308},{"type":39,"tag":104,"props":2991,"children":2992},{},[2993,3003,3013],{"type":39,"tag":93,"props":2994,"children":2995},{},[2996,3001],{"type":39,"tag":63,"props":2997,"children":2998},{},[2999],{"type":44,"value":3000},"StrandsConnector",{"type":44,"value":3002}," - AWS Strands SDK integration with per-conversation agent isolation",{"type":39,"tag":93,"props":3004,"children":3005},{},[3006,3011],{"type":39,"tag":63,"props":3007,"children":3008},{},[3009],{"type":44,"value":3010},"BedrockConnector",{"type":44,"value":3012}," - AWS Bedrock Agents (console-created agents)",{"type":39,"tag":93,"props":3014,"children":3015},{},[3016,3021],{"type":39,"tag":63,"props":3017,"children":3018},{},[3019],{"type":44,"value":3020},"BedrockAgentCoreConnector",{"type":44,"value":3022}," - AWS Bedrock AgentCore (custom agent code deployment)",{"type":39,"tag":54,"props":3024,"children":3025},{},[3026,3031,3032],{"type":39,"tag":63,"props":3027,"children":3028},{},[3029],{"type":44,"value":3030},"Repository",{"type":44,"value":2876},{"type":39,"tag":3033,"props":3034,"children":3038},"a",{"href":3035,"rel":3036},"https:\u002F\u002Fgithub.com\u002Ftwilio\u002Ftwilio-agent-connect-aws",[3037],"nofollow",[3039],{"type":44,"value":3035},{"type":39,"tag":77,"props":3041,"children":3043},{"id":3042},"microsoftazure-integration",[3044],{"type":44,"value":3045},"Microsoft\u002FAzure Integration",{"type":39,"tag":54,"props":3047,"children":3048},{},[3049,3053,3054,3060,3062,3068],{"type":39,"tag":63,"props":3050,"children":3051},{},[3052],{"type":44,"value":2874},{"type":44,"value":2876},{"type":39,"tag":322,"props":3055,"children":3057},{"className":3056},[],[3058],{"type":44,"value":3059},"twilio-agent-connect-microsoft",{"type":44,"value":3061}," (formerly ",{"type":39,"tag":322,"props":3063,"children":3065},{"className":3064},[],[3066],{"type":44,"value":3067},"tac-azure",{"type":44,"value":1336},{"type":39,"tag":54,"props":3070,"children":3071},{},[3072],{"type":44,"value":3073},"Connect Microsoft Foundry agents to Twilio channels:",{"type":39,"tag":314,"props":3075,"children":3077},{"className":316,"code":3076,"language":318,"meta":319,"style":319},"# With Agent Framework\npip install twilio-agent-connect-microsoft[agent-framework,server]\n\n# With Voice Live\npip install twilio-agent-connect-microsoft[voice-live,server]\n",[3078],{"type":39,"tag":322,"props":3079,"children":3080},{"__ignoreMap":319},[3081,3089,3105,3112,3120],{"type":39,"tag":326,"props":3082,"children":3083},{"class":328,"line":329},[3084],{"type":39,"tag":326,"props":3085,"children":3086},{"style":333},[3087],{"type":44,"value":3088},"# With Agent Framework\n",{"type":39,"tag":326,"props":3090,"children":3091},{"class":328,"line":339},[3092,3096,3100],{"type":39,"tag":326,"props":3093,"children":3094},{"style":343},[3095],{"type":44,"value":428},{"type":39,"tag":326,"props":3097,"children":3098},{"style":349},[3099],{"type":44,"value":433},{"type":39,"tag":326,"props":3101,"children":3102},{"style":349},[3103],{"type":44,"value":3104}," twilio-agent-connect-microsoft[agent-framework,server]\n",{"type":39,"tag":326,"props":3106,"children":3107},{"class":328,"line":360},[3108],{"type":39,"tag":326,"props":3109,"children":3110},{"emptyLinePlaceholder":364},[3111],{"type":44,"value":367},{"type":39,"tag":326,"props":3113,"children":3114},{"class":328,"line":370},[3115],{"type":39,"tag":326,"props":3116,"children":3117},{"style":333},[3118],{"type":44,"value":3119},"# With Voice Live\n",{"type":39,"tag":326,"props":3121,"children":3122},{"class":328,"line":379},[3123,3127,3131],{"type":39,"tag":326,"props":3124,"children":3125},{"style":343},[3126],{"type":44,"value":428},{"type":39,"tag":326,"props":3128,"children":3129},{"style":349},[3130],{"type":44,"value":433},{"type":39,"tag":326,"props":3132,"children":3133},{"style":349},[3134],{"type":44,"value":3135}," twilio-agent-connect-microsoft[voice-live,server]\n",{"type":39,"tag":54,"props":3137,"children":3138},{},[3139,3143],{"type":39,"tag":63,"props":3140,"children":3141},{},[3142],{"type":44,"value":2988},{"type":44,"value":1308},{"type":39,"tag":104,"props":3145,"children":3146},{},[3147,3175],{"type":39,"tag":93,"props":3148,"children":3149},{},[3150,3155,3157],{"type":39,"tag":63,"props":3151,"children":3152},{},[3153],{"type":44,"value":3154},"AgentFrameworkConnector",{"type":44,"value":3156}," - Microsoft Agent Framework integration\n",{"type":39,"tag":104,"props":3158,"children":3159},{},[3160,3165,3170],{"type":39,"tag":93,"props":3161,"children":3162},{},[3163],{"type":44,"value":3164},"Supports Foundry Hosted Agents, Foundry Prompt Agents, Azure OpenAI (Responses API, Chat Completions)",{"type":39,"tag":93,"props":3166,"children":3167},{},[3168],{"type":44,"value":3169},"Pluggable session persistence (in-memory, file, Cosmos DB)",{"type":39,"tag":93,"props":3171,"children":3172},{},[3173],{"type":44,"value":3174},"Memory context injection and lifecycle hooks",{"type":39,"tag":93,"props":3176,"children":3177},{},[3178,3183,3185],{"type":39,"tag":63,"props":3179,"children":3180},{},[3181],{"type":44,"value":3182},"VoiceLiveConnector",{"type":44,"value":3184}," - Voice Live API integration\n",{"type":39,"tag":104,"props":3186,"children":3187},{},[3188,3193,3198,3209,3214],{"type":39,"tag":93,"props":3189,"children":3190},{},[3191],{"type":44,"value":3192},"Text-in \u002F text-streaming-out over WebSocket",{"type":39,"tag":93,"props":3194,"children":3195},{},[3196],{"type":44,"value":3197},"STT and TTS handled by Twilio ConversationRelay",{"type":39,"tag":93,"props":3199,"children":3200},{},[3201,3203],{"type":44,"value":3202},"Native interrupt handling via Voice Live ",{"type":39,"tag":322,"props":3204,"children":3206},{"className":3205},[],[3207],{"type":44,"value":3208},"response.cancel",{"type":39,"tag":93,"props":3210,"children":3211},{},[3212],{"type":44,"value":3213},"Server-side conversation state management",{"type":39,"tag":93,"props":3215,"children":3216},{},[3217],{"type":44,"value":3218},"Tool execution with async handlers",{"type":39,"tag":54,"props":3220,"children":3221},{},[3222,3226,3227],{"type":39,"tag":63,"props":3223,"children":3224},{},[3225],{"type":44,"value":3030},{"type":44,"value":2876},{"type":39,"tag":3033,"props":3228,"children":3231},{"href":3229,"rel":3230},"https:\u002F\u002Fgithub.com\u002Ftwilio\u002Ftwilio-agent-connect-microsoft",[3037],[3232],{"type":44,"value":3229},{"type":39,"tag":47,"props":3234,"children":3236},{"id":3235},"key-features",[3237],{"type":44,"value":3238},"Key Features",{"type":39,"tag":77,"props":3240,"children":3242},{"id":3241},"memory-management",[3243],{"type":44,"value":3244},"Memory Management",{"type":39,"tag":54,"props":3246,"children":3247},{},[3248],{"type":44,"value":3249},"Automatic integration with Twilio Conversation Memory for persistent user context:",{"type":39,"tag":104,"props":3251,"children":3252},{},[3253,3258,3262,3267],{"type":39,"tag":93,"props":3254,"children":3255},{},[3256],{"type":44,"value":3257},"Profile retrieval with traits",{"type":39,"tag":93,"props":3259,"children":3260},{},[3261],{"type":44,"value":116},{"type":39,"tag":93,"props":3263,"children":3264},{},[3265],{"type":44,"value":3266},"Session history with full message context",{"type":39,"tag":93,"props":3268,"children":3269},{},[3270],{"type":44,"value":3271},"Automatic profile lookup by phone\u002Femail",{"type":39,"tag":77,"props":3273,"children":3275},{"id":3274},"conversation-lifecycle",[3276],{"type":44,"value":3277},"Conversation Lifecycle",{"type":39,"tag":54,"props":3279,"children":3280},{},[3281],{"type":44,"value":3282},"Automatic tracking of conversation sessions and state:",{"type":39,"tag":104,"props":3284,"children":3285},{},[3286,3291,3295,3300],{"type":39,"tag":93,"props":3287,"children":3288},{},[3289],{"type":44,"value":3290},"Multi-channel conversation initialization",{"type":39,"tag":93,"props":3292,"children":3293},{},[3294],{"type":44,"value":149},{"type":39,"tag":93,"props":3296,"children":3297},{},[3298],{"type":44,"value":3299},"Conversation status tracking",{"type":39,"tag":93,"props":3301,"children":3302},{},[3303],{"type":44,"value":3304},"Graceful cleanup on conversation end",{"type":39,"tag":77,"props":3306,"children":3308},{"id":3307},"message-flow",[3309],{"type":44,"value":3310},"Message Flow",{"type":39,"tag":89,"props":3312,"children":3313},{},[3314,3324,3334,3344,3362],{"type":39,"tag":93,"props":3315,"children":3316},{},[3317,3322],{"type":39,"tag":63,"props":3318,"children":3319},{},[3320],{"type":44,"value":3321},"Webhook\u002FConnection Received",{"type":44,"value":3323}," - Twilio sends webhook (messaging) or WebSocket connection (voice)",{"type":39,"tag":93,"props":3325,"children":3326},{},[3327,3332],{"type":39,"tag":63,"props":3328,"children":3329},{},[3330],{"type":44,"value":3331},"Channel Processing",{"type":44,"value":3333}," - Channel validates and processes the incoming event",{"type":39,"tag":93,"props":3335,"children":3336},{},[3337,3342],{"type":39,"tag":63,"props":3338,"children":3339},{},[3340],{"type":44,"value":3341},"Memory Retrieval",{"type":44,"value":3343}," - TAC optionally retrieves user memories and profile from Conversation Memory",{"type":39,"tag":93,"props":3345,"children":3346},{},[3347,3352,3354,3360],{"type":39,"tag":63,"props":3348,"children":3349},{},[3350],{"type":44,"value":3351},"Callback Invoked",{"type":44,"value":3353}," - Your ",{"type":39,"tag":322,"props":3355,"children":3357},{"className":3356},[],[3358],{"type":44,"value":3359},"on_message_ready",{"type":44,"value":3361}," callback receives user message, context, and optional memory response",{"type":39,"tag":93,"props":3363,"children":3364},{},[3365,3370],{"type":39,"tag":63,"props":3366,"children":3367},{},[3368],{"type":44,"value":3369},"Response Handling",{"type":44,"value":3371}," - Your callback returns a response string that TAC routes to the appropriate channel",{"type":39,"tag":77,"props":3373,"children":3375},{"id":3374},"outbound-conversations",[3376],{"type":44,"value":3377},"Outbound Conversations",{"type":39,"tag":54,"props":3379,"children":3380},{},[3381],{"type":44,"value":3382},"TAC supports agent-initiated conversations across all channels:",{"type":39,"tag":104,"props":3384,"children":3385},{},[3386,3391,3396,3401],{"type":39,"tag":93,"props":3387,"children":3388},{},[3389],{"type":44,"value":3390},"Programmatic conversation creation",{"type":39,"tag":93,"props":3392,"children":3393},{},[3394],{"type":44,"value":3395},"Participant addition",{"type":39,"tag":93,"props":3397,"children":3398},{},[3399],{"type":44,"value":3400},"Message sending",{"type":39,"tag":93,"props":3402,"children":3403},{},[3404],{"type":44,"value":3405},"Full conversation lifecycle management",{"type":39,"tag":47,"props":3407,"children":3409},{"id":3408},"voice-specific-features",[3410],{"type":44,"value":3411},"Voice-Specific Features",{"type":39,"tag":77,"props":3413,"children":3415},{"id":3414},"conversationrelay-protocol",[3416],{"type":44,"value":3417},"ConversationRelay Protocol",{"type":39,"tag":54,"props":3419,"children":3420},{},[3421],{"type":44,"value":3422},"TAC handles the full ConversationRelay WebSocket protocol:",{"type":39,"tag":104,"props":3424,"children":3425},{},[3426,3431,3436,3441,3446],{"type":39,"tag":93,"props":3427,"children":3428},{},[3429],{"type":44,"value":3430},"TwiML generation for inbound calls",{"type":39,"tag":93,"props":3432,"children":3433},{},[3434],{"type":44,"value":3435},"WebSocket connection management",{"type":39,"tag":93,"props":3437,"children":3438},{},[3439],{"type":44,"value":3440},"Message parsing and validation",{"type":39,"tag":93,"props":3442,"children":3443},{},[3444],{"type":44,"value":3445},"Automatic conversation initialization",{"type":39,"tag":93,"props":3447,"children":3448},{},[3449],{"type":44,"value":3450},"Status callback handling",{"type":39,"tag":77,"props":3452,"children":3454},{"id":3453},"voice-live-api-microsoft-integration",[3455],{"type":44,"value":3456},"Voice Live API (Microsoft Integration)",{"type":39,"tag":54,"props":3458,"children":3459},{},[3460],{"type":44,"value":3461},"The Voice Live connector provides:",{"type":39,"tag":104,"props":3463,"children":3464},{},[3465,3470,3475,3480,3485],{"type":39,"tag":93,"props":3466,"children":3467},{},[3468],{"type":44,"value":3469},"Text-in \u002F text-streaming-out interface",{"type":39,"tag":93,"props":3471,"children":3472},{},[3473],{"type":44,"value":3474},"STT (Speech-to-Text) handled by Twilio",{"type":39,"tag":93,"props":3476,"children":3477},{},[3478],{"type":44,"value":3479},"TTS (Text-to-Speech) handled by Twilio",{"type":39,"tag":93,"props":3481,"children":3482},{},[3483],{"type":44,"value":3484},"Server-side interrupt handling",{"type":39,"tag":93,"props":3486,"children":3487},{},[3488],{"type":44,"value":3489},"No local session management required",{"type":39,"tag":47,"props":3491,"children":3493},{"id":3492},"messaging-specific-features",[3494],{"type":44,"value":3495},"Messaging-Specific Features",{"type":39,"tag":77,"props":3497,"children":3499},{"id":3498},"sms-channel",[3500],{"type":44,"value":3501},"SMS Channel",{"type":39,"tag":104,"props":3503,"children":3504},{},[3505,3518,3523,3527],{"type":39,"tag":93,"props":3506,"children":3507},{},[3508,3510,3516],{"type":44,"value":3509},"Idempotency-based deduplication using Twilio's ",{"type":39,"tag":322,"props":3511,"children":3513},{"className":3512},[],[3514],{"type":44,"value":3515},"i-twilio-idempotency-token",{"type":44,"value":3517}," header",{"type":39,"tag":93,"props":3519,"children":3520},{},[3521],{"type":44,"value":3522},"Fire-and-forget webhook processing with immediate 200 response",{"type":39,"tag":93,"props":3524,"children":3525},{},[3526],{"type":44,"value":3445},{"type":39,"tag":93,"props":3528,"children":3529},{},[3530],{"type":44,"value":3531},"Profile retrieval per message",{"type":39,"tag":77,"props":3533,"children":3535},{"id":3534},"multi-channel-support",[3536],{"type":44,"value":3537},"Multi-Channel Support",{"type":39,"tag":54,"props":3539,"children":3540},{},[3541],{"type":44,"value":3542},"TAC provides unified handling across SMS, RCS, WhatsApp, and Chat:",{"type":39,"tag":104,"props":3544,"children":3545},{},[3546,3558,3563],{"type":39,"tag":93,"props":3547,"children":3548},{},[3549,3551,3556],{"type":44,"value":3550},"Single ",{"type":39,"tag":322,"props":3552,"children":3554},{"className":3553},[],[3555],{"type":44,"value":3359},{"type":44,"value":3557}," callback for all channels",{"type":39,"tag":93,"props":3559,"children":3560},{},[3561],{"type":44,"value":3562},"Automatic channel detection and routing",{"type":39,"tag":93,"props":3564,"children":3565},{},[3566],{"type":44,"value":3567},"Per-channel response formatting",{"type":39,"tag":47,"props":3569,"children":3571},{"id":3570},"advanced-features",[3572],{"type":44,"value":3573},"Advanced Features",{"type":39,"tag":77,"props":3575,"children":3577},{"id":3576},"conversation-intelligence-integration",[3578],{"type":44,"value":3579},"Conversation Intelligence Integration",{"type":39,"tag":54,"props":3581,"children":3582},{},[3583],{"type":44,"value":3584},"Process Conversation Intelligence operator results to create observations and summaries:",{"type":39,"tag":314,"props":3586,"children":3588},{"className":572,"code":3587,"language":574,"meta":319,"style":319},"from tac.core.config import ConversationIntelligenceConfig\n\nconfig = TACConfig.from_env()\nconfig.conversation_intelligence_config = ConversationIntelligenceConfig(\n    configuration_id=\"your_ci_configuration_id\",\n    observation_operator_sid=\"LY...\",\n    summary_operator_sid=\"LY...\",\n)\n\n@app.post(\"\u002Fci-webhook\")\nasync def ci_webhook_handler(request: Request):\n    payload = await request.json()\n    result = await tac.process_conversation_intelligence_event(payload)\n    return result.model_dump()\n",[3589],{"type":39,"tag":322,"props":3590,"children":3591},{"__ignoreMap":319},[3592,3600,3607,3615,3623,3631,3639,3647,3654,3661,3669,3677,3685,3693],{"type":39,"tag":326,"props":3593,"children":3594},{"class":328,"line":329},[3595],{"type":39,"tag":326,"props":3596,"children":3597},{},[3598],{"type":44,"value":3599},"from tac.core.config import ConversationIntelligenceConfig\n",{"type":39,"tag":326,"props":3601,"children":3602},{"class":328,"line":339},[3603],{"type":39,"tag":326,"props":3604,"children":3605},{"emptyLinePlaceholder":364},[3606],{"type":44,"value":367},{"type":39,"tag":326,"props":3608,"children":3609},{"class":328,"line":360},[3610],{"type":39,"tag":326,"props":3611,"children":3612},{},[3613],{"type":44,"value":3614},"config = TACConfig.from_env()\n",{"type":39,"tag":326,"props":3616,"children":3617},{"class":328,"line":370},[3618],{"type":39,"tag":326,"props":3619,"children":3620},{},[3621],{"type":44,"value":3622},"config.conversation_intelligence_config = ConversationIntelligenceConfig(\n",{"type":39,"tag":326,"props":3624,"children":3625},{"class":328,"line":379},[3626],{"type":39,"tag":326,"props":3627,"children":3628},{},[3629],{"type":44,"value":3630},"    configuration_id=\"your_ci_configuration_id\",\n",{"type":39,"tag":326,"props":3632,"children":3633},{"class":328,"line":406},[3634],{"type":39,"tag":326,"props":3635,"children":3636},{},[3637],{"type":44,"value":3638},"    observation_operator_sid=\"LY...\",\n",{"type":39,"tag":326,"props":3640,"children":3641},{"class":328,"line":27},[3642],{"type":39,"tag":326,"props":3643,"children":3644},{},[3645],{"type":44,"value":3646},"    summary_operator_sid=\"LY...\",\n",{"type":39,"tag":326,"props":3648,"children":3649},{"class":328,"line":422},[3650],{"type":39,"tag":326,"props":3651,"children":3652},{},[3653],{"type":44,"value":764},{"type":39,"tag":326,"props":3655,"children":3656},{"class":328,"line":440},[3657],{"type":39,"tag":326,"props":3658,"children":3659},{"emptyLinePlaceholder":364},[3660],{"type":44,"value":367},{"type":39,"tag":326,"props":3662,"children":3663},{"class":328,"line":652},[3664],{"type":39,"tag":326,"props":3665,"children":3666},{},[3667],{"type":44,"value":3668},"@app.post(\"\u002Fci-webhook\")\n",{"type":39,"tag":326,"props":3670,"children":3671},{"class":328,"line":660},[3672],{"type":39,"tag":326,"props":3673,"children":3674},{},[3675],{"type":44,"value":3676},"async def ci_webhook_handler(request: Request):\n",{"type":39,"tag":326,"props":3678,"children":3679},{"class":328,"line":669},[3680],{"type":39,"tag":326,"props":3681,"children":3682},{},[3683],{"type":44,"value":3684},"    payload = await request.json()\n",{"type":39,"tag":326,"props":3686,"children":3687},{"class":328,"line":678},[3688],{"type":39,"tag":326,"props":3689,"children":3690},{},[3691],{"type":44,"value":3692},"    result = await tac.process_conversation_intelligence_event(payload)\n",{"type":39,"tag":326,"props":3694,"children":3695},{"class":328,"line":687},[3696],{"type":39,"tag":326,"props":3697,"children":3698},{},[3699],{"type":44,"value":3700},"    return result.model_dump()\n",{"type":39,"tag":77,"props":3702,"children":3704},{"id":3703},"custom-tools",[3705],{"type":44,"value":3706},"Custom Tools",{"type":39,"tag":54,"props":3708,"children":3709},{},[3710],{"type":44,"value":3711},"TAC provides built-in tools for common operations:",{"type":39,"tag":104,"props":3713,"children":3714},{},[3715,3720,3725,3730],{"type":39,"tag":93,"props":3716,"children":3717},{},[3718],{"type":44,"value":3719},"Memory recall",{"type":39,"tag":93,"props":3721,"children":3722},{},[3723],{"type":44,"value":3724},"Knowledge base search",{"type":39,"tag":93,"props":3726,"children":3727},{},[3728],{"type":44,"value":3729},"Studio Flow handoff (human escalation)",{"type":39,"tag":93,"props":3731,"children":3732},{},[3733],{"type":44,"value":3400},{"type":39,"tag":54,"props":3735,"children":3736},{},[3737,3739,3745],{"type":44,"value":3738},"You can also create custom tools using the ",{"type":39,"tag":322,"props":3740,"children":3742},{"className":3741},[],[3743],{"type":44,"value":3744},"@function_tool",{"type":44,"value":3746}," decorator:",{"type":39,"tag":314,"props":3748,"children":3750},{"className":572,"code":3749,"language":574,"meta":319,"style":319},"from tac.tools import function_tool\n\n@function_tool()\ndef send_email(recipient: str, subject: str, body: str) -> bool:\n    \"\"\"\n    Sends an email to a recipient.\n\n    Args:\n        recipient: Email address\n        subject: Email subject\n        body: Email body\n\n    Returns:\n        True on success, False on failure\n    \"\"\"\n    # Implementation here\n    return True\n",[3751],{"type":39,"tag":322,"props":3752,"children":3753},{"__ignoreMap":319},[3754,3762,3769,3777,3785,3793,3801,3808,3816,3824,3832,3840,3847,3855,3863,3870,3878],{"type":39,"tag":326,"props":3755,"children":3756},{"class":328,"line":329},[3757],{"type":39,"tag":326,"props":3758,"children":3759},{},[3760],{"type":44,"value":3761},"from tac.tools import function_tool\n",{"type":39,"tag":326,"props":3763,"children":3764},{"class":328,"line":339},[3765],{"type":39,"tag":326,"props":3766,"children":3767},{"emptyLinePlaceholder":364},[3768],{"type":44,"value":367},{"type":39,"tag":326,"props":3770,"children":3771},{"class":328,"line":360},[3772],{"type":39,"tag":326,"props":3773,"children":3774},{},[3775],{"type":44,"value":3776},"@function_tool()\n",{"type":39,"tag":326,"props":3778,"children":3779},{"class":328,"line":370},[3780],{"type":39,"tag":326,"props":3781,"children":3782},{},[3783],{"type":44,"value":3784},"def send_email(recipient: str, subject: str, body: str) -> bool:\n",{"type":39,"tag":326,"props":3786,"children":3787},{"class":328,"line":379},[3788],{"type":39,"tag":326,"props":3789,"children":3790},{},[3791],{"type":44,"value":3792},"    \"\"\"\n",{"type":39,"tag":326,"props":3794,"children":3795},{"class":328,"line":406},[3796],{"type":39,"tag":326,"props":3797,"children":3798},{},[3799],{"type":44,"value":3800},"    Sends an email to a recipient.\n",{"type":39,"tag":326,"props":3802,"children":3803},{"class":328,"line":27},[3804],{"type":39,"tag":326,"props":3805,"children":3806},{"emptyLinePlaceholder":364},[3807],{"type":44,"value":367},{"type":39,"tag":326,"props":3809,"children":3810},{"class":328,"line":422},[3811],{"type":39,"tag":326,"props":3812,"children":3813},{},[3814],{"type":44,"value":3815},"    Args:\n",{"type":39,"tag":326,"props":3817,"children":3818},{"class":328,"line":440},[3819],{"type":39,"tag":326,"props":3820,"children":3821},{},[3822],{"type":44,"value":3823},"        recipient: Email address\n",{"type":39,"tag":326,"props":3825,"children":3826},{"class":328,"line":652},[3827],{"type":39,"tag":326,"props":3828,"children":3829},{},[3830],{"type":44,"value":3831},"        subject: Email subject\n",{"type":39,"tag":326,"props":3833,"children":3834},{"class":328,"line":660},[3835],{"type":39,"tag":326,"props":3836,"children":3837},{},[3838],{"type":44,"value":3839},"        body: Email body\n",{"type":39,"tag":326,"props":3841,"children":3842},{"class":328,"line":669},[3843],{"type":39,"tag":326,"props":3844,"children":3845},{"emptyLinePlaceholder":364},[3846],{"type":44,"value":367},{"type":39,"tag":326,"props":3848,"children":3849},{"class":328,"line":678},[3850],{"type":39,"tag":326,"props":3851,"children":3852},{},[3853],{"type":44,"value":3854},"    Returns:\n",{"type":39,"tag":326,"props":3856,"children":3857},{"class":328,"line":687},[3858],{"type":39,"tag":326,"props":3859,"children":3860},{},[3861],{"type":44,"value":3862},"        True on success, False on failure\n",{"type":39,"tag":326,"props":3864,"children":3865},{"class":328,"line":696},[3866],{"type":39,"tag":326,"props":3867,"children":3868},{},[3869],{"type":44,"value":3792},{"type":39,"tag":326,"props":3871,"children":3872},{"class":328,"line":704},[3873],{"type":39,"tag":326,"props":3874,"children":3875},{},[3876],{"type":44,"value":3877},"    # Implementation here\n",{"type":39,"tag":326,"props":3879,"children":3880},{"class":328,"line":713},[3881],{"type":39,"tag":326,"props":3882,"children":3883},{},[3884],{"type":44,"value":3885},"    return True\n",{"type":39,"tag":77,"props":3887,"children":3889},{"id":3888},"adapter-pattern",[3890],{"type":44,"value":3891},"Adapter Pattern",{"type":39,"tag":54,"props":3893,"children":3894},{},[3895],{"type":44,"value":3896},"TAC provides adapters for automatic memory injection into LLM runtimes:",{"type":39,"tag":54,"props":3898,"children":3899},{},[3900,3905],{"type":39,"tag":63,"props":3901,"children":3902},{},[3903],{"type":44,"value":3904},"Python OpenAI Adapter",{"type":44,"value":1308},{"type":39,"tag":314,"props":3907,"children":3909},{"className":572,"code":3908,"language":574,"meta":319,"style":319},"from tac.adapters.openai import with_tac_memory\n\nclient = with_tac_memory(openai_client, memory_response, context)\n# Memory and profile automatically injected into system messages\n",[3910],{"type":39,"tag":322,"props":3911,"children":3912},{"__ignoreMap":319},[3913,3920,3927,3935],{"type":39,"tag":326,"props":3914,"children":3915},{"class":328,"line":329},[3916],{"type":39,"tag":326,"props":3917,"children":3918},{},[3919],{"type":44,"value":610},{"type":39,"tag":326,"props":3921,"children":3922},{"class":328,"line":339},[3923],{"type":39,"tag":326,"props":3924,"children":3925},{"emptyLinePlaceholder":364},[3926],{"type":44,"value":367},{"type":39,"tag":326,"props":3928,"children":3929},{"class":328,"line":360},[3930],{"type":39,"tag":326,"props":3931,"children":3932},{},[3933],{"type":44,"value":3934},"client = with_tac_memory(openai_client, memory_response, context)\n",{"type":39,"tag":326,"props":3936,"children":3937},{"class":328,"line":370},[3938],{"type":39,"tag":326,"props":3939,"children":3940},{},[3941],{"type":44,"value":3942},"# Memory and profile automatically injected into system messages\n",{"type":39,"tag":54,"props":3944,"children":3945},{},[3946,3951],{"type":39,"tag":63,"props":3947,"children":3948},{},[3949],{"type":44,"value":3950},"TypeScript Memory Prompt Builder",{"type":44,"value":1308},{"type":39,"tag":314,"props":3953,"children":3955},{"className":981,"code":3954,"language":983,"meta":319,"style":319},"import { MemoryPromptBuilder } from 'twilio-agent-connect';\n\nconst memoryContext = MemoryPromptBuilder.build(memory, session);\nconst systemPrompt = SYSTEM_INSTRUCTIONS + `\\n\\n${memoryContext}`;\n",[3956],{"type":39,"tag":322,"props":3957,"children":3958},{"__ignoreMap":319},[3959,3998,4005,4051],{"type":39,"tag":326,"props":3960,"children":3961},{"class":328,"line":329},[3962,3966,3970,3974,3978,3982,3986,3990,3994],{"type":39,"tag":326,"props":3963,"children":3964},{"style":993},[3965],{"type":44,"value":996},{"type":39,"tag":326,"props":3967,"children":3968},{"style":452},[3969],{"type":44,"value":1001},{"type":39,"tag":326,"props":3971,"children":3972},{"style":1004},[3973],{"type":44,"value":1893},{"type":39,"tag":326,"props":3975,"children":3976},{"style":452},[3977],{"type":44,"value":1012},{"type":39,"tag":326,"props":3979,"children":3980},{"style":993},[3981],{"type":44,"value":1017},{"type":39,"tag":326,"props":3983,"children":3984},{"style":452},[3985],{"type":44,"value":1022},{"type":39,"tag":326,"props":3987,"children":3988},{"style":349},[3989],{"type":44,"value":4},{"type":39,"tag":326,"props":3991,"children":3992},{"style":452},[3993],{"type":44,"value":1032},{"type":39,"tag":326,"props":3995,"children":3996},{"style":452},[3997],{"type":44,"value":1037},{"type":39,"tag":326,"props":3999,"children":4000},{"class":328,"line":339},[4001],{"type":39,"tag":326,"props":4002,"children":4003},{"emptyLinePlaceholder":364},[4004],{"type":44,"value":367},{"type":39,"tag":326,"props":4006,"children":4007},{"class":328,"line":360},[4008,4012,4017,4021,4025,4029,4033,4038,4042,4047],{"type":39,"tag":326,"props":4009,"children":4010},{"style":1221},[4011],{"type":44,"value":1224},{"type":39,"tag":326,"props":4013,"children":4014},{"style":1004},[4015],{"type":44,"value":4016}," memoryContext ",{"type":39,"tag":326,"props":4018,"children":4019},{"style":452},[4020],{"type":44,"value":1234},{"type":39,"tag":326,"props":4022,"children":4023},{"style":1004},[4024],{"type":44,"value":1893},{"type":39,"tag":326,"props":4026,"children":4027},{"style":452},[4028],{"type":44,"value":1283},{"type":39,"tag":326,"props":4030,"children":4031},{"style":519},[4032],{"type":44,"value":1902},{"type":39,"tag":326,"props":4034,"children":4035},{"style":1004},[4036],{"type":44,"value":4037},"(memory",{"type":39,"tag":326,"props":4039,"children":4040},{"style":452},[4041],{"type":44,"value":1507},{"type":39,"tag":326,"props":4043,"children":4044},{"style":1004},[4045],{"type":44,"value":4046}," session)",{"type":39,"tag":326,"props":4048,"children":4049},{"style":452},[4050],{"type":44,"value":1037},{"type":39,"tag":326,"props":4052,"children":4053},{"class":328,"line":370},[4054,4058,4063,4067,4071,4076,4080,4084,4088,4092,4096],{"type":39,"tag":326,"props":4055,"children":4056},{"style":1221},[4057],{"type":44,"value":1224},{"type":39,"tag":326,"props":4059,"children":4060},{"style":1004},[4061],{"type":44,"value":4062}," systemPrompt ",{"type":39,"tag":326,"props":4064,"children":4065},{"style":452},[4066],{"type":44,"value":1234},{"type":39,"tag":326,"props":4068,"children":4069},{"style":1004},[4070],{"type":44,"value":1567},{"type":39,"tag":326,"props":4072,"children":4073},{"style":452},[4074],{"type":44,"value":4075},"+",{"type":39,"tag":326,"props":4077,"children":4078},{"style":452},[4079],{"type":44,"value":1972},{"type":39,"tag":326,"props":4081,"children":4082},{"style":1004},[4083],{"type":44,"value":1977},{"type":39,"tag":326,"props":4085,"children":4086},{"style":452},[4087],{"type":44,"value":1982},{"type":39,"tag":326,"props":4089,"children":4090},{"style":1004},[4091],{"type":44,"value":1962},{"type":39,"tag":326,"props":4093,"children":4094},{"style":452},[4095],{"type":44,"value":1991},{"type":39,"tag":326,"props":4097,"children":4098},{"style":452},[4099],{"type":44,"value":1037},{"type":39,"tag":47,"props":4101,"children":4103},{"id":4102},"documentation-links",[4104],{"type":44,"value":4105},"Documentation Links",{"type":39,"tag":104,"props":4107,"children":4108},{},[4109,4124,4139,4153,4167,4180],{"type":39,"tag":93,"props":4110,"children":4111},{},[4112,4117,4118],{"type":39,"tag":63,"props":4113,"children":4114},{},[4115],{"type":44,"value":4116},"Quickstart Guide",{"type":44,"value":2876},{"type":39,"tag":3033,"props":4119,"children":4122},{"href":4120,"rel":4121},"https:\u002F\u002Fwww.twilio.com\u002Fdocs\u002Fplatform\u002Ftac\u002Fquickstart",[3037],[4123],{"type":44,"value":4120},{"type":39,"tag":93,"props":4125,"children":4126},{},[4127,4132,4133],{"type":39,"tag":63,"props":4128,"children":4129},{},[4130],{"type":44,"value":4131},"Overview Documentation",{"type":44,"value":2876},{"type":39,"tag":3033,"props":4134,"children":4137},{"href":4135,"rel":4136},"https:\u002F\u002Fwww.twilio.com\u002Fdocs\u002Fplatform\u002Ftac\u002Foverview",[3037],[4138],{"type":44,"value":4135},{"type":39,"tag":93,"props":4140,"children":4141},{},[4142,4146,4147],{"type":39,"tag":63,"props":4143,"children":4144},{},[4145],{"type":44,"value":302},{"type":44,"value":2876},{"type":39,"tag":3033,"props":4148,"children":4151},{"href":4149,"rel":4150},"https:\u002F\u002Fgithub.com\u002Ftwilio\u002Ftwilio-agent-connect-python",[3037],[4152],{"type":44,"value":4149},{"type":39,"tag":93,"props":4154,"children":4155},{},[4156,4160,4161],{"type":39,"tag":63,"props":4157,"children":4158},{},[4159],{"type":44,"value":471},{"type":44,"value":2876},{"type":39,"tag":3033,"props":4162,"children":4165},{"href":4163,"rel":4164},"https:\u002F\u002Fgithub.com\u002Ftwilio\u002Ftwilio-agent-connect-typescript",[3037],[4166],{"type":44,"value":4163},{"type":39,"tag":93,"props":4168,"children":4169},{},[4170,4174,4175],{"type":39,"tag":63,"props":4171,"children":4172},{},[4173],{"type":44,"value":2866},{"type":44,"value":2876},{"type":39,"tag":3033,"props":4176,"children":4178},{"href":3035,"rel":4177},[3037],[4179],{"type":44,"value":3035},{"type":39,"tag":93,"props":4181,"children":4182},{},[4183,4188,4189],{"type":39,"tag":63,"props":4184,"children":4185},{},[4186],{"type":44,"value":4187},"Microsoft Integration",{"type":44,"value":2876},{"type":39,"tag":3033,"props":4190,"children":4192},{"href":3229,"rel":4191},[3037],[4193],{"type":44,"value":3229},{"type":39,"tag":47,"props":4195,"children":4197},{"id":4196},"setup-wizard",[4198],{"type":44,"value":4199},"Setup Wizard",{"type":39,"tag":54,"props":4201,"children":4202},{},[4203],{"type":44,"value":4204},"TAC includes a web-based setup wizard to automatically create required Twilio services:",{"type":39,"tag":314,"props":4206,"children":4208},{"className":316,"code":4207,"language":318,"meta":319,"style":319},"# Python SDK\ngit clone https:\u002F\u002Fgithub.com\u002Ftwilio\u002Ftwilio-agent-connect-python.git\ncd twilio-agent-connect-python\nmake setup  # Opens http:\u002F\u002Flocalhost:8080\n",[4209],{"type":39,"tag":322,"props":4210,"children":4211},{"__ignoreMap":319},[4212,4220,4236,4248],{"type":39,"tag":326,"props":4213,"children":4214},{"class":328,"line":329},[4215],{"type":39,"tag":326,"props":4216,"children":4217},{"style":333},[4218],{"type":44,"value":4219},"# Python SDK\n",{"type":39,"tag":326,"props":4221,"children":4222},{"class":328,"line":339},[4223,4227,4231],{"type":39,"tag":326,"props":4224,"children":4225},{"style":343},[4226],{"type":44,"value":503},{"type":39,"tag":326,"props":4228,"children":4229},{"style":349},[4230],{"type":44,"value":508},{"type":39,"tag":326,"props":4232,"children":4233},{"style":349},[4234],{"type":44,"value":4235}," https:\u002F\u002Fgithub.com\u002Ftwilio\u002Ftwilio-agent-connect-python.git\n",{"type":39,"tag":326,"props":4237,"children":4238},{"class":328,"line":360},[4239,4243],{"type":39,"tag":326,"props":4240,"children":4241},{"style":519},[4242],{"type":44,"value":522},{"type":39,"tag":326,"props":4244,"children":4245},{"style":349},[4246],{"type":44,"value":4247}," twilio-agent-connect-python\n",{"type":39,"tag":326,"props":4249,"children":4250},{"class":328,"line":370},[4251,4256,4261],{"type":39,"tag":326,"props":4252,"children":4253},{"style":343},[4254],{"type":44,"value":4255},"make",{"type":39,"tag":326,"props":4257,"children":4258},{"style":349},[4259],{"type":44,"value":4260}," setup",{"type":39,"tag":326,"props":4262,"children":4263},{"style":333},[4264],{"type":44,"value":4265},"  # Opens http:\u002F\u002Flocalhost:8080\n",{"type":39,"tag":54,"props":4267,"children":4268},{},[4269],{"type":44,"value":4270},"The wizard creates:",{"type":39,"tag":104,"props":4272,"children":4273},{},[4274,4279,4284],{"type":39,"tag":93,"props":4275,"children":4276},{},[4277],{"type":44,"value":4278},"Conversation Memory store",{"type":39,"tag":93,"props":4280,"children":4281},{},[4282],{"type":44,"value":4283},"Conversation Configuration",{"type":39,"tag":93,"props":4285,"children":4286},{},[4287,4289,4295],{"type":44,"value":4288},"Generates ",{"type":39,"tag":322,"props":4290,"children":4292},{"className":4291},[],[4293],{"type":44,"value":4294},".env",{"type":44,"value":4296}," file with all required credentials",{"type":39,"tag":47,"props":4298,"children":4300},{"id":4299},"common-use-cases",[4301],{"type":44,"value":4302},"Common Use Cases",{"type":39,"tag":77,"props":4304,"children":4306},{"id":4305},"customer-support-agent",[4307],{"type":44,"value":4308},"Customer Support Agent",{"type":39,"tag":54,"props":4310,"children":4311},{},[4312],{"type":44,"value":4313},"Build an AI-powered customer support agent with:",{"type":39,"tag":104,"props":4315,"children":4316},{},[4317,4322,4327,4332],{"type":39,"tag":93,"props":4318,"children":4319},{},[4320],{"type":44,"value":4321},"Multi-channel support (voice, SMS, WhatsApp)",{"type":39,"tag":93,"props":4323,"children":4324},{},[4325],{"type":44,"value":4326},"Persistent customer memory and context",{"type":39,"tag":93,"props":4328,"children":4329},{},[4330],{"type":44,"value":4331},"Knowledge base integration",{"type":39,"tag":93,"props":4333,"children":4334},{},[4335],{"type":44,"value":4336},"Human handoff capability",{"type":39,"tag":77,"props":4338,"children":4340},{"id":4339},"outbound-campaign-agent",[4341],{"type":44,"value":4342},"Outbound Campaign Agent",{"type":39,"tag":54,"props":4344,"children":4345},{},[4346],{"type":44,"value":4347},"Create an agent that initiates conversations:",{"type":39,"tag":104,"props":4349,"children":4350},{},[4351,4356,4361],{"type":39,"tag":93,"props":4352,"children":4353},{},[4354],{"type":44,"value":4355},"Schedule outbound calls or messages",{"type":39,"tag":93,"props":4357,"children":4358},{},[4359],{"type":44,"value":4360},"Personalized messaging based on customer profile",{"type":39,"tag":93,"props":4362,"children":4363},{},[4364],{"type":44,"value":4365},"Conversation tracking and analytics",{"type":39,"tag":77,"props":4367,"children":4369},{"id":4368},"voice-ivr-replacement",[4370],{"type":44,"value":4371},"Voice IVR Replacement",{"type":39,"tag":54,"props":4373,"children":4374},{},[4375],{"type":44,"value":4376},"Replace traditional IVR with conversational AI:",{"type":39,"tag":104,"props":4378,"children":4379},{},[4380,4385,4390],{"type":39,"tag":93,"props":4381,"children":4382},{},[4383],{"type":44,"value":4384},"Natural language understanding",{"type":39,"tag":93,"props":4386,"children":4387},{},[4388],{"type":44,"value":4389},"Context-aware responses",{"type":39,"tag":93,"props":4391,"children":4392},{},[4393],{"type":44,"value":4394},"Seamless handoff to human agents",{"type":39,"tag":77,"props":4396,"children":4398},{"id":4397},"multi-language-support",[4399],{"type":44,"value":4400},"Multi-Language Support",{"type":39,"tag":54,"props":4402,"children":4403},{},[4404],{"type":44,"value":4405},"Build globally accessible agents:",{"type":39,"tag":104,"props":4407,"children":4408},{},[4409,4414,4419],{"type":39,"tag":93,"props":4410,"children":4411},{},[4412],{"type":44,"value":4413},"Automatic language detection",{"type":39,"tag":93,"props":4415,"children":4416},{},[4417],{"type":44,"value":4418},"Multi-language conversation memory",{"type":39,"tag":93,"props":4420,"children":4421},{},[4422],{"type":44,"value":4423},"Localized responses",{"type":39,"tag":47,"props":4425,"children":4427},{"id":4426},"best-practices",[4428],{"type":44,"value":4429},"Best Practices",{"type":39,"tag":77,"props":4431,"children":4433},{"id":4432},"error-handling",[4434],{"type":44,"value":4435},"Error Handling",{"type":39,"tag":54,"props":4437,"children":4438},{},[4439],{"type":44,"value":4440},"TAC provides lenient error handling:",{"type":39,"tag":104,"props":4442,"children":4443},{},[4444,4449,4454],{"type":39,"tag":93,"props":4445,"children":4446},{},[4447],{"type":44,"value":4448},"Profile lookup failures fall back to Conversation Orchestrator API",{"type":39,"tag":93,"props":4450,"children":4451},{},[4452],{"type":44,"value":4453},"Memory retrieval failures continue without exceptions",{"type":39,"tag":93,"props":4455,"children":4456},{},[4457],{"type":44,"value":4458},"All errors logged with appropriate severity levels",{"type":39,"tag":77,"props":4460,"children":4462},{"id":4461},"performance-optimization",[4463],{"type":44,"value":4464},"Performance Optimization",{"type":39,"tag":104,"props":4466,"children":4467},{},[4468,4473,4478],{"type":39,"tag":93,"props":4469,"children":4470},{},[4471],{"type":44,"value":4472},"Use immediate 200 responses for webhooks to prevent retries",{"type":39,"tag":93,"props":4474,"children":4475},{},[4476],{"type":44,"value":4477},"Enable conversation deduplication for high-traffic applications",{"type":39,"tag":93,"props":4479,"children":4480},{},[4481],{"type":44,"value":4482},"Leverage conversation grouping for related interactions",{"type":39,"tag":77,"props":4484,"children":4486},{"id":4485},"security",[4487],{"type":44,"value":4488},"Security",{"type":39,"tag":104,"props":4490,"children":4491},{},[4492,4497,4502,4507],{"type":39,"tag":93,"props":4493,"children":4494},{},[4495],{"type":44,"value":4496},"Never commit API keys or tokens to version control",{"type":39,"tag":93,"props":4498,"children":4499},{},[4500],{"type":44,"value":4501},"Use environment variables for all credentials",{"type":39,"tag":93,"props":4503,"children":4504},{},[4505],{"type":44,"value":4506},"Implement webhook signature validation (Twilio SDK provides helpers)",{"type":39,"tag":93,"props":4508,"children":4509},{},[4510],{"type":44,"value":4511},"Use HTTPS for all webhook endpoints",{"type":39,"tag":77,"props":4513,"children":4515},{"id":4514},"testing",[4516],{"type":44,"value":4517},"Testing",{"type":39,"tag":104,"props":4519,"children":4520},{},[4521,4526,4531,4536],{"type":39,"tag":93,"props":4522,"children":4523},{},[4524],{"type":44,"value":4525},"Use ngrok for local webhook testing",{"type":39,"tag":93,"props":4527,"children":4528},{},[4529],{"type":44,"value":4530},"Test each channel independently before multi-channel deployment",{"type":39,"tag":93,"props":4532,"children":4533},{},[4534],{"type":44,"value":4535},"Implement logging for debugging webhook processing",{"type":39,"tag":93,"props":4537,"children":4538},{},[4539],{"type":44,"value":4540},"Use TAC's built-in logging with channel-specific logger names",{"type":39,"tag":47,"props":4542,"children":4544},{"id":4543},"troubleshooting",[4545],{"type":44,"value":4546},"Troubleshooting",{"type":39,"tag":77,"props":4548,"children":4550},{"id":4549},"common-issues",[4551],{"type":44,"value":4552},"Common Issues",{"type":39,"tag":54,"props":4554,"children":4555},{},[4556,4561],{"type":39,"tag":63,"props":4557,"children":4558},{},[4559],{"type":44,"value":4560},"Memory not retrieving",{"type":44,"value":1308},{"type":39,"tag":104,"props":4563,"children":4564},{},[4565,4577,4582],{"type":39,"tag":93,"props":4566,"children":4567},{},[4568,4570,4575],{"type":44,"value":4569},"Verify ",{"type":39,"tag":322,"props":4571,"children":4573},{"className":4572},[],[4574],{"type":44,"value":2828},{"type":44,"value":4576}," is set",{"type":39,"tag":93,"props":4578,"children":4579},{},[4580],{"type":44,"value":4581},"Check profile_id is present in webhook data",{"type":39,"tag":93,"props":4583,"children":4584},{},[4585,4587],{"type":44,"value":4586},"Enable DEBUG logging: ",{"type":39,"tag":322,"props":4588,"children":4590},{"className":4589},[],[4591],{"type":44,"value":4592},"TWILIO_TAC_LOG_LEVEL=DEBUG",{"type":39,"tag":54,"props":4594,"children":4595},{},[4596,4601],{"type":39,"tag":63,"props":4597,"children":4598},{},[4599],{"type":44,"value":4600},"Voice not connecting",{"type":44,"value":1308},{"type":39,"tag":104,"props":4603,"children":4604},{},[4605,4616,4621,4626],{"type":39,"tag":93,"props":4606,"children":4607},{},[4608,4609,4614],{"type":44,"value":4569},{"type":39,"tag":322,"props":4610,"children":4612},{"className":4611},[],[4613],{"type":44,"value":2790},{"type":44,"value":4615}," is accessible",{"type":39,"tag":93,"props":4617,"children":4618},{},[4619],{"type":44,"value":4620},"Check TwiML endpoint returns valid XML",{"type":39,"tag":93,"props":4622,"children":4623},{},[4624],{"type":44,"value":4625},"Ensure WebSocket endpoint is reachable",{"type":39,"tag":93,"props":4627,"children":4628},{},[4629],{"type":44,"value":4630},"Verify Conversation Configuration is active",{"type":39,"tag":54,"props":4632,"children":4633},{},[4634,4639],{"type":39,"tag":63,"props":4635,"children":4636},{},[4637],{"type":44,"value":4638},"Duplicate messages",{"type":44,"value":1308},{"type":39,"tag":104,"props":4641,"children":4642},{},[4643,4648,4653],{"type":39,"tag":93,"props":4644,"children":4645},{},[4646],{"type":44,"value":4647},"Ensure webhook returns 200 immediately",{"type":39,"tag":93,"props":4649,"children":4650},{},[4651],{"type":44,"value":4652},"Verify idempotency token is passed to channel",{"type":39,"tag":93,"props":4654,"children":4655},{},[4656],{"type":44,"value":4657},"Check deduplication capacity is sufficient",{"type":39,"tag":54,"props":4659,"children":4660},{},[4661,4666],{"type":39,"tag":63,"props":4662,"children":4663},{},[4664],{"type":44,"value":4665},"Channel isolation issues",{"type":44,"value":1308},{"type":39,"tag":104,"props":4668,"children":4669},{},[4670,4675,4688],{"type":39,"tag":93,"props":4671,"children":4672},{},[4673],{"type":44,"value":4674},"Verify each channel has distinct conversation sessions",{"type":39,"tag":93,"props":4676,"children":4677},{},[4678,4680,4686],{"type":44,"value":4679},"Check ",{"type":39,"tag":322,"props":4681,"children":4683},{"className":4682},[],[4684],{"type":44,"value":4685},"configuration_id",{"type":44,"value":4687}," filtering is enabled",{"type":39,"tag":93,"props":4689,"children":4690},{},[4691],{"type":44,"value":4692},"Ensure conversation status is properly tracked",{"type":39,"tag":47,"props":4694,"children":4696},{"id":4695},"version-requirements",[4697],{"type":44,"value":4698},"Version Requirements",{"type":39,"tag":104,"props":4700,"children":4701},{},[4702,4710,4718],{"type":39,"tag":93,"props":4703,"children":4704},{},[4705,4709],{"type":39,"tag":63,"props":4706,"children":4707},{},[4708],{"type":44,"value":302},{"type":44,"value":312},{"type":39,"tag":93,"props":4711,"children":4712},{},[4713,4717],{"type":39,"tag":63,"props":4714,"children":4715},{},[4716],{"type":44,"value":471},{"type":44,"value":480},{"type":39,"tag":93,"props":4719,"children":4720},{},[4721,4726],{"type":39,"tag":63,"props":4722,"children":4723},{},[4724],{"type":44,"value":4725},"Twilio SDK",{"type":44,"value":4727},": twilio>=9.8.3",{"type":39,"tag":47,"props":4729,"children":4731},{"id":4730},"license",[4732],{"type":44,"value":4733},"License",{"type":39,"tag":54,"props":4735,"children":4736},{},[4737],{"type":44,"value":4738},"MIT License - see repository LICENSE files for details.",{"type":39,"tag":4740,"props":4741,"children":4742},"style",{},[4743],{"type":44,"value":4744},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":4746,"total":2580},[4747,4758,4776,4783,4795,4810,4827],{"slug":4748,"name":4748,"fn":4749,"description":4750,"org":4751,"tags":4752,"stars":23,"repoUrl":24,"updatedAt":4757},"twilio-account-setup","configure Twilio accounts and credentials","Create and configure a Twilio account from scratch. Covers free trial signup, trial limitations, getting credentials (Account SID and Auth Token), buying a phone number, verifying recipient numbers for trial use, SDK installation, first API call, subaccount management (creation, inheritance, credential isolation, limits), and enabling specific products (AI Assistants, Conversations, Verify, ConversationRelay, WhatsApp). Use this skill before any other Twilio skill if you do not yet have a Twilio account or need to enable a product. For Organization-level governance (SSO, SCIM, multi-team), see `twilio-organizations-setup`.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4753,4754,4755],{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":219,"slug":4756,"type":15},"sms","2026-08-01T05:43:28.968968",{"slug":4759,"name":4759,"fn":4760,"description":4761,"org":4762,"tags":4763,"stars":23,"repoUrl":24,"updatedAt":4775},"twilio-agent-augmentation-architect","augment human agents with AI intelligence","Planning skill for augmenting human agents with real-time AI intelligence. Qualifies the developer's use case across coaching, compliance, QA, and routing to recommend the right Conversation Intelligence + Conversation Memory + TaskRouter architecture. Handles both \"I want to add AI coaching to my call center\" and \"configure Conversation Intelligence operators for script adherence.\"\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4764,4765,4768,4771,4774],{"name":13,"slug":14,"type":15},{"name":4766,"slug":4767,"type":15},"AI","ai",{"name":4769,"slug":4770,"type":15},"Coaching","coaching",{"name":4772,"slug":4773,"type":15},"QA","qa",{"name":9,"slug":8,"type":15},"2026-07-17T06:07:58.250609",{"slug":4,"name":4,"fn":5,"description":6,"org":4777,"tags":4778,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4779,4780,4781,4782],{"name":13,"slug":14,"type":15},{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":9,"slug":8,"type":15},{"slug":4784,"name":4784,"fn":4785,"description":4786,"org":4787,"tags":4788,"stars":23,"repoUrl":24,"updatedAt":4794},"twilio-ai-agent-architect","plan Twilio conversational AI agents","Planning skill for AI-powered conversational agents. Qualifies the developer's use case across outcome sophistication, entry point, and customer profile to recommend the right Twilio Conversations architecture and implementation skills. Handles both high-level requests (\"build me a voice AI assistant\") and specific ones (\"integrate ConversationRelay with my OpenAI backend\").\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4789,4790,4793],{"name":13,"slug":14,"type":15},{"name":4791,"slug":4792,"type":15},"Architecture","architecture",{"name":9,"slug":8,"type":15},"2026-07-17T06:07:48.883723",{"slug":4796,"name":4796,"fn":4797,"description":4798,"org":4799,"tags":4800,"stars":23,"repoUrl":24,"updatedAt":4809},"twilio-call-recordings","record and manage Twilio voice calls","Record Twilio voice calls correctly. Covers the critical distinction between Record verb (voicemail) and Dial record (call recording), dual-channel for QA, mid-call pause for PCI, Conference recording, and the ConversationRelay workaround. Use this skill whenever you need to capture call audio for compliance, QA, or analytics.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4801,4804,4807,4808],{"name":4802,"slug":4803,"type":15},"Audio","audio",{"name":4805,"slug":4806,"type":15},"Compliance","compliance",{"name":4772,"slug":4773,"type":15},{"name":9,"slug":8,"type":15},"2026-07-17T06:07:55.268412",{"slug":4811,"name":4811,"fn":4812,"description":4813,"org":4814,"tags":4815,"stars":23,"repoUrl":24,"updatedAt":4826},"twilio-cli-reference","manage Twilio resources via CLI","Twilio CLI reference for managing Twilio resources from the terminal. Covers installation, credential profiles, phone number provisioning, sending SMS and email, webhook configuration, local development with a tunneling service, debugging with watch and logs, serverless deployment, and plugin ecosystem. Use when the developer asks to \"just do it\", \"set this up\", \"run a command\", mentions \"CLI\", \"command line\", or \"terminal\", or when an AI agent can execute a task directly instead of writing application code.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4816,4819,4822,4825],{"name":4817,"slug":4818,"type":15},"CLI","cli",{"name":4820,"slug":4821,"type":15},"Local Development","local-development",{"name":4823,"slug":4824,"type":15},"Operations","operations",{"name":9,"slug":8,"type":15},"2026-07-17T06:07:54.925664",{"slug":4828,"name":4828,"fn":4829,"description":4830,"org":4831,"tags":4832,"stars":23,"repoUrl":24,"updatedAt":4841},"twilio-compliance-onboarding","manage Twilio messaging and voice compliance","Registrations required BEFORE Twilio traffic works. Covers messaging programs (A2P 10DLC, toll-free verification, WhatsApp WABA, RCS, short code, alphanumeric sender) and voice trust programs (STIR\u002FSHAKEN, Voice Integrity, Branded Calling, CNAM). Each number\u002Fsender type has its own program — registration blocks traffic until complete.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4833,4834,4837,4838,4839],{"name":4805,"slug":4806,"type":15},{"name":4835,"slug":4836,"type":15},"Messaging","messaging",{"name":219,"slug":4756,"type":15},{"name":9,"slug":8,"type":15},{"name":239,"slug":4840,"type":15},"whatsapp","2026-07-17T06:05:47.897229",{"items":4843,"total":2580},[4844,4850,4858,4865,4871,4878,4885,4893,4907,4920,4936,4954],{"slug":4748,"name":4748,"fn":4749,"description":4750,"org":4845,"tags":4846,"stars":23,"repoUrl":24,"updatedAt":4757},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4847,4848,4849],{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":219,"slug":4756,"type":15},{"slug":4759,"name":4759,"fn":4760,"description":4761,"org":4851,"tags":4852,"stars":23,"repoUrl":24,"updatedAt":4775},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4853,4854,4855,4856,4857],{"name":13,"slug":14,"type":15},{"name":4766,"slug":4767,"type":15},{"name":4769,"slug":4770,"type":15},{"name":4772,"slug":4773,"type":15},{"name":9,"slug":8,"type":15},{"slug":4,"name":4,"fn":5,"description":6,"org":4859,"tags":4860,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4861,4862,4863,4864],{"name":13,"slug":14,"type":15},{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":9,"slug":8,"type":15},{"slug":4784,"name":4784,"fn":4785,"description":4786,"org":4866,"tags":4867,"stars":23,"repoUrl":24,"updatedAt":4794},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4868,4869,4870],{"name":13,"slug":14,"type":15},{"name":4791,"slug":4792,"type":15},{"name":9,"slug":8,"type":15},{"slug":4796,"name":4796,"fn":4797,"description":4798,"org":4872,"tags":4873,"stars":23,"repoUrl":24,"updatedAt":4809},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4874,4875,4876,4877],{"name":4802,"slug":4803,"type":15},{"name":4805,"slug":4806,"type":15},{"name":4772,"slug":4773,"type":15},{"name":9,"slug":8,"type":15},{"slug":4811,"name":4811,"fn":4812,"description":4813,"org":4879,"tags":4880,"stars":23,"repoUrl":24,"updatedAt":4826},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4881,4882,4883,4884],{"name":4817,"slug":4818,"type":15},{"name":4820,"slug":4821,"type":15},{"name":4823,"slug":4824,"type":15},{"name":9,"slug":8,"type":15},{"slug":4828,"name":4828,"fn":4829,"description":4830,"org":4886,"tags":4887,"stars":23,"repoUrl":24,"updatedAt":4841},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4888,4889,4890,4891,4892],{"name":4805,"slug":4806,"type":15},{"name":4835,"slug":4836,"type":15},{"name":219,"slug":4756,"type":15},{"name":9,"slug":8,"type":15},{"name":239,"slug":4840,"type":15},{"slug":4894,"name":4894,"fn":4895,"description":4896,"org":4897,"tags":4898,"stars":23,"repoUrl":24,"updatedAt":4906},"twilio-compliance-traffic","ensure compliance for Twilio messaging traffic","Rules you must follow for Twilio messaging and voice traffic. Covers TCPA (consent tiers, quiet hours, DNC), GDPR (EU consent, right to deletion), PCI DSS (payment recording, Pay verb), HIPAA (BAA, PHI), FDCPA (debt collection limits), CAN-SPAM, WhatsApp policies, SHAKEN\u002FSTIR, and consent management patterns. Use this skill proactively when developers have working traffic to ensure they follow the rules.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4899,4900,4901,4904,4905],{"name":4805,"slug":4806,"type":15},{"name":4835,"slug":4836,"type":15},{"name":4902,"slug":4903,"type":15},"Regulatory Compliance","regulatory-compliance",{"name":4488,"slug":4485,"type":15},{"name":9,"slug":8,"type":15},"2026-07-17T06:07:55.952779",{"slug":4908,"name":4908,"fn":4909,"description":4910,"org":4911,"tags":4912,"stars":23,"repoUrl":24,"updatedAt":4919},"twilio-conference-calls","build multi-party calls with Twilio Conference","Build multi-party calls using Twilio Conference. Covers warm transfer, cold transfer, coaching (whisper), hold vs mute, participant modes, and supervisor barge. Use this skill for any contact center, support line, or scenario requiring transfers, holds, or multi-party calls.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4913,4914,4915,4918],{"name":4802,"slug":4803,"type":15},{"name":20,"slug":21,"type":15},{"name":4916,"slug":4917,"type":15},"Meetings","meetings",{"name":9,"slug":8,"type":15},"2026-07-17T06:07:55.603708",{"slug":4921,"name":4921,"fn":4922,"description":4923,"org":4924,"tags":4925,"stars":23,"repoUrl":24,"updatedAt":4935},"twilio-content-template-builder","create and send message templates with Twilio","Create, manage, and send message templates using Twilio's Content API. Covers template creation for WhatsApp, SMS, RCS, and MMS; variable usage; WhatsApp Meta approval; and sending templates via ContentSid. Use this skill when building structured messages that require pre-approval or consistent formatting across channels.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4926,4929,4930,4931,4934],{"name":4927,"slug":4928,"type":15},"Email","email",{"name":4835,"slug":4836,"type":15},{"name":219,"slug":4756,"type":15},{"name":4932,"slug":4933,"type":15},"Templates","templates",{"name":9,"slug":8,"type":15},"2026-07-17T06:04:26.637309",{"slug":4937,"name":4937,"fn":4938,"description":4939,"org":4940,"tags":4941,"stars":23,"repoUrl":24,"updatedAt":4953},"twilio-conversation-intelligence","build conversation intelligence pipelines","Twilio Conversation Intelligence development guide. Use when building real-time or post-call conversation analysis, language operator pipelines, sentiment analysis, agent assist, cross-channel analytics, or querying aggregated conversation insights (sentiment trends, escalation rates, dashboards).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4942,4943,4946,4949,4952],{"name":13,"slug":14,"type":15},{"name":4944,"slug":4945,"type":15},"Analytics","analytics",{"name":4947,"slug":4948,"type":15},"Monitoring","monitoring",{"name":4950,"slug":4951,"type":15},"NLP","nlp",{"name":9,"slug":8,"type":15},"2026-07-17T06:07:52.545387",{"slug":4955,"name":4955,"fn":4956,"description":4957,"org":4958,"tags":4959,"stars":23,"repoUrl":24,"updatedAt":4964},"twilio-conversation-memory","manage conversation memory with Twilio","Store and retrieve conversation context using Twilio Conversation Memory. Covers Memory Store provisioning, profile management, traits, observations, conversation summaries, and semantic Recall. Use this skill to give AI agents or human agents persistent memory of conversations across sessions and channels.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4960,4961,4963],{"name":13,"slug":14,"type":15},{"name":4962,"slug":1911,"type":15},"Memory",{"name":9,"slug":8,"type":15},"2026-07-17T06:04:19.526724"]