Back to BlogTutorials

Step-by-Step: Connect Your OpenClaw Agent to WhatsApp Business

SK
Sarah Kim
CTO
January 20, 2024
5 min read

This guide walks you through connecting OpenClaw to WhatsApp, so your AI agent becomes reachable directly from your mobile device. Ask it to organize files, execute commands, manage your schedule, or trigger automations - all through a WhatsApp message. For a deeper look at WhatsApp capabilities, see our [WhatsApp integration page](/integrations/whatsapp).

Prerequisites

Have these ready before you begin:

1. An active OpenClaw Hosting subscription with a running agent

2. WhatsApp Business API credentials

3. Access to Meta Business Suite

Step 1: Create a WhatsApp Business App

Head to developers.facebook.com and create a new application. Select "Business" as the app type and enable the WhatsApp product.

Step 2: Collect Your Credentials

In your app's WhatsApp settings panel, locate:

  • Phone Number ID
  • Access Token
  • Webhook Verification Token
  • Keep these values handy for the next step.

    Step 3: Enter Credentials in OpenClaw Hosting

    1. Open your OpenClaw Hosting dashboard

    2. Go to Settings > Integrations > WhatsApp

    3. Paste in your API credentials

    4. Click "Connect"

    Step 4: Register Your Webhook

    Copy the webhook URL from your OpenClaw dashboard and paste it into your WhatsApp app's webhook configuration. Subscribe to the "messages" event.

    Testing It Out

    Send a message to your WhatsApp Business number. Your AI agent should reply within seconds! Try giving it a real task - ask it to check your calendar, draft a message, or run a terminal command.

    Troubleshooting

    If your agent is not responding, check these:

  • Webhook URL is correctly registered with Meta
  • Access token has not expired
  • Your OpenClaw instance status shows as active
  • Add More Channels

    Now that WhatsApp works, expand your agent's reach:

  • [Telegram setup](/integrations/telegram) for broader messaging access
  • [Discord setup](/integrations/discord) for community interaction
  • [Slack setup](/integrations/slack) for workplace collaboration
  • Questions? Drop into our Discord or email help@openclawhosting.io. Browse more [capabilities on our features page](/features).

    Share this article

    Ready to Get Started?

    Deploy your autonomous AI agent in minutes.

    Get Started