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
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
server/sendblue.tswithchat-adapter-sendblue+@chat-adapter/telegramserver/bot.tswith env-drivenregisterIfConfigured()registryLinked PR
Resolved by #13
🤖 Generated with Claude Code