Menu

Post image 1
Post image 2
1 / 2
0

Chat SDK adds Messenger adapter support - Vercel

Vercel News·Ben Sabic·4 days ago
#pNqlzC9U
#vercel#chat#adapter#messenger#message#teams
Reading 0:00
15s threshold

Chat SDK now supports Messenger, extending its single-codebase approach to Slack, Discord, GitHub, Teams, and Telegram with the new Messenger adapter . Teams can build bots that support messages, reactions, attachments, postback buttons, and direct conversations, with display names fetched automatically from user profiles. Try the Messenger adapter today: import { Chat } from "chat" ; import { createMessengerAdapter } from "@chat-adapter/messenger" ; const bot = new Chat ( { userName : "mybot" , adapters : { messenger : createMessengerAdapter ( ) , } , } ) ; bot . onDirectMessage ( async ( thread , message ) => { await thread . post ( ` You said: ${ message . text } ` ) ; } ) ; The adapter does not support message history, editing, or deletion. Certain components, like tables and fields, render as text fallbacks. Streaming is handled by accumulating and then sending the final message. Read the documentation to get started, browse the directory , or build your own adapter .…

Continue reading — create a free account

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

Read More