跳转到内容

Multi-Channel Setup Tutorial

此内容尚不支持你的语言。

Run Clawdbot with multiple channels at once - Telegram, Discord, WhatsApp, and more.

  • Clawdbot installed
  • API keys/tokens for each platform
  1. Configure all channels in .env

    Terminal window
    # Anthropic
    ANTHROPIC_API_KEY=sk-ant-xxxxx
    # Telegram
    TELEGRAM_ENABLED=true
    TELEGRAM_BOT_TOKEN=xxxxx
    # Discord
    DISCORD_ENABLED=true
    DISCORD_BOT_TOKEN=xxxxx
    # WhatsApp
    WHATSAPP_ENABLED=true
  2. Start Clawdbot

    Terminal window
    python -m clawdbot

    All enabled channels will initialize.

  3. Verify connections

    [INFO] Loading channel: telegram
    [INFO] Loading channel: discord
    [INFO] Loading channel: whatsapp
    [INFO] All channels ready

Each channel can have unique settings:

Terminal window
# Global setting
SYSTEM_PROMPT="You are a helpful assistant"
# Telegram-specific
TELEGRAM_SYSTEM_PROMPT="You are a concise assistant for quick chats"
# Discord-specific
DISCORD_SYSTEM_PROMPT="You are a helpful server bot"

Shared context (default): Conversation history shared across channels

Separate context: Each channel has its own history

Terminal window
CONTEXT_MODE=per_channel
  1. Start with one channel, add more gradually
  2. Test each channel individually first
  3. Monitor resource usage with multiple channels
  4. Set per-channel rate limits

One channel not connecting?

  • Check that channel’s specific logs
  • Verify credentials for that platform
  • Disable other channels temporarily to isolate