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.…