Complete guide to connecting WhatsApp with Moltbot (formerly Clawdbot)
WhatsApp is one of the most popular messaging platforms, and Moltbot connects to it using WhatsApp Web via the Baileys library. This guide covers everything you need to set up WhatsApp with Moltbot.
Setting up WhatsApp is straightforward:
openclaw gatewayopenclaw channels loginWhatsApp uses QR code pairing (like WhatsApp Web):
openclaw channels loginThe QR code appears as:
{
"channels": {
"whatsapp": {
"enabled": true
}
}
}
Control who can message you:
{
"channels": {
"whatsapp": {
"allowFrom": ["+1234567890", "+0987654321"]
}
}
}
{
"channels": {
"whatsapp": {
"groups": {
"*": {
"requireMention": true
}
}
}
}
}
By default, unknown senders require pairing:
openclaw pairing approve whatsapp <code>To allow public DMs (not recommended):
dmPolicy: "open""*" in allowlistIf QR code doesn't show:
http://localhost:18789openclaw statusIf WhatsApp disconnects:
openclaw gatewayopenclaw channels loginIf messages aren't coming through: