1 min read
Chat SDK now supports AgentPhone with the new vendor-official adapter.
Give your bot its own phone number so it can handle voice calls and text messages using the same handlers you already write. When a call ends, the transcript is delivered as a message, allowing your bot to respond via SMS or iMessage.
import { Chat } from "chat";import { createAgentPhoneAdapter } from "@agentphone/chat-sdk-adapter";
const bot = new Chat({ userName: "mybot", adapters: { agentphone: createAgentPhoneAdapter(), },});
bot.onNewMention(async (thread, message) => { await thread.post(`You said: ${message.text}`);});Configure the adapter to respond to @-mentions in AgentPhone conversations
Calls and messages to the same number arrive via a single webhook, so you handle both from a single endpoint rather than a separate pipeline for each channel. They also land in one thread, so your bot maintains context throughout the conversation.
Read the AgentPhone 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 Slack, Teams, and more.
Read the guide