• 1 min read Building chatbots across multiple platforms traditionally requires maintaining separate codebases and handling individual platform APIs. • Today, we’re open sourcing the new Chat SDK in public beta. • It’s a unified TypeScript library that lets teams write bot logic once and deploy it to Slack, Microsoft Teams, Google Chat, Discord, GitHub, and Linear. • The event-driven architecture includes type-safe handlers for mentions, messages, reactions, button clicks, and slash commands. • Teams can build user interfaces using JSX cards and modals that render natively on each platform. • The SDK handles distributed state management using pluggable adapters for Redis, ioredis, and in-memory storage.

Article Summaries:

  • OpenAI has released the “Chat” SDK, a TypeScript library that lets developers write a single bot codebase and deploy it to Slack, Microsoft Teams, Google Chat, Discord, GitHub, and Linear. The event‑driven framework offers type‑safe handlers for mentions, messages, reactions, button clicks, and slash commands, and supports JSX cards and modals that render natively on each platform. State is managed via pluggable adapters for Redis, ioredis, or in‑memory storage. The SDK also accepts AI text streams, enabling real‑time streaming of responses. Guides and templates for popular stacks (Next.js, Nuxt, Hono) are included, and the library is available in public beta.

Sources: