chat-sdk

Unify message, mention, reaction, command, and card handling across chat platforms.

1|Updated May 9, 2026
One-click install
npx skills add https://github.com/duwenji/generative-ai-oss-tutorials --skill chat-sdk-duwenji
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: chat-sdk
Source: https://github.com/duwenji/generative-ai-oss-tutorials/tree/main/sandbox/lobe-chat/.agents/skills/chat-sdk
Command: npx skills add https://github.com/duwenji/generative-ai-oss-tutorials --skill chat-sdk-duwenji

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It eliminates the repeated work of building separate Slack, Teams, Discord, and other bot implementations by giving you one unified SDK and adapter system.

Core Features & Use Cases

  • Multi-platform bot building: Deploy the same bot logic to Slack, Teams, Google Chat, Discord, GitHub, and Linear using adapters.
  • Unified event handling: Handle mentions, messages, reactions, slash commands, actions (buttons/dropdowns), and interactive cards/modals with consistent APIs.
  • AI-ready streaming responses: Stream generated AI text back into chat threads and post interactive JSX cards when needed.
  • Example Use Case: Create a support bot that watches for @mentions and slash commands, then streams an AI response and presents an approval/rejection card.

Quick Start

Use the chat-sdk to implement a Slack bot that listens for new mentions and replies by streaming an AI-generated response into the same 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 single chatbot that works across Slack, Discord, and Microsoft Teams?

To build a multi-platform chatbot, use a TypeScript chat SDK with platform adapters to unify message, mention, and reaction handling across Slack, Teams, Discord, and others, deploying one codebase with webhook-driven event ingestion.

Can I stream AI-generated text responses directly into a Slack or Discord thread?

Yes, you can stream AI-generated text responses directly into chat threads. The chat SDK supports AI-ready streaming outputs and posting interactive cards within thread-scoped replies across connected platforms.

What do I need to set up to deploy a multi-platform chatbot using a unified SDK?

You need to configure the chat SDK with platform adapters, webhook handlers for event ingestion, and optional pluggable state persistence to deploy a unified TypeScript bot across multiple chat platforms.

Does a unified chat SDK support interactive cards and slash commands across different platforms?

Yes, a unified chat SDK supports interactive cards, slash commands, buttons, and dropdowns. It provides consistent APIs to handle these actions and modal interactions across Slack, Teams, Google Chat, Discord, GitHub, and Linear.

How do I handle platform-specific events like mentions and reactions without writing separate bot logic?

Handle platform-specific events like mentions and reactions through unified event handling. The chat SDK applies adapter patterns to normalize events, allowing one TypeScript codebase to process interactions across all configured platforms.

What is the best way to manage developer workflow bots on GitHub and Linear without multiple codebases?

The best way to manage developer workflow bots is using a unified chat SDK with adapters for GitHub and Linear, enabling one TypeScript codebase to handle mentions, commands, and thread-scoped replies across all platforms.