Skip to main content

Channels

Channels connect a Distri agent to a messaging platform, so your users talk to it from Telegram, Slack, WhatsApp, or Discord instead of a web chat. A message arriving on the platform starts (or continues) an agent thread; the agent's reply goes back to the same conversation.

Cloud feature

Channels run on Distri Cloud, which receives the platform webhooks and routes them to your agents. They aren't part of the self-hosted open-source build.

How it works​

  • A bot is a configured platform integration (its token, the agent or workflow it runs, and how it triggers). One bot per platform app.
  • A channel is a single conversation with that bot (a DM, a group, or a server channel), backed by its own agent thread.

When a message comes in, the gateway resolves the channel to your workspace and agent, runs a turn, and streams the reply back to the platform.

The Bots page​

Bots in the dashboard lists your workspace's bots: what each one runs, when it answers, who can use it, and its chats and cost for the last 7 days.

The Bots page: a shared WhatsApp bot and a shared Telegram bot, both live, a Connect codes card, and the Set up from the chat toggle

Add a bot​

Click Add a bot and pick Telegram, WhatsApp or Discord.

  1. Paste the token. For Telegram, open @BotFather, send /newbot and copy the token it gives you. Distri checks the token, registers the webhook and sets the bot's command menu.
  2. What should it run? Pick an agent or a workflow from this workspace. Agents that need browser tools are not listed, since a chat has no browser.

Under Who can use it, and when it answers you set who may use the bot and its trigger mode. Then click Make it live.

The Add a bot dialog: Telegram, WhatsApp or Discord; 1, paste the token; 2, pick the agent or workflow it runs

Shared bots and connect codes​

A shared bot is one bot account that Distri runs for many workspaces. A chat reaches your workspace through a connect code: a link or QR code that opens the bot and signs that chat into your workspace, for the agent or workflow you pick. Each code works once and lasts 10 minutes. Create one under Invite people on the Bots page.

Set up from the chat​

Turn on Set up from the chat and owners and admins of the workspace can send /setup in a bot's chat. The bot asks what it should do, does a test run, and saves the workflow when they tap Turn on. Everyone else gets the normal bot.

Providers​

PlatformNotes
TelegramFully supported, DMs and groups.
SlackWorkspace-scoped.
WhatsAppDirect messages.
DiscordServer-scoped.

Triggering​

A bot's trigger mode decides when the agent responds:

  • All: every message in the conversation.
  • On-mention: only when the bot is @-mentioned (the sane default for busy groups).

Connecting​

Users link a conversation to your workspace with a short handshake: send /start to the bot, follow the connect link, and pick the workspace, or open a connect code. From then on, messages route to the bot's agent or workflow.

Every channel also understands a few built-in commands:

CommandEffect
/startBegin / connect the conversation.
/stopStop the agent in this conversation.
/resetClear the thread and start fresh.
/statusShow the current connection.
/helpList available commands.
  • Workflows: a workflow's reply step posts messages (with buttons) back to a channel.
  • Configuration: workspace API keys used to authorize channel traffic.