AgentPhone Is Now an Official Chat SDK Adapter
Chat SDK by Vercel powers chat interfaces across Slack, Teams, Discord, and more. Now it supports SMS, MMS, iMessage, and voice call transcripts through AgentPhone.

Chat SDK by Vercel is the open-source toolkit for building chat interfaces. It powers conversational UIs across Slack, Teams, Discord, WhatsApp, Telegram, and more. As of today, AgentPhone is an official vendor adapter, bringing SMS, MMS, iMessage, and voice to the Chat SDK ecosystem.
The @agentphone/chat-sdk-adapter package is live on npm and documented on the Chat SDK site.
Four Channels, One Adapter
Most Chat SDK adapters cover a single platform. The AgentPhone adapter covers four:
| Channel | Send | Receive | Media | Reactions |
|---|---|---|---|---|
| SMS | Yes | Yes | -- | -- |
| MMS | Yes | Yes | Yes | -- |
| iMessage | Yes | Yes | Yes | Yes |
| Voice | -- | Transcripts | -- | -- |
Inbound SMS, MMS, and iMessage all arrive as standard Chat SDK message events. Voice calls land as messages containing the full transcript and summary when the call ends. Your bot logic handles everything through the same interface.
Get Started in 30 Seconds
Install the adapter
npm install @agentphone/chat-sdk-adapter chat
Wire it up
import { Chat } from "chat";import { createMemoryState } from "@chat-adapter/state-memory";import { createAgentPhoneAdapter } from "@agentphone/chat-sdk-adapter";const agentphone = createAgentPhoneAdapter({// apiKey: "...", // or set AGENTPHONE_API_KEY// agentId: "agent_...", // or set AGENTPHONE_AGENT_ID// webhookSecret: "whsec_...",});const chat = new Chat({userName: "my-bot",adapters: { agentphone },state: createMemoryState(),});chat.onNewMention(async (thread, message) => {await thread.subscribe();await thread.post(`Got your message: ${message.text}`);});chat.onSubscribedMessage(async (thread, message) => {await thread.post(`Reply: ${message.text}`);});
Point your AgentPhone webhook to your server and you're live. The adapter verifies HMAC-SHA256 signatures with replay protection out of the box.
iMessage Reactions
AgentPhone is the only Chat SDK adapter with iMessage tapback support. Your bot can send and receive reactions like love, like, laugh, emphasize, and question. Custom emoji reactions work on newer devices.
// Send a tapback reactionawait chat.adapters.agentphone.addReaction(threadId, messageId, "love");// Supported: love, like, dislike, laugh, emphasize, question
Inbound reactions from users fire the standard onReaction handler. No special handling required.
Voice Call Transcripts
When a voice call ends, AgentPhone delivers the transcript as a Chat SDK message. Your bot receives the full conversation text, a summary, and call metadata.
chat.onNewMention(async (thread, message) => {if (message.raw.callId) {console.log("Summary:", message.raw.summary);console.log("Transcript:", message.raw.transcript);console.log("Duration:", message.raw.durationSeconds, "s");}});
This means you can build bots that respond to phone calls and text messages through the same handler pipeline. A customer calls in, the transcript arrives, and your bot follows up via SMS automatically.
Why Chat SDK
Chat SDK gives you a clean abstraction over platform differences. You write your bot logic once and it works across every adapter. Adding AgentPhone means your existing Chat SDK bot can now reach users over SMS and phone calls without rewriting anything. If you already have a Slack or Discord bot on Chat SDK, adding a phone channel is one import and a few lines of config.
The adapter joins an ecosystem of vendor-official integrations alongside Liveblocks, Resend, and Matrix.
Part of a Growing Ecosystem
This Chat SDK adapter joins our Google ADK integration, LangChain package, and MCP server that works with Claude Code, Cursor, and any MCP-compatible client. Whether you're building a conversational UI, an autonomous agent, or an AI workflow, AgentPhone gives it a phone.


