Skip to content

feat: migrate to Chat SDK for multi-platform adapter support #14

@farzanshibu

Description

@farzanshibu

Problem

The current Sendblue integration is a one-off custom implementation in server/sendblue.ts. Adding a second platform (Telegram, WhatsApp, Slack, Discord, etc.) requires duplicating webhook handling, auth, dedup, and routing logic from scratch each time.

Proposed solution

Migrate to Chat SDK — a unified TypeScript adapter layer that normalizes all platforms to the same interface. Bot logic is written once and works everywhere.

Changes

  • Replace server/sendblue.ts with chat-adapter-sendblue + @chat-adapter/telegram
  • Add server/bot.ts with env-driven registerIfConfigured() registry
  • New platforms (Slack, WhatsApp, Discord, Teams) = one function call + env vars
  • Auto-register Telegram webhook on dev boot alongside Sendblue
  • Debug logging on webhook bridge (headers forwarded, body + status logged)
  • README: "Adding more chat platforms" section with Slack walkthrough and full adapter table

Linked PR

Resolved by #13

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions