Skip to content

Connecting an AI Agent to WhatsApp and Slack with OpenClaw: A Guide

On this page

Last updated: · By

In short: to connect an AI agent to WhatsApp with OpenClaw on Cloudways, you open the agent in the dashboard, go to the LLM & Channels tab, click Connect WhatsApp and scan a QR code from your phone, exactly like connecting WhatsApp Web. It takes under a minute. For Slack you create an app in Slack and paste two tokens, about 15 minutes. I recommend a separate WhatsApp number for the agent, not your personal one.

⏱ Time needed: WhatsApp about 2 minutes, Slack about 15 minutes · Difficulty: easy to intermediate · Last checked against the Cloudways knowledge base and the OpenClaw docs: 7 Nov 2026

At a glance: OpenClaw on WhatsApp and Slack (as of 7 Nov 2026)

ChannelHow you connectTimeImportant limit
WhatsAppQR scan (linked device)Under a minuteOne number for one agent at a time
SlackA Slack app + xoxb and xapp tokensAbout 15 minutesYou need admin permission in Slack
TelegramA bot from BotFather + a tokenAbout 5 minutesKeep the token like a password
Requirement for allAn active OpenClaw agent on a paid account, and a connected LLM key

What do you need before connecting an AI agent to WhatsApp?

An active OpenClaw agent, an API key for an AI model, and a phone with WhatsApp. Do not have an agent yet? The 5-step setup is in the guide to setting up an AI agent on Cloudways.

  • A paid account: according to the Cloudways knowledge base, managed agents are not available on a trial account.
  • An LLM key: without a valid key the agent will not reply, even if WhatsApp is connected.
  • A WhatsApp number: a dedicated number for the agent is better. I explain why below.
  • A phone connected to the internet: the connection works as a linked device, so the phone needs to connect from time to time so the link does not expire.

How do you connect OpenClaw to WhatsApp, step by step?

In seven steps, in the dashboard and on the phone. The button names are as they appear in the Cloudways knowledge base.

  1. Log in to the dashboard, and in the side menu choose Cloudways AI and then Managed AI Agents.
  2. Click the OpenClaw agent you want to connect.
  3. Go to the LLM & Channels tab, and in the side menu choose Channels.
  4. Under WhatsApp click Connect WhatsApp, and in the window that opens click Click To Generate QR Code.
  5. On the phone open WhatsApp: on iPhone Settings, on Android the three-dot menu. Choose Linked devices and then Link a device, and scan the code.
  6. Close the QR window. The status should change to Connected. It did not change? Click Sync.
  7. Send a test message to the linked number, for example “Hi, who are you?”. If the agent replies, everything works.

To disconnect: in the channel’s three-dot menu choose Disconnect. If you delete the linked device from the phone, the connection to the agent stops too.

Why use a separate WhatsApp number for the agent?

Because the agent sees the messages that arrive at the number. The OpenClaw documentation explicitly recommends a separate number: it creates a clear boundary between who is allowed to talk to the agent and everyone else, and avoids confusion in the chat with yourself.

Two more things from the documentation worth knowing:

  • Approving new senders (Pairing): by default, anyone the agent does not know needs your approval before the agent responds to them. Such a request expires after an hour.
  • Allowlist: you can restrict the agent so it replies only to certain numbers, in international format (for example +1555…).

Important to understand: according to the documentation, OpenClaw connects to WhatsApp through WhatsApp Web, not through Meta’s official WhatsApp Business API. For a personal assistant or a small team that is enough. For customer service at large scale, with message templates and conversation logs, consider the official API.

How do you connect OpenClaw to Slack?

You create an app in Slack, give it permissions, and paste two tokens into the agent. You need admin permission in the Slack workspace, or an admin who approves the installation.

  1. At api.slack.com/apps click Create New App, choose From scratch, give it a name and choose the workspace.
  2. Under OAuth and Permissions add the scopes: chat:write, im:history, im:write, app_mentions:read, channels:history, channels:read, users:read.
  3. Under App Home turn on the Messages Tab and tick that users can send messages.
  4. Under Socket Mode enable the mode and create a token with the connections:write scope. Save the token that starts with xapp-.
  5. Under Event Subscriptions enable events and add message.im and app_mention.
  6. Go back to OAuth and Permissions, click Install to Workspace, and copy the token that starts with xoxb-.
  7. In the Cloudways dashboard, in the agent’s channels, click Connect Slack, paste the two tokens into the Bot Token and App Token fields, and send a test message to the app in Slack.

