Menu

Chat SDK adds Dial support - Vercel
📰

Chat SDK adds Dial support - Vercel

Vercel News·Ben Sabic·6 days ago
#xTvrZ1Se
#vercel#chat#thread#dial#adapter
Reading 0:00
15s threshold

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

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

Continue reading — create a free account

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