What problem does it solve?
It solves the problem of building and maintaining separate chat-bot integrations for every messaging platform by providing a unified way to handle chat events, threads, messages, and interactions across providers.
Core Features & Use Cases
- Unified Chat Bot API: Use the Chat class to coordinate adapters, routing, locks, state, and message/thread lifecycle.
- Cross-Platform Adapters: Implement once and deploy across Slack, Teams, Google Chat, Discord, Telegram, GitHub, Linear, WhatsApp, and more via @chat-adapter/*.
- Conversation Primitives: Manage threads and channels with normalized Message objects, support cards/modals, and handle streaming updates.
- State + Reliability: Add state adapters for persistence (subscriptions, dedupe, locking) and configure dedupeTtlMs to reduce repeated work.
Quick Start
Ask the assistant to “Use chat-sdk to create a Slack and Telegram bot that listens for new mentions or messages, subscribes the thread, and streams an AI response back to the user.”