Chat SDK skill

The Vercel chat-sdk skill: the agent writes Slack, Teams, Discord and Telegram bots from one codebase and picks the adapters.

  • 2,451 ★ on the repository
  • Last commit
  • MIT
Skill

Extended access

Why this level

  • The skill leads to building a bot that posts messages and reads chats through app tokens, and to installing packages into the project.
All reasons and checks

vercel/chat

Install

In your terminal, with SkillFoxx CLI

npx skillfoxx add skills/chat-sdk

Detects the agents on your machine, shows the access level and pins the version.

Other ways to install

Access and checks

How we review

Extended accessThe tool runs code or makes network calls and only reads external data.

  • The skill leads to building a bot that posts messages and reads chats through app tokens, and to installing packages into the project.

This is third-party code. Review the repository files before installing.

What it does

Chat SDK is the TypeScript `chat` package where bot logic is written once and adapters handle the connection to platforms: Slack, Microsoft Teams, Google Chat, Discord, Telegram, GitHub, Linear and WhatsApp. The `chat-sdk` skill introduces the agent to the package so it knows the API, adapter patterns and project conventions before writing code. The agent scaffolds a bot with `create-chat-sdk`, handles mentions, direct messages, reactions, slash commands, cards, modals and files, streams model responses and writes a custom adapter. The skill takes reference material from the documentation and guides inside `node_modules/chat`, and suggests `npm i chat` when the package is missing.

Who it is for. Developers of workplace and community bots who need one codebase for several messengers with streamed model replies.

Good fit when

  • A Slack bot must answer mentions and hold a thread conversation, with a Teams version coming later.
  • Language model replies need to appear in chat as a stream rather than one message.
  • Approvals run through interactive cards with buttons and modals in Slack.
  • A custom adapter is needed for a platform missing from the adapter catalog.

Not a fit when

  • The bot lives on one platform and its official SDK is enough without a shared layer.
  • The project is not in TypeScript, while the `chat` package and skill target that language.
  • A ready-made chatbot product is needed, not a library for a developer.

Example request

Build a Slack bot on Chat SDK that answers mentions in a thread and posts a card with a confirmation button.

Limitations

The skill helps write code on the `chat` package and relies on documentation under `node_modules/chat`, so before the package is installed the agent only suggests `npm i chat`. Each platform gets its own adapter, for example `@chat-adapter/slack`, and the developer creates the app tokens and keys. Bot state is stored by a state adapter, which is Redis in the README examples. The skill file sits in `apps/docs/public/.well-known/agent-skills/chat-sdk`. Platforms such as Slack or Discord require app configuration on their side.

How to disable. Delete the `chat-sdk` skill folder from the agent skills directory. Installed `chat` and adapter packages and the bot app created in Slack or Discord are removed separately.

FAQ

How do I install the Chat SDK skill in Claude Code?

Run `npx skills add vercel/chat`. The README gives this command for Codex, Claude Code and Cursor.

How do I create a bot project?

Run `npx create-chat-sdk@latest my-bot`. The tool creates a minimal Next.js app with the `Chat` configuration, a webhook route, an `.env.example` file and dependencies.

Which platforms does Chat SDK support?

Slack, Microsoft Teams, Google Chat, Discord, Telegram, GitHub, Linear, WhatsApp and more. Each platform gets its own adapter, for example `npm install @chat-adapter/slack`.

What does the @chat-adapter/catalog package do?

It lists adapters with their npm package, maintainer and supported capabilities without pulling in adapter code. The chat-sdk.dev site and the `create-chat-sdk` tool read from it.

Is there a Vercel plugin that includes this skill?

Yes, the Vercel plugin includes the Chat SDK skill together with specialist agents, slash commands and more. It installs with `npx plugins add vercel/vercel-plugin`.

Discussion

No questions or reviews yet.

Skills

Connects Claude Code, Cursor, Codex or OpenCode to Telegram, Slack and Discord: teammates message a bot, an agent replies

