Vercel — AI · · 1 min read

Chat SDK adds Twilio adapter support

Mirrored from Vercel — AI for archival readability. Support the source by reading on the original site.

Chat SDK now supports Twilio, extending its single-codebase approach to Slack, Discord, GitHub, Teams, Telegram, and WhatsApp with the new Twilio adapter.

Teams can build SMS and MMS bots that handle direct messages, inbound media, and message history through the Messages API. The adapter also ships low-level voice helpers, so you can build an app that handles voice calls using TwiML primitives.

lib/bot.ts
import { Chat } from "chat";
import { createTwilioAdapter } from "@chat-adapter/twilio";
const bot = new Chat({
userName: "mybot",
adapters: {
twilio: createTwilioAdapter(),
},
});
bot.onNewMention(async (thread, message) => {
await thread.post(`You said: ${message.text}`);
});

Configure the adapter to respond to @-mentions in text messages

Modals, buttons, and reactions are not supported, and cards display as plain text. Outbound media must link to a URL accessible by Twilio.

Read the documentation to get started, browse the directory, or build your own adapter.

The Complete Guide to Chat SDK

Learn how Chat SDK works end-to-end: from core concepts to building your first bot to deploying it across Slack, Teams, and more.

Read the guide

Discussion (0)

Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.

Sign in →

No comments yet. Sign in and be the first to say something.

More from Vercel — AI