
Chat SDK adds Dial support
Quick Answer
The Chat SDK from Vercel AI now integrates Dial support via a new adapter, enabling bots to handle SMS, MMS, and iMessage with bidirectional media and voice-call transcripts.
Quick Take
The Chat SDK from Vercel AI now integrates Dial support via a new adapter, enabling bots to handle SMS, MMS, and iMessage with bidirectional media and voice-call transcripts. This allows developers to create interactive bots that utilize standard Chat SDK APIs for seamless communication.
Key Points
- Bots can now send and receive SMS, MMS, and iMessage using a real phone number.
- Voice call transcripts are integrated into Chat SDK threads for easy access.
- Developers can configure the Dial adapter to respond to @-mentions.
- The integration supports HMAC-verified webhooks for secure communication.
- Chat SDK's core functionalities remain consistent across all adapters.
📖 Reader Mode
~1 min readChat SDK now supports Dial with the new vendor-official adapter.
Build bots that send and receive SMS, MMS, and iMessage on a real phone number, with bidirectional media and inbound voice-call transcripts. Replies use the standard Chat SDK thread and message APIs, with HMAC-verified webhooks and stable per-conversation threading.
lib/bot.ts
import { Chat } from "chat";
import { createMemoryState } from "@chat-adapter/state-memory";
import { createDialAdapter } from "@getdial/chat-sdk-adapter";
export const bot = new Chat({
userName: "Dial Bot",
adapters: {
dial: createDialAdapter({
apiKey: process.env.DIAL_API_KEY,
fromNumberId: process.env.DIAL_FROM_NUMBER_ID,
webhookSecret: process.env.DIAL_WEBHOOK_SECRET,
}),
},
state: createMemoryState(),
});
bot.onNewMention(async (thread, message) => {
await thread.post(`heard you: ${message.text}`);
});
Configure the Dial adapter to respond to @-mentions
Each phone conversation becomes a Chat SDK thread. Texts and media arrive as messages on that thread, and when a voice call ends, its transcript appears there too. Subscriptions, handlers, posts, and per-thread state work the same as with any other Chat SDK adapter.
Read the Dial documentation to get started.
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 platforms.
Read the guide
— Originally published at vercel.com
Want this in your inbox every morning?
Daily brief at your local 8am — bilingual EN/中文, free.
More from Vercel AI
See more →
The Agent Stack
The Agent Stack by Vercel AI provides essential building blocks for creating production-grade agents, enabling seamless integration across multiple AI models and secure operations. It features components like AI Gateway for model routing, Workflow SDK for durable execution, and Vercel Connect for scoped access, streamlining agent development and deployment across various platforms.

