Spaces

How to connect WhatsApp to an AI agent

There are two main routes for putting an AI agent on WhatsApp. One is WhatsApp's own Business Platform. The other is connecting your own account by QR code, which is how Spaces works. Here is what each involves, with WhatsApp's rules quoted, followed by a plain guide to choosing a route, setting it up and teaching your agent to answer like your business.

What an AI agent on WhatsApp actually does

An AI agent such as Claude, ChatGPT or Grok can read the messages customers send you, work out what they want, and reply in the same chat. For a small business that usually means answering the same handful of questions all day: are you open, how much is it, can I book, where is my order.

The agent does not live inside WhatsApp. It needs a connection between your WhatsApp number and the agent, and that connection is where the two routes differ.

Route 1: the WhatsApp Business Platform

WhatsApp's Business Messaging Policy says:

  • You may only contact people who gave you their number and opted in to hear from you.
  • You must respect all requests to opt out.
  • You may only start conversations using an approved Message Template.
  • You may reply without a template within the 24-hour customer service window, which opens and resets with each user message.
  • You may use automation when responding during the 24-hour window, but you must have prompt, clear and direct escalation paths. Examples: an in-chat transfer to a human agent, a phone number, email, web support, in-store visits or a support form.
  • Messages are priced according to WhatsApp's pricing policy.

This is WhatsApp's own route for businesses that message customers at scale. It suits larger teams that send template messages to people who opted in, such as order updates and reminders, and that are happy to work within the template and window rules.

Route 2: your own account by QR code (Spaces)

Spaces connects your own WhatsApp account by QR code and gives your agent an MCP server and REST API. The agent can read chats, reply, start chats and receive webhooks for new messages. This is quicker to set up, but it is not the Business Platform. Read the caveat above: WhatsApp's Terms prohibit bulk messaging, auto-messaging and non-personal use unless WhatsApp has authorised it.

The appeal for a small business is that nothing changes for your customers. They keep messaging the number they already have, you keep the WhatsApp app on your phone, and the agent works in the same chats. The risk is that your account stays under WhatsApp's Terms of Service, and any restriction or ban is yours to manage.

Which route suits your business

If youConsider
Want to send reminders or updates to a large opted-in listThe Business Platform, with approved Message Templates
Mostly answer messages customers send you on your existing numberYour own account by QR code, used for replies
Want to broadcast promotions to many numbersThe Business Platform with opt-in. Spaces is not for template broadcasts to large lists.
Are a small team that wants help quickly, without new numbersYour own account by QR code, after reading the caveat box
Cannot accept any risk to your numberThe Business Platform, or keep the agent to drafting while you send by hand

Good practice on either route

  • Lead with conversations the customer starts.
  • Get opt-in before you message someone first, and tell them how to stop.
  • Stop at once when asked.
  • Offer a way to reach a person.
  • Never send bulk or cold messages.

Which AI agents work with Spaces

Spaces works with the agent you already use. Each one connects to the same MCP server, https://api.spacesos.com/mcp, and signs in to Spaces in the browser. An API key header also works.

AgentHow it connects
Claude (web and desktop)Customize, then Connectors, then Add custom connector, and sign in to Spaces
Claude CodeOne claude mcp add command, then /mcp to sign in
ChatGPTTurn on Developer mode, create a connector with the Spaces URL, and choose OAuth
Grokgrok.com/connectors, then New Connector, then Custom
CursorAdd Spaces to its mcp.json file and sign in
Codexcodex mcp add, then codex mcp login
OpenClaw and HermesAdd Spaces in their config and run their MCP login command

The step-by-step pages for each one are on the agents page.

Setting up Spaces

  1. Sign up with your email and the 6-digit code Spaces sends. An agent can do this for you through the onboarding MCP server at https://api.spacesos.com/mcp/start.
  2. Add a card at checkout. Don't connect an account until checkout is finished.
  3. Connect WhatsApp: open the connect link and scan the QR code.
  4. Create an API key. It starts with spc_live_ and is shown only once, so store it safely.
  5. Add the MCP server https://api.spacesos.com/mcp to your agent, or call the REST API at https://api.spacesos.com/v1.

To scan the QR code, open the connect link on a computer, then on your phone open WhatsApp, go to Linked devices and point the phone at the code. If you have several numbers, connect each one. Each number is its own account.

Teach the agent your business

An agent answers well when it knows the facts and your rules. Give it something like this, with your own details:

