Platform Integrations
Gateway Architecture
Section titled “Gateway Architecture”The message gateway connects platform channels to agents. When a message arrives:
- Route resolution — Match platform + channel ID to an agent
- Rate limiting — Check per-user and global rate limits
- Credit check — Verify minimum $0.50 balance
- Session loading — Create or resume conversation session
- Flow execution — Run the agent’s CAFF flow
- Response delivery — Send the response back to the platform
Supported Platforms
Section titled “Supported Platforms”| Platform | Adapter | Features |
|---|---|---|
| Telegram | Bot API | Text, inline keyboards, files |
| Discord | Bot gateway | Text, embeds, reactions, threads |
| Slack | Bot events | Text, blocks, file sharing |
| API v2 | Mentions, replies, monitoring | |
| API | Posts, comments, keyword monitoring |
Gateway Routes
Section titled “Gateway Routes”Routes map a platform channel to an agent using the key format PLATFORM:channelId:
TELEGRAM:123456789 → Agent ADISCORD:987654321 → Agent BSLACK:C01234567 → Agent CTELEGRAM:* → Agent D (catch-all)Route Resolution Priority
Section titled “Route Resolution Priority”- Exact match —
PLATFORM:channelIdmatches a specific route - Catch-all —
PLATFORM:*handles unmatched channels on that platform
Route Requirements
Section titled “Route Requirements”- Agent must be in
ACTIVEstate - User must have sufficient credits ($0.50 minimum)
- Channel must pass allowlist check (if configured)
Session Management
Section titled “Session Management”Sessions track conversation state per user per platform:
- Persistent chat history
- Flow variable state
- Platform-specific context (user ID, channel, thread)