
Framework Vercel
Chat SDK
Vercel's open-source TypeScript SDK for building one chat bot that runs on Slack, Teams, Discord, Telegram, WhatsApp and more.
What it is
Chat SDK is a unified TypeScript API for event-driven chat bots: you listen for mentions, subscribe to threads and post rich JSX cards once, and platform adapters deliver them to each chat service. Adapters cover Slack, Microsoft Teams, Google Chat, Discord, Telegram, WhatsApp, GitHub, Linear and others, with thread state kept in Redis, Postgres or memory. It supports streaming LLM responses, so it is often used to put an AI agent into team chat.
What it's useful for
Shipping one support bot that answers in both Slack and Microsoft Teams from the same code.
Key features
- One handler API for mentions, threads and messages across platforms
- Adapters for Slack, Teams, Google Chat, Discord, Telegram, WhatsApp, GitHub, Linear and more
- JSX cards with type-safe handlers
- AI streaming with native Slack streaming and a post-and-edit fallback
- State adapters for Redis, Postgres or memory
- create-chat-sdk scaffolds a Next.js bot
How to use it
Before you start
- Node.js
npm i chatnpm install @chat-adapter/slack @chat-adapter/teams @chat-adapter/gchatnpx create-chat-sdk@latest my-botCommands are copied from the official documentation. Check the docs for the latest version before running them.
Limitations to know
- TypeScript only
- Streaming behaviour differs by platform: native on Slack, draft previews in Telegram private chats, post-and-edit fallback elsewhere
Alternatives
Open-source TypeScript/React library of composable primitives for building ChatGPT-style chat interfaces.
MCP servers for this
Browserbase's hosted MCP server that lets agents drive cloud browsers with natural-language Stagehand actions.
Google Chrome team's MCP server and CLI that let coding agents control, debug and profile a live Chrome browser.
Docker Desktop's MCP Toolkit and Catalog that run MCP servers in containers and connect them to clients through one gateway.
Skills for this
Anthropic skill that guides Claude through designing, building and evaluating MCP servers in TypeScript or Python.
Related resources
Google's collection of small runnable agents built with Agent Development Kit (formerly ADK Samples), in Python, TypeScript, Go, Java and Kotlin.
Anthropic's REST API for Claude models, with official SDKs in Python, TypeScript, Go, Java, C#, PHP and Ruby.
Anthropic's collection of starter projects for building apps and agents on the Claude API.
Cloudflare starter for an AI chat agent on Workers with tools, approvals, scheduling and vision via Workers AI.