Chat SDK Starter
Slack and Teams support agent scaffold for your SaaS product.
This project wires a single assistant backend to Slack, Microsoft Teams, and a portal web chat surface, adds an OpenAI-backed response service, includes white-label OAuth2 connection flows for chat-platform users, and leaves clean MCP integration seams for your REST API wrapper.
What Is Included
- Unified webhook handler for Slack and Teams via Chat SDK
- Portal-native chat UI backed by the same assistant and tool stack
- Streaming OpenAI responses using `fullStream` for future multi-step tool use
- Prompt structure for support and developer-code generation use cases
- OAuth2 connect and callback routes for white-label tenant domains
- MCP client and tool-registry stubs for your future SaaS actions
- Development-safe in-memory stores that can be swapped for Redis or a database
Useful Routes
- `POST /api/webhooks/slack`
- `POST /api/webhooks/teams`
- `POST /api/portal-chat`
- `GET /api/auth/connect`
- `GET /api/auth/callback`
- `GET /portal`