Skip to content

feat(chat): add multi-tenant adapter connections#497

Draft
dancer wants to merge 1 commit into
mainfrom
josh/multi-tenant-adapter-connections
Draft

feat(chat): add multi-tenant adapter connections#497
dancer wants to merge 1 commit into
mainfrom
josh/multi-tenant-adapter-connections

Conversation

@dancer
Copy link
Copy Markdown
Collaborator

@dancer dancer commented May 13, 2026

summary

adds first-class multi-tenant connection support for BYOK chat bots

this pr introduces a shared connection model in core, makes webhook handling and state identity connection-aware, and updates adapters so credentials can be resolved per customer connection instead of requiring one Chat instance per bot

the goal is to support platforms where users bring their own bot credentials while the app still runs through one stable Chat SDK runtime

closes #496

planned scope:

  • add connection metadata to inbound messages, threads, and serialized workflow payloads
  • make dedupe, locks, queues, subscriptions, and history safe across connections
  • add adapter-level connection providers for webhook credential resolution
  • add proactive connection APIs like withConnection
  • support webhook-mode BYOK across the existing chat adapters
  • document the multi-tenant BYOK setup and adapter-specific caveats

test plan

draft pr, tests will be added as implementation lands

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
chat Ready Ready Preview, Comment, Open in v0 May 13, 2026 2:14am
chat-sdk-nextjs-chat Ready Ready Preview, Comment, Open in v0 May 13, 2026 2:14am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add unified BYOK connection support across chat adapters

1 participant