Sophon Docs
Channels

Channels Overview

Connect Sophon to messaging platforms and communication services.

Channels are the communication bridges between Sophon and the outside world. Each channel adapter normalizes platform-specific messages into Sophon's universal SophonMessage format, so your agent behaves consistently regardless of where a conversation originates.

Supported Channels

ChannelConnection MethodMedia Support
WebChatBuilt-in (always available)Text, images, files
TelegramBot API tokenText, images, audio, video, files, stickers
DiscordBot tokenText, images, files
SlackSocket Mode (App + Bot tokens)Text, images, files
WhatsAppBusiness Cloud APIText, images, audio, video, files, stickers
EmailIMAP/SMTPText, HTML, file attachments
Microsoft TeamsBot FrameworkText, images, files
Signalsignal-cli REST bridgeText, images, files
MatrixMatrix SDKText, images, files
SMSTwilioText only

How Channels Work

  1. Add a channel via the Dashboard or CLI
  2. Configure credentials (API tokens, OAuth, etc.)
  3. Test the connection to verify everything works
  4. Activate the channel to start receiving messages

When a message arrives on any channel, the adapter converts it to a SophonMessage and routes it to the configured agent. The agent's response is converted back to the platform's native format and sent through the same channel.

Agent Routing

Each channel can be routed to a specific agent. When set to the default agent, Sophon's AgentRouter can automatically dispatch messages to the most appropriate agent based on content.

Configure routing per channel in the Dashboard under Channels > [channel name] > Routing, or in channels.json:

{
  "routing": {
    "agentId": "default",
    "dmBehavior": "main-session",
    "groupBehavior": "mention-only"
  }
}

Attachment Limits

Sophon enforces per-channel attachment limits to prevent abuse:

LimitValue
Max file size25 MB
Max files per message10
Supported typesImages (PNG, JPG, WEBP, GIF), Audio (MP3, WAV, OGG), Video (MP4, WEBM), Documents (PDF, DOCX, XLSX, CSV, TXT)

Files received through any channel are automatically processed by the Document Pipeline when applicable.