Feature: integrate Vercel Chat SDK for persistent bot mode & streaming AI replies #124
AmethystLiang
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Context
Vercel just released the Chat SDK (beta, Feb 2026) — a unified TypeScript library for building bots across Slack, Discord, MS Teams, and more. It provides event-driven handlers, AI SDK streaming, universal JSX-based UI (renders to each platform native blocks), and pluggable state management.
agent-slack is currently command-driven (one-shot CLI calls). Chat SDK is event-driven (persistent listeners). These are complementary — combining them would unlock new capabilities without duplicating effort.
Proposed integration surface
1. New
bot listencommand (highest value)Add a persistent bot mode that uses Chat SDK Slack adapter under the hood:
How it works internally:
Why this matters: Today agent-slack users can only do one-shot CLI calls triggered by an external agent. This would let them spin up a persistent, event-driven bot that lives inside a channel — no separate project needed.
2. Streaming AI replies via
message sendCurrently
message sendposts a complete message. With Chat SDK streaming, we could progressively update a message as the AI generates tokens:Implementation sketch:
This gives the same "typing" experience users see in ChatGPT/Claude, but inside Slack.
3. Rich Block Kit via Chat SDK JSX renderer
Chat SDK provides a JSX abstraction that renders to each platform native UI. agent-slack could use this to let agents send rich cards without hand-crafting Block Kit JSON:
Internally, agent-slack would use Chat SDK JSX renderer to convert this to Slack Block Kit.
4. Chat SDK adapter powered by agent-slack auth
agent-slack zero-config auth (extracting tokens from Slack Desktop/Chrome) is its biggest differentiator. This could be packaged as a Chat SDK adapter for local development:
This would make Chat SDK usable for local prototyping without going through Slack OAuth app registration flow.
Implementation plan
@vercel/chat-sdkas an optional peer dependency (keep the CLI lightweight for users who don't need bot mode)agent-slack bot listen— wire agent-slack auth into Chat SDK Slack adapter--streamflag tomessage send— use Chat SDK streaming post capabilityagent-slack/adapter) for Chat SDK users who want zero-config authOpen questions
bot listenrequire a standard bot token (xoxb-) or work with the browser-extracted tokens that agent-slack uses today?Would love to hear thoughts on which of these would be most useful to prioritize.
All reactions