Channel Integrations π‘ BETA
A channel is a compiled adapter crate that normalises an external transport's message into the bot's message model and delivers it to the shared session and response pipeline.
When to use
- The bot must answer outside the suite web chat (WhatsApp Cloud API, Telegram, Instagram or Microsoft Teams).
- A new provider must be checked against the catalog before an action is advertised as available.
- An inbound webhook must be registered with a verification secret that the handler actually reads.
Do not confuse a channel (a transport crate) with a connector (a catalog provider whose actions an adapter executes). The generated connector catalog is the authority for provider names and action keys.
Before you start
| Check | Requirement |
|---|---|
| Build | The channel's Cargo feature is compiled into botserver. |
| Credentials | Stored in the per-bot Vault path; the config.csv value is only a fallback where the adapter supports one. |
| Transport | The bot's configuration supplies the provider-side identifiers and the inbound verification secret. |
| Ports | API 8080, suite 3000, cloud 4000, login 5000 (root AGENTS.md). |
Configuration keys below are the exact names read by the channel adapters in botserver/crates/bot*.
| Channel | Crate | Keys read by the adapter |
|---|---|---|
| WhatsApp Cloud API | botwhatsapp |
whatsapp-api-key, whatsapp-phone-number-id, whatsapp-verify-token, whatsapp-app-secret, whatsapp-business-account-id, whatsapp-api-url |
| Telegram | bottelegram |
telegram-bot-token, telegram-webhook-secret |
| Microsoft Teams | botmsteams |
teams-app-id, teams-app-password, teams-tenant-id, teams-service-url, teams-bot-id, teams-security-token |
| Instagram / Messenger | botinstagram |
instagram-access-token, instagram-page-id, instagram-account-id, instagram-verify-token, instagram-app-secret |
| Web chat | suite | WebSocket handshake; no external provider credential |
Steps
- Confirm the crate and feature are compiled in. A channel hidden by the product profile is not available to users.
- Store the channel credentials under the bot's Vault path. Use the key names from the table above; never invent a key or paste a token into a page.
- Register the inbound URL with the provider. WhatsApp and Instagram use a
hub.verify_tokenhandshake; Telegram uses the Bot APIsetWebhooksecret_token; Teams uses either a Bot Framework registration (teams-app-id) or an outgoing-webhook token (teams-security-token). - Set the matching verification secret in the bot configuration. The gate is fails-closed: an unset secret refuses every delivery.
- Send one test message from the provider and follow it through to a bot reply. For WhatsApp, use the quick start and the webhook guide.
- If the reply is wrong, use the quick reference and the troubleshooting guide; code examples show the provider-side payloads.
Verify
| Check | Expected result |
|---|---|
| API health | curl -s -o /dev/null -w '%{http_code}' http://localhost:8080/health β 200. |
| Handshake | A valid verify token is echoed back; an invalid one is refused. |
| Signed delivery | A correctly signed POST produces a bot turn. |
| Unsigned delivery | A POST with a missing or wrong signature is refused (see the signature matrix). |
| Session identity | The turn is attributed to the bot and user resolved by the handler, not by a client query parameter. |
Roll back
- Remove or disable the webhook subscription at the provider.
- Delete or rotate the credentials you added under the bot's Vault path.
- Re-run the Verify table. The channel must fail closed after rollback, not accept anonymous deliveries.
- Keep the crate and feature unchanged: a rebuild is only needed if you are also removing the channel from the product profile.