Multi-Channel Setup Tutorial
Overview
Section titled “Overview”Run Clawdbot with multiple channels at once - Telegram, Discord, WhatsApp, and more.
Prerequisites
Section titled “Prerequisites”- Clawdbot installed
- API keys/tokens for each platform
-
Configure all channels in
.envTerminal window # AnthropicANTHROPIC_API_KEY=sk-ant-xxxxx# TelegramTELEGRAM_ENABLED=trueTELEGRAM_BOT_TOKEN=xxxxx# DiscordDISCORD_ENABLED=trueDISCORD_BOT_TOKEN=xxxxx# WhatsAppWHATSAPP_ENABLED=true -
Start Clawdbot
Terminal window python -m clawdbotAll enabled channels will initialize.
-
Verify connections
[INFO] Loading channel: telegram[INFO] Loading channel: discord[INFO] Loading channel: whatsapp[INFO] All channels ready
Per-Channel Configuration
Section titled “Per-Channel Configuration”Each channel can have unique settings:
# Global settingSYSTEM_PROMPT="You are a helpful assistant"
# Telegram-specificTELEGRAM_SYSTEM_PROMPT="You are a concise assistant for quick chats"
# Discord-specificDISCORD_SYSTEM_PROMPT="You are a helpful server bot"Shared vs. Separate Contexts
Section titled “Shared vs. Separate Contexts”Shared context (default): Conversation history shared across channels
Separate context: Each channel has its own history
CONTEXT_MODE=per_channelBest Practices
Section titled “Best Practices”- Start with one channel, add more gradually
- Test each channel individually first
- Monitor resource usage with multiple channels
- Set per-channel rate limits
Troubleshooting
Section titled “Troubleshooting”One channel not connecting?
- Check that channel’s specific logs
- Verify credentials for that platform
- Disable other channels temporarily to isolate