Twilio
Connect Twilio voice and SMS to Chanl for tools, knowledge, monitoring, and scoring
Twilio Integration
Twilio provides the phone numbers and telephony. Chanl provides the agent backend — knowledge search, memory, tools, and quality scoring. Connect via MCP or webhooks and every Twilio conversation gets Chanl's full capability stack.
What You Get
Knowledge Base
Agents search your docs during calls and SMS — grounded, accurate answers
Persistent Memory
Customer context persists across voice and SMS channels
Multi-Channel
Same backend for voice calls and SMS — one set of tools, every channel
Setup
https://{workspace-slug}.chanl.dev/{toolset-slug}In your Twilio voice/SMS handler, connect to Chanl via the MCP SDK:
import { Client } from '@modelcontextprotocol/sdk/client';
import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
const transport = new StreamableHTTPClientTransport(
new URL('https://acme.chanl.dev/support'),
{
requestInit: {
headers: { 'X-API-Key': process.env.CHANL_API_KEY! },
},
},
);
const chanl = new Client({ name: 'twilio-handler', version: '1.0.0' });
await chanl.connect(transport);
// During a call: search knowledge base
const result = await chanl.callTool({
name: 'kb_search',
arguments: { query: callerQuestion, limit: 3 },
});In the Chanl dashboard, go to Settings → Phone Numbers and assign a Twilio number to route to a specific agent. Chanl handles inbound routing automatically.
Multi-Channel
Twilio handles both voice and SMS. Chanl treats them the same — your agent's tools, knowledge, and memory work identically across channels. A customer can start on SMS, switch to a phone call, and the agent remembers the entire conversation.
Every interaction — voice or SMS — is transcribed, scored, and tracked in Observe → Analytics.