How to build a WhatsApp AI agent: the 3 ways that work in 2026
A WhatsApp AI agent can mean three different things: a bot that answers your customers, an assistant that works through your own chats, or a personal agent you text. Here is how each one works, what it needs, and the rules that apply.
· 9 min read
The quick answer
If customers should message a bot, build on the WhatsApp Business API and keep the bot about your business, because Meta no longer allows general purpose AI chatbots there. If you want AI to help with your own WhatsApp, connect your number to Claude or ChatGPT with an MCP server. If you want a personal agent you text from your phone, run OpenClaw or Hermes Agent on a spare number.
At a glance
| Decision | Customer bot | Assistant for your own chats | Personal agent you text |
|---|---|---|---|
| Who talks to the AI | Your customers | You, inside Claude or ChatGPT | You, inside WhatsApp |
| WhatsApp connection | Business API | Your number by QR code, or the Business API | A spare number by QR code, or the Business API |
| What it does | Answers questions, books, sends order updates | Reads and searches your chats, drafts and sends replies you approve | Runs tasks you ask for in a chat: reminders, research, coding |
| Typical tools | Meta Cloud API with your own code, n8n, or a chatbot platform | WhatSync or an open source WhatsApp MCP server | OpenClaw, Hermes Agent |
| Setup effort | Days: Meta business setup, templates, webhooks | Minutes | An hour or more, plus a machine that stays on |
| Main rule | Must be about your business, not a general chatbot | No bulk messages from a personal number | Use a separate number; the agent acts as that account |
Checked October 3, 2026. Meta's Business API rules and prices change; check Meta's current policy before launching a customer bot.
Three things people mean by a WhatsApp AI agent
Search for "WhatsApp AI agent" and you get three kinds of result mixed together. They need different setups, so it helps to decide which one you want before you pick tools.
The first is a customer bot: people message your business and an AI answers. The second is an assistant for your own WhatsApp: you ask Claude or ChatGPT who is waiting for a reply, and it reads your chats and drafts answers. The third is a personal agent you text: you message an AI on WhatsApp the way you would message a friend, and it does tasks for you.
1. A bot that answers your customers
This must run on the WhatsApp Business API, the official service Meta offers businesses. You get a number, Meta sends each incoming message to your server as a webhook, your code asks an AI model for a reply, and you send it back through the API. You can build that yourself, use a workflow tool like n8n, or use a chatbot platform that does it for you.
Two rules shape the design. Within 24 hours of a customer's last message you can reply freely; after that you can only send templates that Meta has approved, and Meta charges per message by country. And since January 15, 2026, Meta's Business API terms do not allow general purpose AI chatbots, the kind that will chat about anything. Bots for your own business tasks, like support, bookings and order questions, are still allowed.
If you are setting up the Business API for the first time, Meta's new WhatsApp Business Tools MCP lets a coding agent like Claude Code create the account, verify the number and write templates for you. We cover it in Meta's WhatsApp Business Tools MCP, explained.
Keep a human in the loop
Give customers a way to reach a person, and do not let the bot promise refunds, prices or delivery dates it cannot check.
2. An assistant that works through your own chats
This is for people whose work happens on WhatsApp: founders, agents, consultants, anyone with 30 groups and too many unread messages. You do not want a bot talking to your clients. You want an AI that can read your chats and help you keep up.
The way to do it is an MCP server, which gives Claude, ChatGPT or Cursor tools to read, search and send on your WhatsApp. You link your number with a QR code, like WhatsApp Web, and then ask in plain words: "who have I not replied to today?", "summarise what the site team group decided this week", "find the invoice Rahul sent last month", "draft a reply and show me before you send it".
WhatSync is a hosted server that does this with no install, in Claude, ChatGPT and their phone apps. If you would rather run it yourself, there are free open source servers. Our comparison of WhatsApp MCP servers covers both.
- Set it up in Claude: Claude WhatsApp guide.
- Set it up in ChatGPT: ChatGPT WhatsApp guide.
- Use it from Claude Code, Cursor or Codex: WhatsApp MCP server.
3. A personal agent you text on WhatsApp
Open source agents like OpenClaw and Hermes Agent run on your own computer or a small server and can use WhatsApp as their chat window. You link a number to the agent with a QR code, add your own number to an allow list, and from then on you text the agent from your phone and it replies there.
Both projects suggest a separate number for the agent, because the agent acts as whichever account you link. Link your main number and it can read and send from your real WhatsApp, which is rarely what you want. The machine running it has to stay on, since replies only work while the agent is connected.
Hermes Agent can also connect through the Business API instead of a QR code. If you go that way, remember Meta's rule against general purpose AI chatbots on the Business API applies to a bot other people can message.
- Step by step for OpenClaw: OpenClaw WhatsApp setup.
You can combine them
These are not exclusive. A small business might run a support bot on its Business API number, while the owner uses Claude with an MCP server to keep up with supplier groups on their own number. A personal agent like OpenClaw can also call a hosted WhatsApp MCP server as one of its tools.
Start with the problem you have today. If customers are waiting for answers, build the bot. If you are the one drowning in chats, start with the assistant.
Questions
- Can I put ChatGPT on WhatsApp?
- Not as a general chatbot on the Business API, because Meta stopped allowing that from January 15, 2026. You can build a bot for your own business tasks, or use ChatGPT with an MCP server to work through your own chats.
- Do I need the WhatsApp Business API for an AI agent?
- For a bot that answers customers, yes. For an assistant that works through your own chats, no: you can link your own number with a QR code, like WhatsApp Web.
- Can an AI reply to my WhatsApp messages for me?
- Yes. With an MCP server like WhatSync, Claude or ChatGPT can draft replies from the chat history and send them once you approve. Approve each one rather than letting it send on its own.
- Is it allowed to connect AI to my personal WhatsApp?
- Linking a device is a normal WhatsApp feature. What WhatsApp does not allow from a personal number is bulk or unsolicited messaging, so keep it to normal one-to-one use.
- Can I build a WhatsApp AI agent without code?
- For your own chats, yes: add WhatSync to Claude or ChatGPT and scan a QR code. For a customer bot, chatbot platforms and n8n reduce the code, but you still need to set up the Business API with Meta.
Sources
We checked official vendor pages and project READMEs, not other comparison posts, and say where we used news coverage instead. WhatSync publishes this article and is one of the options covered. External links use nofollow.
- respond.io on WhatsApp's 2026 AI chatbot policy: What the January 15, 2026 Business API rule bans and what it still allows.
- Social Samosa on the WhatsApp Business Tools MCP launch: News coverage of Meta's September 15, 2026 announcement: accounts, numbers, templates, sign-in.
- OpenClaw WhatsApp channel docs: Login command, dedicated number advice, dmPolicy and allowFrom, where the session is stored.
- Hermes Agent WhatsApp docs: Baileys bridge for a linked number, plus a separate Cloud API option.
- WhatSync WhatsApp MCP server: Setup for each AI app and the full tool list.
Keep reading
Use your WhatsApp from Claude, ChatGPT or any AI agent
Add WhatSync to your AI app, link your WhatsApp, and ask about your chats. Works with personal WhatsApp and the WhatsApp Business API.