Menu

Chat SDK adds AgentPhone support - Vercel
📰

Chat SDK adds AgentPhone support - Vercel

Vercel News·Ben Sabic·5 days ago
#ENa3tsQ0
#vercel#chat#agentphone#adapter#message
Reading 0:00
15s threshold

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

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.