Log inStart Free Trial
Meta Tech Provider

Automate WhatsApp with ChatGPT: create automations just by asking

To automate WhatsApp with ChatGPT, connect your WhatsApp Business number to Meta's Cloud API, add an MCP server with automation tools to ChatGPT, and describe the automation in plain words. ChatGPT creates it on your number, runs a test that sends nothing, and the automation then replies to customers on its own, while you keep using the WhatsApp Business app.

easyCoexistence adds your WhatsApp Business number to ChatGPT as a custom MCP server whose automation tools create, test and edit automations on that number, with fixed text, approved templates, buttons and branches, AI agents on your own key or your webhook.

19

8 automation tools (set_inbound_mode, list, create, update, delete, test, list runs, get run), 8 for AI agents, knowledge, files, 3 for conversations, contacts.

60

Most steps in one automation, branches included: a line holds up to 30, and branches nest 4 deep.

30

Keywords one automation can match; any one of them is enough, and capital letters do not matter.

Business, Enterprise/Edu

ChatGPT plans where custom MCP servers get full access on the web; Pro gets read and fetch permissions only.

readOnlyHint

ChatGPT treats tools without this annotation as write actions, which need your confirmation by default.

Up to 24 hours

Meta's review time for a new template, which matters when ChatGPT has to create the welcome template first.

What do you type, and what does ChatGPT do?

You describe the outcome and ChatGPT picks the tools. A typical request reads: "Create an automation: when someone writes to us for the first time, send the welcome_coupon template with their first name and the coupon BEMVINDO10."

ChatGPT calls list_numbers to get the number's connection_id and list_templates to confirm the template is approved and in which language. Then it calls create_automation with a First message trigger and a Send a template step, and runs test_automation on a sample message, which fills in the variables without sending anything. Its answer: "Done! I created and tested the automation on your number."

The next day Ana writes to the number for the first time. Within seconds she gets the template from your business number, with her name and the code BEMVINDO10 for 10% off, in the same thread you see in the WhatsApp Business app.

1You ask"When someone writes for the first time, send the welcome coupon"
2list_numbers, list_templatesFinds the number and the approved template
3create_automationFirst message trigger, Send a template step
4test_automationRuns the steps on a sample, sends nothing
5Ana writesShe gets the template with BEMVINDO10

What does the automation look like inside?

A trigger and a flow of steps, stored as JSON. create_automation also returns a link to the automation's page in the dashboard, where the same flow appears as a diagram you can edit by hand. The welcome coupon is one trigger and one step: params fills the template's body variables in order, so a body such as "Hi {{1}}! Welcome. Use the code {{2}} for 10% off your first order." receives the customer's WhatsApp profile first name and BEMVINDO10. Other step types slot into the same list: reply_text, send_file, ask (with buttons, waits for the answer), condition and ai_decide branches, agent, http_request, tag, handoff, wait (1 to 1,380 minutes) and stop, up to 30 in a line and 60 in all.

create_automation: the welcome coupon
{
  "connection_id": "8b0d6a52-1c3e-4f7a-9d21-5e4b7c9a0f13",
  "name": "Welcome coupon",
  "trigger": { "type": "message_received", "match": "first_message" },
  "steps": [
    {
      "type": "send_template",
      "name": "welcome_coupon",
      "language": "en_US",
      "params": ["{{first_name}}", "BEMVINDO10"]
    }
  ]
}

Which automations can you ask ChatGPT for?

Anything that fits one trigger and a flow of up to 60 steps on the number. The trigger is a message arriving, narrowed to a keyword, a first message or after hours, or left open to any message, or a contact getting a tag, or your own system calling the automation's URL. The steps reply with text, send an approved template or a picture or PDF, ask a question with buttons and wait for the answer, split into paths by rules or by meaning, hand the chat to an AI agent or to a person, call your webhook or any API, wait or stop. Only one automation answers a given message, and a first message outranks a catch-all, so when a first-time customer should get the coupon and an AI answer to their question, ask for both steps in the same automation. These requests map directly onto what create_automation accepts:

"Reply with our price list when a message mentions price or menu"Has keyword, Contains, two keywords; Reply with text
"When we are closed, say we open at 8 a.m."After hours: Timezone, Open on days, From and To; Reply with text
"Welcome first-time customers with the BEMVINDO10 template"First message; Send a template with body variables
"Answer questions about our menu with AI, briefly"Any message; Reply with AI on your saved key
"Pass messages to my n8n webhook and send back its reply"Any message; Call my webhook, reply within 20 seconds
"Two hours after a first message, send the follow-up template unless I answered"First message; Wait 120 minutes; Send a template

How do you know it works before customers see it?

