# Chat SDK

CreateWithAI Hub page: https://createwithaihub.com/frameworks/vercel-chat-sdk
Latest version of this file: https://createwithaihub.com/frameworks/vercel-chat-sdk.md

- Type: Framework · Category: Harnesses & Frameworks
- Publisher: Vercel
- Pricing: Free · License: MIT

Vercel's open-source TypeScript SDK for building one chat bot that runs on Slack, Teams, Discord, Telegram, WhatsApp and more.

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.

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

## Connection

- Language: TypeScript / JS
- Focus: Agents & tool use

## Before you start

- Node.js

## Install steps from the official documentation

npm:

```
npm i chat
```

Adapters:

```
npm install @chat-adapter/slack @chat-adapter/teams @chat-adapter/gchat
```

Scaffold a bot:

```
npx create-chat-sdk@latest my-bot
```

## Limitations

- TypeScript only
- Streaming behaviour differs by platform: native on Slack, draft previews in Telegram private chats, post-and-edit fallback elsewhere

## Official links

- Website: https://chat-sdk.dev
- Source repository: https://github.com/vercel/chat
- Documentation: https://chat-sdk.dev
- Source: https://chat-sdk.dev/ (Name Chat SDK, unified TypeScript API powered by Vercel, platform list, npm install chat, create-chat-sdk, state in Redis, Postgres or memory)
- Source: https://github.com/vercel/chat (README 'Chat SDK'; MIT license; adapter install command; AI streaming; scaffold command)
