Vercel — AI · · 1 min read

Bring your agent to Notion with Chat SDK

Mirrored from Vercel — AI for archival readability. Support the source by reading on the original site.

Your team already works in Notion. Now your agent can too.

With the new Notion adapter for Chat SDK, the same agent you run on Slack, Discord, GitHub, Teams, or WhatsApp can join comment discussions on your Notion pages, no separate codebase required.

lib/bot.ts
import { Chat } from "chat";
import { createNotionAdapter } from "@chat-adapter/notion";
import { createRedisState } from "@chat-adapter/state-redis";
const bot = new Chat({
userName: "my-bot",
adapters: {
notion: createNotionAdapter(),
},
state: createRedisState(),
});
bot.onNewMention(async (thread, message) => {
await thread.post("Hello from Notion!");
});

Respond to a comment on Notion with your agent

Each Notion page maps to a channel and each comment thread to a thread, so replies stay threaded automatically.

The adapter supports mentions, message editing, conversation history, and up to three file attachments. By default, your bot replies when @-mentioned and where mentions aren't available in a workspace, it can trigger on a keyword or on all comments instead.

Notion doesn't support buttons, modals, or reactions, and cards render as markdown. Discussions can start at the page or block level, but not on inline text ranges. History fetches return only open comments.

Read the documentation to get started, browse the directory, or build your own.

Discussion (0)

Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.

Sign in →

No comments yet. Sign in and be the first to say something.

More from Vercel — AI