You answer WhatsApp messages for Rosa's Kitchen, a 40-seat restaurant.
- Hours: Tuesday to Sunday, 12 till 10. Closed Mondays.
- Bookings: up to 8 people by message. Larger groups: pass to Rosa.
- Menu questions: answer from the menu below. Allergies: always pass to a person.
- Never promise a table without checking the bookings list.
- If someone is upset or asks for a refund, say a person will reply shortly and hand the chat over.
- If someone says stop, do not message them again.
- Keep replies short and friendly.

Names and details are examples. Update the notes whenever your hours, prices or menu change, so the agent never gives out old information.

An example conversation

This is what a booking might look like once the agent knows the rules above. Names and details are examples.

WhoMessage
CustomerHi, have you got a table for 4 tomorrow around 7?
AgentHi! Yes, we can do 7:15 tomorrow for four. Shall I book it under your name?
CustomerYes please, it's Daniel. One of us is coeliac, is that ok?
AgentBooked for Daniel, four people, 7:15 tomorrow. For the coeliac question I'll ask Rosa to reply so you get the right answer.
RosaHi Daniel, yes, we have several gluten-free dishes and a separate fryer. See you tomorrow!

The agent handled the routine part, then handed the allergy question to a person, exactly as its notes said. That is the hand-off WhatsApp's policy expects on the Business Platform, and it is good practice on any route.

Setting up the hand-off to a person

WhatsApp's policy for the Business Platform expects a clear way to reach a person, and customers expect it on any route. Decide three things before the agent goes live.

  • What the agent hands over: complaints, refunds, allergies, anything medical or legal, and anything it is unsure about.
  • What it says when it does: a short line such as "I'll ask Rosa to reply. She's usually back within the hour."
  • Who picks it up: one named person, or whoever is on shift. Once a person takes over a chat, Spaces keeps the agent out of it until it is handed back.

The limits Spaces keeps on WhatsApp

WhatSpaces' limit
Gap between messagesAt least 15 seconds
Messages200 a day per number
New chats5 an hour and 10 a day, after warm-up
First 24 hours after connectingNo new chats
Rest of week 1, week 2, weeks 3 and 43, then 6, then 8 new chats a day

Replies to people who message you are not held back by the warm-up. The same cold text cannot be sent to many people, and any message to someone who said stop is refused. These limits lower the risk. They cannot guarantee how WhatsApp will treat your number.

Summing up

The Business Platform is WhatsApp's route for messaging at scale, with opt-in, templates and a 24-hour window for replies. Connecting your own account by QR code is quicker and keeps your existing number, but WhatsApp's Terms prohibit auto-messaging unless authorised. Whichever you choose, lead with conversations customers start, give the agent clear notes, and keep a person within reach.

Who you message

Pricing

Plans from $19 a month

FAQ

What is the WhatsApp Business Platform?

It is WhatsApp's tool for businesses to manage customer conversations at scale. Its policy requires opt-in, approved Message Templates to start conversations, and allows free-form replies within a 24-hour customer service window.

Can an AI agent reply on the WhatsApp Business Platform?

WhatsApp's Business Messaging Policy says you may use automation when responding during the 24-hour window, as long as you have prompt, clear and direct escalation paths such as a transfer to a human agent.

How does Spaces connect WhatsApp?

Spaces connects your own WhatsApp account by scanning a QR code. It is not the WhatsApp Business Platform and is not affiliated with Meta or WhatsApp.

Does WhatsApp allow automation on regular accounts?

WhatsApp's Terms of Service prohibit bulk messaging, auto-messaging and non-personal use unless WhatsApp has authorised it.

Which AI agent should I use?

Use the one you already know. Claude, ChatGPT, Grok, Cursor, Codex, OpenClaw and Hermes all connect to the same Spaces MCP server, and the answers depend more on the notes you give the agent than on which one you pick.

Can I keep using WhatsApp on my phone?

Yes. With a QR-code connection your phone keeps working as normal, and the agent replies in the same chats you see.

Can the agent send promotions to my customer list?

No. Spaces' Terms forbid bulk unsolicited messages and it refuses the same cold text sent to many people. Template broadcasts to large opted-in lists are what the Business Platform is for.

Related

More articles

WhatsAppThe WhatsApp 24-hour window, explained5 Nov 2026 · 8 min readWhatsAppHow to connect ChatGPT to WhatsApp5 Nov 2026 · 11 min readWhatsAppHow to connect Grok to WhatsApp5 Nov 2026 · 8 min read