Connecting WhatsApp
WhatsApp has 2 billion+ users worldwide — the top choice for cross-border business communication. But setup is more involved than Telegram. Read this page before starting to save yourself the missteps.
Two Paths — Pick One First
| Method | Best For | Difficulty | Cost | Caveats |
|---|---|---|---|---|
| QR Code Pairing | Personal use, small team testing | ⭐ Simple | Free | Uses a personal number; risk of ban |
| Business API | Enterprise, production commerce | ⭐⭐⭐⭐ Involved | $0.005–$0.09 per message | Business entity + verification required |
If this is for real commercial customer service, go straight to Business API. QR Code pairing uses a personal account. If Meta flags automation, it may ban the account and lock your personal WhatsApp.
Path A: QR Code Pairing (Personal Account)
Best for: personal use, rapid testing, small internal teams.
Prerequisites
- A smartphone with WhatsApp
- Strongly recommended: a secondary phone number (not your primary)
Steps
- Admin Panel → Ada (oc-2) tab → Settings → Messaging → WhatsApp
- Choose QR Code Pairing
- A QR code appears
- In WhatsApp on your phone → menu (⋮) → Linked Devices → Link a Device
- Scan the QR code with your phone camera
- Once paired, the Admin Panel shows “Connected”
[Screenshot: Admin Panel → WhatsApp → QR Code pairing screen]
After pairing, every message that phone number receives can be read and replied to by the AI.
- Friends’ private messages will be too
- Family group messages will be too
- Hence the secondary-number recommendation
To pause AI replies: Admin Panel → Ada Dashboard → pause Messaging.
QR Pairing Limits
- WhatsApp cap: one number can link up to 4 devices (including the phone itself)
- The Admin Panel pairing consumes one of those slots
- If the phone stays offline too long (~2 weeks), pairing expires and needs a new scan
Path B: Business API (Enterprise)
Best for: commercial customer service, cross-border sales, high message volume.
Prerequisites
You need:
- A registered business entity
- A Facebook Business Manager account
- A Meta Developer account
- A phone number not currently bound to another WhatsApp app
- A credit card (for API costs)
Plan for 2 to 5 business days (Meta review takes time).
Flow Overview
① Apply for a Meta Business Suite account
↓
② Create a Meta App (WhatsApp type)
↓
③ Add and verify a phone number
↓
④ Obtain a Permanent Access Token
↓
⑤ Retrieve Phone Number ID and Business Account ID
↓
⑥ Enter the above in the Admin Panel
↓
⑦ Set up the Webhook URL
↓
⑧ Start sending and receiving messages
Detailed Steps
-
Apply for Meta Business Suite: go to business.facebook.com and create a business account
-
Create a Meta App:
- developers.facebook.com → My Apps → Create App
- Choose type Business
- Add the WhatsApp product
-
Add a phone number:
- WhatsApp → API Setup → Add phone number
- Enter your business phone (must receive SMS or voice codes)
- Complete Meta’s business verification (upload registration, representative info)
-
Collect API credentials:
- Permanent Access Token: Settings → System Users → create a System User and generate a Token
- Phone Number ID: top of the API Setup page
- WhatsApp Business Account ID: same location
-
Configure in the Admin Panel:
Ada Dashboard → Settings → Messaging → WhatsApp → Business APIFill in:
- Access Token
- Phone Number ID
- WhatsApp Business Account ID
-
Set up the Webhook:
- The Admin Panel provides a Webhook URL like
https://{your-prefix}-2.realvco.com/webhooks/whatsapp - Back in Meta Developer → WhatsApp → Configuration → Webhook
- Paste the URL + the Verify Token (from the Admin Panel)
- Subscribe to events:
messages,message_template_status_update
- The Admin Panel provides a Webhook URL like
[Screenshot: Meta Developer → WhatsApp → Configuration setup]
- Test:
- Meta Developer → API Setup → send a test message to your WhatsApp
- If you receive it and Ada replies → success
Business API Pricing
Meta charges per “conversation”:
- Service conversations (user initiates): first 1,000 / month free, then roughly $0.005 / conv
- Marketing conversations (you initiate): $0.02–$0.09 each (varies by country)
- Taiwan, Hong Kong, Singapore sit mid-range
- Full pricing: Meta WhatsApp Pricing
Advanced Configuration (Either Path)
The easiest approach: tell Rose what you want changed. Rose will configure it for you. Great for non-terminal users.
If you prefer the command line, SSH in and run the commands directly. Both paths shown below.
Access Control
Tell Rose:
“Only allow these numbers to message Ada on WhatsApp: +14155551234, +14155554321”
Or manually:
openclaw config set channels.whatsapp.dmPolicy "allowlist"
openclaw config set channels.whatsapp.allowFrom '["+14155551234", "+14155554321"]'
Group Rules
Tell Rose: “In the XXX group, Ada replies to every message — no @mention needed.”
Or manually:
openclaw config set channels.whatsapp.groups."*".requireMention true
openclaw config set channels.whatsapp.groups.GROUPID.requireMention false
Read Receipts
Tell Rose: “Enable read receipts for Ada’s WhatsApp.”
Or manually:
openclaw config set channels.whatsapp.sendReadReceipts true
Media Size Limit
Tell Rose: “Set Ada’s WhatsApp media limit to 50MB.”
Or manually:
openclaw config set channels.whatsapp.mediaMaxMb 50
Message Templates (Business API Only)
Business API requires pre-approved message templates to initiate conversations outside the 24-hour service window.
Submit in Meta Business Suite:
- WhatsApp Manager → Message Templates → Create
- Fill in category (Marketing / Utility / Authentication), language, content
- Submit for review (24–48 hours)
- After approval, enter the template ID in the Admin Panel — Ada can now use it
FAQ
Paired via QR, but AI Does Not Respond
- Does your phone’s WhatsApp “Linked Devices” show the connection as successful?
- Does Admin Panel → Ada → Messaging → WhatsApp show “Connected”?
- Is your phone online and has WhatsApp been opened recently?
- Try sending a message from a different number — does the AI reply?
Business API Webhook Verification Fails
Most common issues:
- Verify Token typo (case-sensitive)
- Webhook URL wrong (make sure it’s Ada’s
-2URL, not the Admin Panel’s-00) - The container is not running
Business API Application Rejected
Common reasons:
- Incomplete business registration
- Phone number previously bound to another WhatsApp app
- Industry conflicts with WhatsApp Commerce Policy (crypto, gambling, adult content)
What If the Account Gets Banned?
QR pairing carries real risk. Warning signs:
- Messages fail to send
- “Violates terms of service” on login
- WhatsApp app force-signs you out
Prevention:
- Do not mass-send outbound messages
- Do not run an AI spam bot
- For real commerce, use Business API
Once banned, personal accounts are effectively unrecoverable. Switch to Business API.
Next Steps
- Connecting Telegram — start with the simple one
- Connecting LINE — top pick for Taiwan, Japan, Thailand
- Messaging Overview
- Ada’s Configuration Guide — shape her support personality