1 min read

Chat SDK now supports Messenger as a chat adapter.
Build agents that support messages, reactions, multimedia downloads, postback buttons, and direct conversations, with display names fetched automatically from user profiles.
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}`);});Echo each new mention back to the sender
Read the Chat SDK documentation to get started, browse the supported adapters, or learn how to build your own.
Special thanks to @mitkodkn, whose community contribution in PR #461 laid the groundwork for this adapter.