๐Ÿ“ฒ
Platform Guide

Clawdbot for WhatsApp

Use Clawdbot on WhatsApp, the world's most popular messaging app. Chat with AI right from your phone, anywhere in the world.

WhatsApp Features

๐Ÿ’ฌ

Personal Chats

Private AI conversations

๐ŸŽค

Voice Messages

Send voice, get text replies

๐Ÿ–ผ๏ธ

Image Analysis

Send photos for AI analysis

๐Ÿ“„

Document Sharing

Share PDFs and documents

๐Ÿ“

Location Aware

Share location for context

๐Ÿ“ฑ

Always Available

Chat from your phone anywhere

โš ๏ธImportant Information

WhatsApp integration uses the WhatsApp Web protocol. This is not an official API and may have limitations:

  • Requires an active WhatsApp account and phone number
  • Your phone must stay connected to the internet
  • May require periodic re-authentication
  • Not suitable for business use (use WhatsApp Business API instead)

Setup Guide

1
Enable WhatsApp Integration

Enable WhatsApp in your Clawdbot configuration:

# In your .env file

WHATSAPP_ENABLED=true

2
Start Clawdbot

docker compose up -d

Watch the logs for the QR code:

docker compose logs -f

3
Scan QR Code

A QR code will appear in the terminal. Scan it with WhatsApp:

  1. Open WhatsApp on your phone
  2. Tap the three dots menu (Android) or Settings (iOS)
  3. Select "Linked Devices"
  4. Tap "Link a Device"
  5. Scan the QR code shown in the terminal
4
Start Chatting

Once connected, you can:

  • Send messages to the bot number to chat with AI
  • Add the bot to group chats (optional)
  • Send images, voice messages, and documents

Configuration Options

Restrict to Numbers
Only respond to specific numbers

# In .env - with country code

WHATSAPP_ALLOWED_NUMBERS=1234567890,0987654321

Group Chat Support
Enable or disable group chats

# In .env

WHATSAPP_ALLOW_GROUPS=false

Auto-Read Messages
Automatically mark as read

# In .env

WHATSAPP_AUTO_READ=true

Session Persistence
Save session to avoid re-scanning

# Session is saved in ./data/whatsapp

# Mount this volume for persistence

Troubleshooting

QR Code not appearing

Check the logs for errors. Make sure WHATSAPP_ENABLED=true is set in your .env file. The QR code only appears on first connection.

Connection keeps dropping

Ensure your phone has a stable internet connection. WhatsApp Web requires your phone to stay online. Check if you're not logged into too many devices.

Need to re-authenticate

Delete the session folder (./data/whatsapp) and restart to get a new QR code.

Messages not being received

Verify the number format is correct (include country code without +). Check if the number is in the allowed list if you've set restrictions.

Tips for WhatsApp

๐Ÿ’ก

Use a Dedicated Number

Consider using a separate phone number for your bot to avoid mixing personal and bot messages.

๐Ÿ’ก

Keep Phone Charged

WhatsApp Web disconnects if your phone runs out of battery or loses internet connection.

๐Ÿ’ก

Voice Messages Work Great

Send voice messages for hands-free interaction. They'll be transcribed and processed by AI.