OpenClaw WhatsApp Integration Guide

WhatsApp is where most of the world communicates. With over 2 billion users, it's likely your primary messaging app โ€” and that makes it an incredibly powerful channel for your OpenClaw agent. Having your AI assistant available in the same app where you chat with family, friends, and colleagues means it's always just a message away.

WhatsApp integration is slightly more complex than Telegram because there's no official bot API for personal accounts. But the result is worth it โ€” your agent responds from your actual WhatsApp number, making the experience seamless.

How WhatsApp Integration Works

Unlike Telegram (which has a dedicated Bot API), WhatsApp integration works through a web bridge โ€” essentially the same technology that powers WhatsApp Web and WhatsApp Desktop. OpenClaw connects to your WhatsApp account via QR code, then can read incoming messages and send responses.

Important to understand: Messages come from your WhatsApp number. Your contacts see responses as coming from you, not from a separate bot account. This has implications for transparency and how you configure the agent's behavior.

Step 1: Prerequisites

Step 2: Add the WhatsApp Channel

# Add WhatsApp channel openclaw channel add whatsapp # The CLI will display a QR code # Scan it with WhatsApp on your phone: # WhatsApp > Settings > Linked Devices > Link a Device

After scanning the QR code, the connection establishes within seconds. Your gateway is now linked to your WhatsApp account.

Step 3: Configure Who the Agent Responds To

This is critical. Unlike Telegram (where people message a bot and know they're talking to AI), WhatsApp messages come from your personal number. You need to decide:

Option A: Respond Only to Your Own Messages

The safest starting configuration. The agent only processes messages you send to yourself (using WhatsApp's "Message Yourself" feature) or messages from specific contacts you whitelist.

Option B: Respond to Specific Contacts

Whitelist specific phone numbers or contacts. The agent responds to messages from these contacts and ignores everyone else.

Option C: Respond to All Messages

The agent processes all incoming messages. This requires careful SOUL.md configuration to avoid awkward situations.

I recommend starting with Option A or B. Expand to Option C only after you're confident in your agent's behavior and your contacts are aware you're using AI assistance.

Step 4: WhatsApp-Specific SOUL.md Rules

Add WhatsApp-specific behavior to your SOUL.md:

## WhatsApp Behavior - Messages come from my number โ€” be aware contacts think it's me - In personal chats: be warm and conversational - In group chats: only respond when directly mentioned or asked a question - Never send unsolicited messages to contacts without my explicit instruction - For sensitive conversations: flag them for my review rather than responding - Keep messages shorter than other channels โ€” WhatsApp is mobile-first

๐Ÿ“– Complete Channel Configuration in the Book

The Personal Agent Revolution covers WhatsApp setup in depth โ€” including contact management, auto-response rules, media handling, and multi-device synchronization.

Get the Book โ€” $29.95 โ†’

Media Handling

WhatsApp is a media-rich platform. Your OpenClaw agent can handle:

Receiving

Sending

Group Chat Behavior

WhatsApp groups require the most careful configuration. Your agent sees all messages in groups your account belongs to. Without rules, it might respond to everything โ€” which is disastrous in a family group chat.

Recommended group chat rules:

Connection Stability

The WhatsApp web bridge connection can occasionally disconnect. Common causes and solutions:

Phone Goes Offline

WhatsApp's multi-device support has improved this significantly, but extended phone downtime can still cause disconnections. Solution: Keep your phone connected to WiFi and powered.

WhatsApp Updates

Major WhatsApp updates occasionally break the web bridge temporarily. Solution: Keep OpenClaw updated, as the community typically patches bridge compatibility within days.

Session Expiry

WhatsApp linked device sessions can expire after 14 days of phone inactivity. Solution: Ensure your phone opens WhatsApp at least once every two weeks.

# Check WhatsApp connection status openclaw gateway status # Re-link if disconnected openclaw channel relink whatsapp # Scan new QR code with your phone

WhatsApp vs Telegram: Which Channel First?

FactorWhatsAppTelegram
Setup DifficultyMedium (QR bridge)Easy (Bot API)
IdentityYour phone numberSeparate bot account
Connection StabilityOccasional re-linkingVery stable
Rich FeaturesEnd-to-end encryptionInline buttons, reactions
User Base2B+ users globally900M+ users

Recommendation: Start with Telegram for ease of setup and clear bot identity. Add WhatsApp once you're comfortable with your agent's behavior and want it in your primary messaging app.

Privacy Considerations

WhatsApp messages are end-to-end encrypted between devices. However, when your OpenClaw agent processes messages, they're decrypted on your machine and then sent to the AI model provider's API for processing. This means:

For maximum privacy, use local models via Ollama โ€” this keeps everything on your hardware. For details on security configuration, see our Security Guide.

Practical WhatsApp Use Cases

Frequently Asked Questions

Via a web bridge using QR code linking, similar to WhatsApp Web. Messages are sent/received through your WhatsApp number.
Messages come from your number, so contacts see them as from you. Be transparent about AI assistance. Configure carefully who the agent responds to.
Yes. Configure group behavior in SOUL.md โ€” mention-only mode, selective groups, or silent observation are recommended approaches.
Usually yes. Occasional re-linking may be needed after phone downtime or WhatsApp updates. Running on a VPS with stable internet minimizes issues.
๐Ÿ‘จโ€๐Ÿ’ป

Rudi Ribeiro Jr.

Early OpenClaw Adopter ยท HubSpot AE ยท Author of The Personal Agent Revolution

Rudi runs a personal AI agent daily and wrote The Personal Agent Revolution based on hundreds of hours of real-world experience. He is not the creator of OpenClaw โ€” he's a power user who documented everything he learned.

๐Ÿ“– Master OpenClaw with the Book

37 chapters, 187 pages, 3 bonus resources. Complete channel setup for every platform.

Get the Book โ€” $29.95 โ†’