Skip to content

Multi-Channel Support 🟑 BETA

Channels are adapters in botchannels and the per-channel crates that deliver messages into the same bot session and response pipeline.

Administrator guide map

Architectural Foundation

Every channel normalises its inbound message into the bot's message model. The session, retrieval and model path is shared, so a bot behaves the same way whatever transport delivered the message.

Channel Crate / feature
Web chat suite WebSocket surface, chat feature
WhatsApp botwhatsapp, whatsapp feature
Telegram bottelegram, telegram feature
Instagram botinstagram, instagram feature
Microsoft Teams botmsteams, msteams feature
Generic social actions botsocial / botchannels

The Web Channel

The suite opens a WebSocket to botserver; the handshake resolves the user and creates a session. Messages stream back as chunks; type-6 tool calls are executed without a model call.

Voice Interaction

Voice input is an attachment path: audio is transcribed server-side and then handled as an ordinary message. See the Chat app.

Unified Session Management

Sessions are keyed by bot and user, and channel-specific bindings live in botchannelbindings. KB and tool activations are session-scoped regardless of the transport.

Message and Response Structures

Message type Meaning Model used
1 User message Yes
2 Bot response No
4 Suggestion Yes
6 Tool execution No

WebSocket Communication Protocol

The web channel streams response chunks over the socket. Front-end code appends them to the conversation and renders suggestion or tool buttons from session state.

Expanding Channel Support

A new channel needs an adapter crate, a Cargo feature and a product-profile decision. The catalog and connectors pages describe external services; the channel crates describe transports.

Practical Considerations

Credential material belongs in Vault. A channel that is compiled but hidden by the product profile is not available to users.

Development Guidelines

Write channel code against the shared message model, not against a single provider's payload shape. Keep identity resolution in the handshake so per-user state is correct from the first turn.

Limits

  • No channel is available unless its crate is compiled and its feature enabled.
  • Channel identity comes from the handshake, not from a query parameter supplied by the client.
  • Tool calls bypass both retrieval and the model.

See Also