export WhatsAppIntegration
/** Your OpenClaw AI, accessible from WhatsApp β anywhere, anytime */
ποΈ## How It Works: The Gateway Architecture
WhatsApp does not provide a free official API for individuals, so OpenClaw uses a Gateway Architecture. The openclaw-messenger-gateway creates a virtual browser (Chromium) that logs into WhatsApp Web on your behalf and bridges messages to your OpenClaw instance.
// π‘ Pro tip: Use a secondary phone number (e.g., Google Voice or a cheap SIM) for a dedicated AI WhatsApp number rather than your personal number.
## β Prerequisites
## π¦ Install the WhatsApp Gateway
The OpenClaw messenger gateway is a separate service that runs alongside your main OpenClaw instance.
Option A: Docker (Recommended)
Option B: Node.js
## π± Pair Your WhatsApp Account
Once the gateway is running, you need to authenticate it with your WhatsApp account by scanning a QR code.
// β οΈ The QR code expires after 60 seconds. If it expires, refresh the page to get a new one.
## βοΈ Connect to OpenClaw
In your OpenClaw configuration file, add the WhatsApp channel:
π## Secure Your Bot (Critical!)
This is the most important section. Giving an AI access to your WhatsApp means anyone who messages your number could interact with it. OpenClaw uses an Access Control List (ACL) β it ignores all messages from numbers not on the whitelist.
β οΈ NEVER leave allowed_numbers empty or set to * on a production server. This gives anyone unlimited AI access at your expense.
## π§ͺ Test & Go Live
Send a message from your authorized WhatsApp number and check for a response:
## π§ Troubleshooting
## π Next Steps
Your OpenClaw is now on WhatsApp! Explore more channels and secure your setup: