chat-sdk

Build multi-platform chat bots with the Chat SDK TypeScript library.

Updated Sep 5, 2026
One-click install
npx skills add https://github.com/dsgalkar/dnyaneshwar_portfolio --skill chat-sdk-dsgalkar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: chat-sdk
Source: https://github.com/dsgalkar/dnyaneshwar_portfolio/tree/main/.agents/plugins/vercel/skills/chat-sdk/upstream
Command: npx skills add https://github.com/dsgalkar/dnyaneshwar_portfolio --skill chat-sdk-dsgalkar

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires chat, @chat-adapter/slack, @chat-adapter/teams, @chat-adapter/gchat, @chat-adapter/discord, @chat-adapter/github, @chat-adapter/linear, @chat-adapter/telegram, @chat-adapter/whatsapp, @chat-adapter/state-redis, @chat-adapter/state-pg, @chat-adapter/state-memory.

What problem does it solve? Building bots for Slack, Teams, Discord, Telegram, and other chat platforms normally requires learning each platform's API, webhook format, and message model. This Skill provides guidance for the Chat SDK, a unified TypeScript library that lets you write bot logic once and deploy it across eight chat platforms. ## Core Features & Use Cases - Unified Event Handling: Route mentions, direct messages, subscribed thread messages, reactions, slash commands, button actions, and modal submissions through a single handler API. - Cross-Platform Adapters: Use official adapters for Slack, Teams, Google Chat, Discord, GitHub, Linear, Telegram, and WhatsApp, plus state adapters for Redis, PostgreSQL, and in-memory persistence. - Rich Interactions: Send JSX-based cards, modals, and streamed AI responses (via the AI SDK) to any supported platform. - Use Case: A developer wants a support bot that answers questions in both Slack and Discord. Using this Skill, they configure two adapters on one Chat instance, write a single onNewMention handler, and stream AI responses to both platforms. ## Quick Start Ask the AI to scaffold a Chat SDK bot with a Slack adapter that responds to mentions and streams an AI reply into the thread.

Frequently Asked Questions about chat-sdk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a Slack bot with the Chat SDK?

Create a Chat instance with createSlackAdapter from @chat-adapter/slack, register handlers like onNewMention, and wire bot.webhooks.slack to your HTTP framework route. The SDK handles request verification, threading, and message posting.

How do I stream AI responses to a chat platform?

Pass any AsyncIterable of strings to thread.post() or thread.stream(). With the AI SDK, prefer result.fullStream over result.textStream so step boundaries are preserved during streaming.

Which chat platforms does the Chat SDK support?

Official adapters cover Slack, Microsoft Teams, Google Chat, Discord, GitHub, Linear, Telegram, and WhatsApp Business Cloud. Community adapters add Matrix, iMessage, Webex, and others, with Instagram, Signal, X, and Messenger planned.

Can one bot run on multiple chat platforms at once?

Yes. Register multiple adapters in the adapters object of a single Chat instance, and the same event handlers process messages from every platform. Each adapter exposes its own webhook endpoint for routing.

How do I persist thread state and deduplicate events?

Use a state adapter such as createRedisState, createPostgresState, or createMemoryState. State adapters handle subscriptions, locks, deduplication, and thread state, with dedupeTtlMs controlling the dedupe window.

How do I build a custom Chat SDK adapter?

Read the contributing docs shipped in node_modules/chat/docs/contributing, implement request verification, webhook parsing, message operations, and ID encoding, and use BaseFormatConverter from chat with utilities from @chat-adapter/shared.