A warning from the knowledge base: do not turn on Token Rotation in the Slack app. It makes the xoxb token expire every 12 hours, and the connection will drop. To use the agent inside a channel, invite it with /invite @app-name.

Black Friday80% off
80% off 2 months of managed hosting

The code BFCM802 takes 80% off your bill for the first two months (up to $200 off per month), including unlimited free site migrations. New customers only, and only until the offer ends.

The offer ends on December 4, 2026 at 23:59 (UTC+2).

Ends in—days—hours—minutes—seconds
Code:
Grab the 80% now

Start with a free trial, no credit card. Enter the code at checkout and check that it shows up.

After Black Friday: 30% off for 3 months with the code ASAEL. On a large server (above about $444 a month) ASAEL already saves more today. BFCM802 vs. ASAEL calculator

What can a small business do with a WhatsApp agent?

Mostly save routine work. According to the Cloudways OpenClaw page, the agent can answer routine messages, schedule meetings, manage recurring tasks and send reminders. Practical examples:

  • “Remind me every Thursday at 12:00 to send invoices to clients who have not paid.”
  • “Summarize this morning’s unread emails in three lines.”
  • “Track the price of this product and tell me if it drops.”

The agent understands whatever languages the model you connected supports. Recent models handle many languages well, but check the answers before you let it reply to customers on your behalf.

Common mistakes and how to fix them

The QR code does not show up or has expired: close the window, open Connect WhatsApp again, and generate a new code.

The agent does not answer on WhatsApp: check on the phone that the device still appears under linked devices, that the phone is connected to the internet, and that the LLM key is valid and has not run out of credits.

You want to move the number to another agent: a WhatsApp number is connected to one agent at a time. Disconnect it from the current agent first.

Slack worked and then stopped: almost always Token Rotation was turned on. Turn it off, create a new token and reconnect.

Frequently asked questions

How do you connect an AI bot to WhatsApp?

With OpenClaw on Cloudways: open the agent, go to LLM & Channels, click Connect WhatsApp and scan the QR code from Linked devices in WhatsApp. It takes under a minute.

Can I use my personal WhatsApp number?

You can, but the OpenClaw documentation recommends a separate number. That makes it clear who is allowed to talk to the agent, and the agent does not see your private conversations.

Is this the WhatsApp Business API?

No. According to the OpenClaw documentation, the connection works through WhatsApp Web as a linked device. For customer service at large scale, it is better to look at Meta’s official API.

How much does an AI agent for WhatsApp cost?

On Cloudways the managed server starts at $9.99 a month, as of 7 Nov 2026. On top of that you pay the AI provider by token usage. WhatsApp itself does not charge for this connection.

Why is the agent connected but not replying?

Usually a valid LLM key is missing, or the linked device was deleted from the phone. Check both, and click Sync in the channels tab.

Can the same agent connect to both WhatsApp and Slack?

Yes. According to the Cloudways knowledge base, you can connect several channels to the same agent, including WhatsApp, Slack, Telegram and Discord. Each channel connects separately in the channels tab.

Sources

Official source: How to Connect Communication Channels to Your Managed AI Agent on Cloudways (Cloudways Knowledge Base). This guide was written and checked by Asael Dreyer · Updated: 7 Nov 2026

Disclosure: this is an independent site, not the official Cloudways site. Some links on this site are affiliate links: if you sign up through them we earn a commission, at no extra cost to you. Full details

Picture of Asael Dreyer
Asael Dreyer

Hi, I'm Asael Dreyer, CEO of an SEO agency that runs hundreds of websites hosted on dozens of Cloudways servers.
Everything you will find here comes from hands-on experience, mine and my teams', straight from the field: from the guides to the recommendations. All to help you get the most out of Cloudways.

More about me →

Need help? Got a question about your server or this guide? Write to us and we will get back to you.

More guides on this topic:
מפריד
Thanks for your message!
We will get back to you soon.
Ready to get started?

Sign up with the coupon code ASAEL