Connecting WhatsApp & Telegram
Turn your favorite messaging apps into powerful AI interfaces. Connect WhatsApp, Telegram, Discord, Slack, Signal, and more to your OpenClaw assistant.
Why Connect Messaging Apps?
OpenClaw's real power comes from making your AI assistant available wherever you already communicate. Instead of switching to a dedicated app, just text your assistant like you would a friend.
Supported messaging platforms:
- WhatsApp (personal account)
- Telegram (bot or personal account)
- Discord
- Slack
- Google Chat
- Signal
- iMessage (via BlueBubbles or native macOS)
- Microsoft Teams
- Matrix, Zalo (via extensions)
WhatsApp Setup
WhatsApp integration uses your personal account via web.whatsapp.com pairing. No business account needed.
Step 1: Enable WhatsApp in Config
During the onboarding wizard, select WhatsApp. Or manually edit ~/.openclaw/openclaw.json:
{
"channels": {
"whatsapp": {
"enabled": true
}
}
}Step 2: Start the Gateway
openclaw gateway startWatch the logs for a QR code to appear. It will look like a large block of ASCII characters.
Step 3: Scan the QR Code
- Open WhatsApp on your phone
- Go to Settings → Linked Devices
- Tap Link a Device
- Scan the QR code from your terminal
Once connected, send a message to yourself in WhatsApp. You should receive a response from OpenClaw!
💡 Pro Tip:
Create a WhatsApp group with just yourself and OpenClaw. This gives you a dedicated space for AI interactions without cluttering your personal chat.
Telegram Setup
Telegram integration uses a bot token from BotFather. This gives you a dedicated bot account for OpenClaw.
Step 1: Create a Bot with BotFather
- Open Telegram and search for @BotFather
- Send the command:
/newbot - Follow the prompts to choose a name and username
- Copy the bot token (it looks like:
123456789:ABCdefGHIjklMNOpqrsTUVwxyz)
Step 2: Add Token to OpenClaw
Edit your OpenClaw config file:
{
"channels": {
"telegram": {
"enabled": true,
"token": "YOUR-BOT-TOKEN-HERE"
}
}
}Step 3: Start the Gateway
openclaw gateway restartSearch for your bot in Telegram and send it a message. OpenClaw will respond!
Discord Setup
Discord integration creates a bot that can respond in servers and DMs.
Step 1: Create a Discord Application
- Go to Discord Developer Portal
- Click New Application
- Go to the Bot tab and click Add Bot
- Copy the bot token
- Enable Message Content Intent under Privileged Gateway Intents
Step 2: Configure OpenClaw
{
"channels": {
"discord": {
"enabled": true,
"token": "YOUR-BOT-TOKEN",
"dm": {
"policy": "pairing"
}
}
}
}Step 3: Invite the Bot to Your Server
- Go to OAuth2 → URL Generator in the Developer Portal
- Select scopes:
bot - Select bot permissions:
Send Messages,Read Message History - Copy the generated URL and open it in your browser
- Select your server and authorize
Slack Setup
Slack integration uses a bot token and requires creating a Slack app.
- Go to Slack API Apps
- Create a new app "From scratch"
- Under OAuth & Permissions, add bot token scopes:
chat:write,channels:read,groups:read - Install the app to your workspace
- Copy the Bot User OAuth Token
- Add to OpenClaw config under
channels.slack.token
Security: DM Pairing
OpenClaw includes security features to protect against unauthorized access via DMs.
⚠️ Security Notice:
By default, OpenClaw requires pairing before responding to unknown DMs. This prevents random people from using your AI assistant.
When someone sends your bot a DM for the first time, they receive a pairing code. Approve them with:
openclaw pairing approveTesting Your Setup
Once you've connected a messaging app, test it:
You:
"Hey! What can you help me with?"
OpenClaw:
"Hello! I'm your personal AI assistant. I can help you manage emails, browse the web, create content, schedule tasks, and much more. What would you like to work on?"
Troubleshooting
WhatsApp QR Code Not Appearing
Make sure the Gateway is running and check logs with openclaw logs. The QR code appears during startup.
Telegram Bot Not Responding
Verify your bot token is correct and the bot is not already connected elsewhere. Check status:
openclaw statusDiscord Bot Missing Permissions
Ensure you enabled Message Content Intent in the Discord Developer Portal and gave the bot proper permissions.
