Menu

1 / 2

Bring your agent to Notion with Chat SDK - Vercel

Vercel News·Ben Sabic·8 days ago
#8tk7WNG1
#vercel#notion#chat#adapter#thread
Reading 0:00
15s threshold

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.

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.…

Continue reading — create a free account

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