chat-sdk

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Centralize and simplify cross-platform chatbot development by providing a single TypeScript SDK that abstracts platform differences and reduces code duplication.

Core Features & Use Cases

  • Unified API for Slack, Teams, Google Chat, Discord, GitHub, and Linear adapters
  • Event handling, streaming, and interactive components (cards, actions, modals)
  • Pluggable state and infrastructure, with adapters for deployment (Redis, memory)

Quick Start

Install the chat SDK and initialize a bot with multiple platform adapters to see a basic greeting.

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 cross-platform chatbot for Slack and Discord using one SDK?

You can build a cross-platform chatbot using a unified TypeScript SDK that abstracts platform differences, providing a single API with adapters for Slack, Discord, Teams, Google Chat, GitHub, and Linear to reduce code duplication.

Can I handle interactive components like cards and modals across multiple chat platforms?

Yes, interactive components including cards, actions, and modals are supported through the unified API, allowing you to stream responses and handle events consistently across connected platforms like Slack and Teams.

Does this chatbot SDK support pluggable state and infrastructure adapters?

Yes, the SDK supports pluggable state and infrastructure with deployment adapters for environments like Redis and memory, allowing you to manage bot state flexibly across different deployment contexts.

How do I get started with the TypeScript chatbot SDK?

Install the chat SDK package and initialize a bot with multiple platform adapters to see a basic greeting, reading the bundled docs and TypeScript types to understand the API surface and integrate with adapters.

Why use a unified SDK for cross-platform chatbot development instead of separate platform libraries?

A unified SDK centralizes chatbot development by abstracting platform differences and reducing code duplication, allowing you to maintain a single TypeScript codebase for Slack, Discord, GitHub, and Linear integrations.