Features
- Direct messaging and group chats
- Media support (images, videos, documents)
- Polls and reactions
- Multi-device support via WhatsApp Web
- QR code authentication
Setup
Login with QR Code
Start the login process to authenticate with WhatsApp:A QR code will be displayed in your terminal. Scan it with WhatsApp on your phone:
- Open WhatsApp on your phone
- Go to Settings → Linked Devices
- Tap “Link a Device”
- Scan the QR code shown in the terminal
Verify Connection
Check that WhatsApp is connected:You should see WhatsApp listed as “linked” and “running”.
Configuration
Basic Configuration
Account Configuration
Group Settings
Authentication
QR Code Login
The primary authentication method uses WhatsApp Web QR codes:Multi-Account Setup
To use multiple WhatsApp accounts simultaneously:Security
DM Policy
Control who can send direct messages:Group Policy
Manage group chat access:Pairing Workflow
WithdmPolicy: pairing, users must be approved:
- User sends first message
- You receive pairing request
- Approve with:
simpleclaw pairing approve whatsapp +1234567890 - User receives approval notification
Message Features
Sending Messages
Send messages via CLI:Reactions
React to messages using thereact action:
Polls
Create polls in WhatsApp:Troubleshooting
QR Code Not Displaying
QR Code Not Displaying
Ensure your terminal supports rendering images or use verbose mode:
Connection Keeps Dropping
Connection Keeps Dropping
Check the WhatsApp Web session:If authentication is expired, re-login:
Messages Not Received
Messages Not Received
Verify the gateway is running and WhatsApp is connected:Check that
web.enabled is set to true:Group Messages Not Working
Group Messages Not Working
Ensure the bot is added to the group and
groupPolicy allows the group:Advanced Configuration
Message Chunking
WhatsApp has a 4000 character limit. SimpleClaw automatically chunks longer messages:Media Handling
Default Recipient
CLI Commands
API Reference
WhatsApp channel implementation:extensions/whatsapp/src/channel.ts
Channel ID
whatsapp
Target ID Format
- Phone numbers: E.164 format (e.g.,
+1234567890) - Groups: JID format (e.g.,
[email protected])
Capabilities
- Chat types:
direct,group - Features:
polls,reactions,media - Delivery mode:
gateway - Text chunk limit: 4000 characters
- Poll max options: 12
Next Steps
Security Configuration
Configure DM policies and allowlists
Multi-Channel Setup
Connect additional messaging platforms