Connect your AI to WhatsApp: ChatGPT, Claude or any AI on your WhatsApp Business number
To connect ChatGPT, Claude or another AI to WhatsApp, put your WhatsApp Business number on Meta's official Cloud API through Coexistence, so the app keeps working on your phone. Then choose a route: an MCP connector lets the assistant send messages and build automations when you ask, an AI-reply automation lets your own model answer customers, and webhooks hand messages to your own agent or n8n workflow.
easyCoexistence connects the WhatsApp Business number you already use to Meta's Cloud API through Coexistence, gives ChatGPT, Claude, Claude Code and Codex one MCP connector with more than 30 tools, and runs automations with fixed replies, templates, your own AI key or your webhook.
AI providers an AI-reply automation calls with your own key: Anthropic, OpenAI and OpenRouter.
In the easyCoexistence MCP connector, from list_numbers to create_automation, behind one OAuth sign-in.
Default pause on a chat after you reply from the phone app, settable from 0 to 168 hours.
Since then section 4.7 of Meta's terms bars general-purpose AI assistant providers, not businesses serving their own customers with AI.
Free service messages Meta gives each business number monthly; since 1 October 2026 it charges from the 1,001st.
WhatsApp's Business Messaging Policy allows automated replies and requires prompt, clear and direct escalation to a person.
What are the three ways to connect an AI to WhatsApp?
All three start from the same place: the WhatsApp Business number you already use, connected to Meta's Cloud API through Coexistence. After that, the difference is who starts the action and who writes the reply.
Ask your AI. Add an MCP connector to ChatGPT, Claude, Claude Code or Codex, and the assistant works on the number when you ask in the chat: it sends a message or an approved template, checks the number's health, creates templates and follows Meta's review, reads the chats and contacts kept for automations, and creates, tests and edits automations.
Let your AI answer customers. An automation with a Reply with AI step sends the incoming message, your instructions and the latest messages of that chat to your own model, on your own Anthropic, OpenAI or OpenRouter key, and sends the answer from your number.
Build your own agent. Messages reach your server or n8n as signed webhooks, and your code replies through the Cloud API, or through a Call my webhook step that sends back whatever reply your system returns.
Which way should you choose?
Choose by when the AI has to act. If you want help while you work, such as sending a booking confirmation, creating a template or asking why an automation skipped a chat, the connector is enough. If customers write at night or faster than you can answer, an AI-reply automation does the answering. If replies depend on your own data, such as order status or a booking calendar, hand the message to your system. Welcome, keyword and away replies need no AI at all.
The routes combine. The most common setup is asking ChatGPT or Claude to build the AI-reply automation, which then runs on its own.
| When it acts | What you need | |
|---|---|---|
| Ask your AI (MCP connector) | When you ask in the chat | ChatGPT Business or Enterprise/Edu on the web, a Claude plan, Claude Code or Codex |
| AI-reply automation | When a customer writes, day and night | An Anthropic, OpenAI or OpenRouter API key and your written instructions |
| Your own agent (webhooks) | When your code decides | A server or n8n workflow that verifies signed webhooks and calls the Cloud API |
How do you add the connector to ChatGPT, Claude, Claude Code or Codex?
Connecting the number usually takes under 2 minutes, and the connector needs one URL, https://easycoexistence.com/api/mcp, and an OAuth sign-in, so there is no API key to paste. In ChatGPT on the web, open Plugins, choose +, then Add custom MCP server, paste the URL, choose OAuth, accept the risk warning and select Create as a plugin. Full access, which sending and building automations need, is on ChatGPT Business and Enterprise/Edu; on Business only admins and owners create it, and Pro connects custom MCP servers with read and fetch permissions only.
In Claude, open Customize, Connectors, Add, Add custom connector, paste the URL, click Continue and Add, then Connect and sign in. The Free plan allows one custom connector, and on Team and Enterprise an Owner adds it under Organization settings, Connectors, before members connect.
# ChatGPT on the web: Plugins → + → Add custom MCP server
# Claude: Customize → Connectors → Add → Add custom connector
https://easycoexistence.com/api/mcp
# Claude Code (then start claude and run /mcp to sign in)
claude mcp add --transport http easycoexistence --scope user https://easycoexistence.com/api/mcp
# Codex (the login step is what makes the tools appear)
codex mcp add easycoexistence --url https://easycoexistence.com/api/mcp
codex mcp login easycoexistenceHow does your AI answer customers when you are not in the chat?
Through an automation it builds for you. ChatGPT and Claude act when someone asks them something in the chat; a customer's WhatsApp message cannot start them, because MCP works by request and response. So the assistant creates the automation with create_automation, checks it with test_automation, and from then on the automation runs on easyCoexistence's servers whether or not the chat is open.
Its Reply with AI step has five fields: Provider, Model (picked from the list your key loads), Instructions (up to 20,000 characters), Earlier messages it reads (0 to 20, default 10) and Longest reply (tokens), from 50 to 2,000, default 600. Replies go out within 24 hours of the customer's last message, as Meta requires for anything that is not a template; after that, only an approved template reaches the customer.
Which AI models can answer your WhatsApp?
Any model your key can reach. The Reply with AI step calls Anthropic for Claude models, OpenAI for GPT models, or OpenRouter, which routes to models from many labs, such as Gemini, Llama and DeepSeek. Once you save a key under AI keys, the Model field lists the models that key can use, and you can also type a model id.
Any other agent works through the Call my webhook step: an n8n AI Agent node, a LangChain or OpenAI Agents SDK agent, or a model you host yourself writes the reply and returns it as {"reply": "..."} within 20 seconds. Or skip automations and send through the Cloud API with the number's own credentials.
The key, the model and the bill are yours. easyCoexistence never charges for AI or marks it up, and keys are saved encrypted and shown afterwards only by their last four characters.
What happens in the WhatsApp Business app on your phone?
Nothing you have to relearn. Coexistence keeps the app, the chats and the history on the phone, and Meta mirrors messages between the app and the Cloud API, so a reply written by your AI appears in the chat thread on the phone. When you answer a chat yourself, your message reaches the system as an echo, and the automation steps back on that chat for 4 hours by default, set in Pause on a chat after I answer it (hours), from 0 to 168. Your phone replies also join the history the AI reads next time.
Group chats stay out of the API, and so do calls: voice and video calls keep working in the app, but the Cloud API does not carry them on a Coexistence number, so your AI answers in text, not on calls. Four app features turn off on a connected number: disappearing messages, view once and live location in one-to-one chats, and broadcast lists, where existing lists become read-only.
Is it official, and does Meta allow AI replies on WhatsApp?
It runs on Meta's official Cloud API, connected through Meta's own Coexistence flow by easyCoexistence, an independent Meta Tech Provider. No WhatsApp Web session, linked device or modified app is involved, and those are what get numbers banned in unofficial setups.
Meta's terms for the WhatsApp Business Platform, section 4.7, bar providers of general-purpose AI assistants from offering them on WhatsApp where the AI is the primary functionality, as Meta determines, a rule in force since 15 January 2026. A business answering its own customers with AI is not that case. WhatsApp's Business Messaging Policy allows automation when responding during the 24-hour window and asks for a clear path to a person, so every Reply with AI step carries an added instruction: when the customer asks for a person, or the AI cannot help, it says someone from the business will answer soon, and the first AI reply to a customer in a day opens by saying it comes from the business's automated assistant.
What does it cost to run your AI on WhatsApp?
Three separate bills, none marked up. easyCoexistence charges per connected number per month in seven bands: US$ 9 each for 1 to 5 numbers, US$ 7 for 6 to 25, US$ 5 for 26 to 50, US$ 3 for 51 to 100, US$ 2 for 101 to 200, US$ 1 for 201 to 2,000 and US$ 0.75 from 2,001, with all numbers paying the rate of the band the total falls in. Automations cost nothing extra and have no run cap.
Meta bills messages to your own WhatsApp Business Account: every number has a free tier of 1,000 service messages a month, and since 1 October 2026 Meta charges from the 1,001st; templates are billed per message, by category and the recipient's country. Your AI provider bills the tokens of each AI reply to your key: your instructions, the earlier messages it reads and the reply itself, which the run log shows as tokens in and out.
How to set it up
- Connect your numberIn the easyCoexistence dashboard, click Connect a number, log in to Meta's window with the account that manages your business, and scan the QR code with the WhatsApp Business app, version 2.24.17 or newer.
- Add the connector to your AIAdd https://easycoexistence.com/api/mcp as a custom MCP server in ChatGPT or a custom connector in Claude, or run the Claude Code or Codex command, then sign in with your easyCoexistence account.
- Save an AI key for automatic repliesOn the Automations page, open AI keys, choose Anthropic, OpenAI or OpenRouter, paste the key and click Test and save. Fixed replies, templates and webhooks work without one.
- Ask for the automationType @ in ChatGPT and pick easyCoexistence, or turn the connector on from Claude's + menu, then describe what should happen, for example: answer questions about our menu with AI, in short and friendly messages.
- Check the test and the runsRead the test result your AI reports: nothing is sent, but the AI really answers. Once real messages arrive, the Runs tab in the editor shows each step, its output and the tokens used.
Common mistakes
- Expecting ChatGPT or Claude to reply by itself. An assistant acts only when you ask in the chat; automatic replies come from an automation or your webhook, which the assistant can set up for you.
- Pasting an AI key into the chat. No tool accepts or returns keys: save them under AI keys in the dashboard, where they are tested, encrypted and shown only by their last four characters.
- Leaving the app's own greeting or away message on while an automation does the same job. Those app tools do not sync to the API, so both reply and customers get two answers; keep one.
- Connecting the AI through a WhatsApp Web bot or a modified app. Those sign in as a linked device or unofficial client, which WhatsApp's terms prohibit and which gets numbers banned.
Every number is monitored 24/7, with an email alert and the reason if it drops, the 14-day rule included. US$ 9 down to US$ 0.75 per number per month, falling as you add numbers, with the first 3 days free.
easyCoexistence is a multichannel API and MCP server that connects AI agents such as Claude and ChatGPT to WhatsApp, Instagram, TikTok, Facebook and more. On WhatsApp it uses Coexistence: the business keeps using its number in the WhatsApp Business app while the AI works through Meta's official API.
Frequently asked questions
Do I need to know how to code?
No. You ask your AI in plain words, or build the automation yourself in the visual editor, starting from examples such as Welcome message, Away message or Agent answers everything. The API and webhooks are there for developers who want them.
Can my AI read all my WhatsApp chats?
Only the chats easyCoexistence keeps. For numbers with automations on, the connector can list conversations and read one contact's messages (list_conversations, get_conversation) and update a contact, but only messages that arrived after automations were switched on. Message text is kept for the period you choose, 30, 90 or 365 days (90 by default), which also lets an AI reply read up to 20 earlier messages of that chat. Run logs, which show the message that started each run, are kept 30 days.
Does one connector cover several numbers?
Yes. One account and one connector URL cover all the numbers you connect, each billed as its own connection. Tools take a connection_id from list_numbers, so name the number in your request when you have more than one.
What happens if my AI key stops working?
If the provider refuses the key, the automations that use it pause with a note such as "Paused: your OpenAI key was refused", you receive one email, and they start again by themselves once you save a key that works.
Keep reading
Ready to get started?
Set up WhatsApp Coexistence in minutes, not months. The app keeps working on the phone.
Start Free TrialVerified on