Chat SDK adds Messenger adapter support

Published: (May 8, 2026 at 12:00 AM EDT)
1 min read

Source: Vercel Blog

May 8, 2026

OG‑Chat‑SDK‑Messenger

Overview

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.

Example

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.

Resources

Acknowledgements

Special thanks to @mitkodkn, whose community contribution in PR #461 laid the groundwork for this adapter.

0 views
Back to Blog

Related posts

Read more »