chat

Universal chat layer for building bots and agents.

What is chat?

Universal chat layer for building bots and agents.

Overview of chat

What it is

Chat SDK is a universal TypeScript SDK for building chat bots and agents that operate across multiple platforms including Slack, Microsoft Teams, Google Chat, Discord, Telegram, GitHub, Linear, WhatsApp, and more. It provides a unified API so that bot logic can be written once and deployed to any supported platform without modification. The project is maintained by Vercel and is available as an open-source package under the MIT license.

Key features

  • Event handlers for mentions, messages, reactions, button clicks, slash commands, and modals - AI streaming support for streaming LLM responses with native Slack streaming, Telegram private chat draft previews, and post+edit fallback - JSX-based interactive cards (Block Kit, Adaptive Cards, Google Chat Cards)
  • Actions for handling button clicks and dropdown selections - Modals for form dialogs with text inputs, dropdowns, and validation - Slash command handling for /command invocations - File uploads, direct messages, ephemeral messages, and overlapping message handling (burst, queue, debounce, drop, or process concurrent messages)

Use cases

The SDK is designed for developers building chat bots or AI agents that need to operate across multiple chat platforms. Common use cases include customer support bots that respond in Slack and Teams, notification bots that post to Discord and Telegram, and AI-powered assistants that handle slash commands and interactive cards. It is also suitable for prototyping and production deployments where a single codebase must target several messaging services.

Getting started

Install the core package and one or more platform adapters: bash npm i chat npm install @chat-adapter/slack @chat-adapter/teams @chat-adapter/gchat Scaffold a minimal Next.js bot app using the CLI: bash npx create-chat-sdk@latest my-bot For a full walkthrough, see the Getting Started guide in the repository README.

License and pricing

The project is open source under the MIT license. No pricing information is stated in the provided metadata or README.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/vercelchat.svg)](https://yunodb.com/tools/vercelchat?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/vercelchat?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/vercelchat.svg" alt="Featured on YunoDB" height="20"></a>