Ask for a test, or press Test in the editor. test_automation runs the saved steps on a sample message: nothing is sent to anyone, but the AI step and your webhook really run, so you read the actual reply, and the run appears in the Runs tab marked as a test.

A test runs the steps whatever the trigger says, so check the trigger yourself; for keywords, the editor's Test it box tells you whether a sample message matches. A template step deserves two more checks, because the test fills the variables without contacting Meta: get_template_status should show APPROVED, and the template should need nothing but numbered body variables, with no named variables, no header picture or variable and no button with a variable.

Is the automation live as soon as ChatGPT creates it?

Yes, unless you say otherwise. create_automation switches the automation on by default, so it starts answering as soon as the number receives messages through easyCoexistence. To review it first, ask ChatGPT to create it switched off, test it, then turn it on; the On and Off switch in the editor bar does the same.

The number itself must send its messages through easyCoexistence. New connections start that way. A number whose messages go straight to your own server needs set_inbound_mode with mode managed, which removes that direct webhook destination, so add the same URL as a forward URL if your server should keep receiving the messages.

Which ChatGPT plan do you need, and will it ask before acting?

Creating automations writes to your account, so it needs a custom MCP server with full access: ChatGPT Business or Enterprise/Edu, added on ChatGPT on the web. On Business, only admins and owners create and publish it for the workspace. Pro connects custom MCP servers with read and fetch permissions only, so it cannot create automations. If easyCoexistence appears in the Plugins directory for your workspace, add it from there; otherwise add it as a custom MCP server.

By default ChatGPT asks you to confirm write actions, and it treats any tool without a read-only annotation as one, so expect a confirmation per tool call. You can remember your decision for a tool for the rest of the conversation.

What does ChatGPT need from you?

Three things only you can provide. An approved template for anything sent more than 24 hours after the customer's last message: ChatGPT can write one and submit it with create_template, and Meta's review can take up to 24 hours. An AI key for automations that reply with AI, pasted by you under AI keys in the dashboard, since no tool accepts keys. And a payment method on your WhatsApp Business Account for marketing templates such as a coupon, because Meta bills those messages to you.

The details help too: opening hours with the timezone, the exact keywords, the template name, what goes in each variable, and the text to send.

How to set it up

  1. Connect the numberClick Connect a number in the easyCoexistence dashboard and scan the QR code with the WhatsApp Business app. The app keeps working as before.
  2. Add easyCoexistence to ChatGPTOn ChatGPT on the web, open Plugins, choose +, then Add custom MCP server. Enter https://easycoexistence.com/api/mcp with OAuth, select I understand and want to continue, then Create as a plugin, and sign in.
  3. Describe the automationIn a chat, type @, pick easyCoexistence, and say what starts it, on which number, and what to send. Ask for it switched off if you want to review it before it goes live.
  4. Approve the calls and read the testConfirm the tool calls ChatGPT shows, then read its test result: which steps ran, what they produced and, for AI steps, the tokens used. Turn the automation on when it looks right.
  5. Watch the first real runsOpen the Runs tab on the automation's page, or ask ChatGPT why it did not reply to someone; it reads list_automation_runs and explains the skip reason.

Common mistakes

  • Trusting a passed test on a template step. The test fills the variables without contacting Meta, so a template still PENDING or REJECTED passes the test and fails on the first real customer. Check get_template_status first.
  • Putting the coupon in a copy-code button or using named variables. Automations fill numbered body variables only, so write the code in the template body, as {{2}} or as fixed text.
  • Assuming First message means a brand-new customer. It fires on a contact's first message after automations start on the number, and again after 30 days without a message from them, so regulars can get the coupon too.
  • Leaving the app's greeting message on. It does not sync to the API, so the app's greeting and your automation both answer a first message; turn one of them off.
Doing this with EasyCoexistence

The app stays on your phone, and an automation pauses on a chat when you answer it yourself. 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

Can I change an automation ChatGPT created?

Yes. Ask ChatGPT, which calls update_automation (fields you leave out keep their value, and new steps replace the whole list), or open it on the Automations page of the dashboard and edit the diagram by hand.

Does ChatGPT have to stay open for the automation to run?

No. The automation runs on easyCoexistence's servers when a message reaches the number. ChatGPT is needed only to create, change, test or explain it.

Can I do the same with Claude?

Yes. Claude gets the same tools: add https://easycoexistence.com/api/mcp under Customize, Connectors, Add custom connector, sign in, and ask in the same words. The Free plan allows one custom connector.

Do automations cost extra?

No. Automations are included, with no run cap. Template messages are billed by Meta to your WhatsApp Business Account, and AI replies by the AI provider whose key you saved.

Keep reading

Ready to get started?

Set up WhatsApp Coexistence in minutes, not months. The app keeps working on the phone.

Start Free Trial

Verified on