chat-sdk

Build cross-platform chat bots with a single TypeScript SDK.

Updated May 11, 2026
One-click install
npx skills add https://github.com/zmh13928433602-sys/lobe-chat --skill chat-sdk-zmh13928433602-sys
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: chat-sdk
Source: https://github.com/zmh13928433602-sys/lobe-chat/tree/main/.agents/skills/chat-sdk
Command: npx skills add https://github.com/zmh13928433602-sys/lobe-chat --skill chat-sdk-zmh13928433602-sys

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unified approach to building chat bots across multiple platforms using a single, strongly-typed TypeScript SDK, reducing integration effort and boilerplate.

Core Features & Use Cases

  • Unified SDK: Build chat bots that work with Slack, Teams, Google Chat, Discord, GitHub, and Linear from one codebase.
  • Event-driven architecture: Support for onNewMention, onSubscribedMessage, onSlashCommand, onReaction, and more.
  • Rich UI capabilities: Cards, modals, interactive elements, and streaming responses.
  • Adapters & State: Pluggable adapters per platform and pluggable state storage (Redis, in-memory) for dev/prod.
  • Use Case: Create a bot that responds to mentions and maintains per-thread state across platforms.

Quick Start

Set up a cross-platform chat bot with the Chat SDK and connect a Slack adapter with Redis-backed state.

Frequently Asked Questions about chat-sdk

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

FAQPage Schema
Does the chat SDK support streaming responses and interactive cards?

Maintain per-thread state across platforms using pluggable state storage integrations. The SDK supports Redis-backed state for production environments and in-memory storage for development.

What event types can I handle when building a chat bot with this SDK?

The chat SDK supports streaming responses alongside rich UI capabilities including interactive cards, modals, and interactive elements. These features work across connected platforms using the unified event-driven architecture.

How do I manage per-thread state in a multiplatform chat bot?

Handle chat events using onNewMention, onSubscribedMessage, onSlashCommand, and onReaction. The event-driven architecture lets developers respond to various platform interactions within a single TypeScript codebase.

Do I need TypeScript to use this multiplatform chat SDK?

Manage per-thread state by plugging state storage adapters into the chat SDK. Use Redis-backed state storage for production deployments and in-memory storage for local development.

What's the best way to unify chat bot development across multiple platforms?

TypeScript is required as the SDK is strongly typed and ships with TypeScript types. Developers install the chat package, platform adapters, and state integrations with documentation available in node_modules/chat/docs.

What's the best way to unify chat bot development across multiple platforms?

Unify chat bot development by using a single SDK with pluggable adapters per platform. This approach reduces integration effort and boilerplate compared to writing separate bot logic for Slack, Teams, Discord, and Google Chat.