Menu

1 / 2

Chat SDK adds Twilio adapter support - Vercel

Vercel News·Josh Singh·5 days ago
#TLVOKVoH
#vercel#chat#twilio#adapter#build
Reading 0:00
15s threshold

Chat SDK now supports Twilio, extending its single-codebase approach to Slack, Discord, GitHub, Teams, Telegram, and WhatsApp with the new Twilio adapter .

Teams can build SMS and MMS bots that handle direct messages, inbound media, and message history. The adapter also ships low-level voice helpers, so you can build an app that handles voice calls using TwiML primitives.

import { Chat } from "chat" ;

import { createTwilioAdapter } from "@chat-adapter/twilio" ;

const bot = new Chat ( {

userName : "mybot" ,

adapters : {

twilio : createTwilioAdapter ( ) ,

} ,

} ) ;

bot . onNewMention ( async ( thread , message ) => {

await thread . post ( ` You said: ${ message . text } ` ) ;

} ) ;

Configure the adapter to respond to @-mentions in text messages

Modals, buttons, and reactions are not supported, and cards display as plain text.…

Continue reading — create a free account

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