CLIBroad access322Repository stars
Official

Plugin with the zapier-sdk skill: an agent writes code for 9,000+ Zapier apps and takes action keys from the live catalog

SkillBroad access269Repository stars

WeChat Automation API

wechat-automation-api

A skill for agents on Windows that sends text, images and files through an already running desktop WeChat, with an HTTP API and a queue as well

SkillBroad access193Repository stars

Cross-platform agent skills: read-only PostgreSQL, MySQL and MSSQL queries, Google Workspace, Jira, Telegram, text-to-speech and research

SkillBroad access450Repository stars

A skill helps connect an agent to email and messaging through Caspian, with shared handling of incoming messages

SkillBroad access970Repository stars

A skill set that teaches an agent to work with Gmail, Slack, HubSpot, Salesforce and other apps through the Membrane CLI

SkillBroad access271Repository stars

Comparison with similar tools

Cards that share the main search query, and how they differ.

ToolOfficialAuthenticationRepository starsMain difference
Chat SDK (this card)no2,451
Vercel Pluginno326the broad Vercel plugin where the Chat SDK skill is one of many; here a dedicated bot skill
Slack MCP Servernokey is optional1,886an MCP server through which the agent works in Slack; Chat SDK teaches writing the bot itself across several platforms

README in short

The README shows installing the package and adapters, a Slack bot example with Redis and a feature list: event handlers, streamed replies, JSX cards, modals, ephemeral messages and handling of overlapping messages. The agent section gives the skill command and links to `llms.txt`.

README badge

Original SKILL.md

---
name: chat-sdk
description: Build multi-platform chat bots with Chat SDK (`chat` npm package). Use when developers want to scaffold a bot with create-chat-sdk, build a Slack, Teams, Google Chat, Discord, Telegram, GitHub, Linear, or WhatsApp bot, handle mentions, direct messages, subscribed threads, reactions, slash commands, cards, modals, files, or AI streaming, set up webhook routes or multi-adapter bots, send rich cards or streamed AI responses to chat platforms, or build a custom adapter or state adapter.
license: MIT
---

# Chat SDK

Unified TypeScript SDK for building chat bots across Slack, Microsoft Teams, Google Chat, Discord, Telegram, GitHub, Linear, WhatsApp, and more. Write your bot logic once, deploy everywhere.

## Scaffold a new project

Use `create-chat-sdk` to scaffold a basic Next.js bot project without prompts. Run `npx create-chat-sdk --help` to see the available options and how the CLI works.

## Start with Chat SDK documentation

When Chat SDK is installed in a user's project, inspect the published docs that ship in `node_modules/chat/docs/`, the resources in `node_modules/chat/resources/`, and the available open source templates in `node_modules/chat/resources/templates.json`.

If those paths do not exist, the `chat` package is not installed in the project yet. The user can install it with `npm i chat`.

You can also find the docs on the [Chat SDK website](https://chat-sdk.dev/docs) and in the [Vercel knowledge base](https://vercel.com/kb/chat-sdk).

## Available resources

<!-- RESOURCES:START -->

### Guides

- `node_modules/chat/resources/guides/how-to-build-an-ai-agent-for-slack-with-chat-sdk-and-ai-sdk.md` — Build a Slack AI agent using Chat SDK, AI SDK's ToolLoopAgent, and Vercel AI Gateway. Covers project setup, tool definitions, streaming responses, deployment to Vercel, and scaling tool selection with toolpick.
- `node_modules/chat/resources/guides/human-in-the-loop-with-chat-sdk-and-workflow-sdk.md` — Pause durable workflows on Slack approval cards using Chat SDK and Workflow SDK. Uses createWebhook to suspend workflows until a button click, with patterns for multi-stage approvals, timeouts via durable sleep, and approver validation.

Report a problem

Foxx AIChat SDK
Foxx AI

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.