Automate replies to Click-to-WhatsApp ad leads
Leads from Click-to-WhatsApp ads arrive as ordinary WhatsApp messages that carry the ad's details, so automations can answer them in seconds: a greeting on the first message, an AI that asks your qualifying questions, and a person who takes over the promising chats. A prompt reply also opens Meta's free entry point window, which can last up to 7 days.
easyCoexistence connects the WhatsApp Business number your ads point to with Meta's Cloud API through Coexistence, so automations and your own AI answer ad leads in seconds while you keep the app on your phone, and a Forward URL hands each lead's ad details to your system.
How long Meta's free entry point window can stay open, counted from the business's reply to a Click-to-WhatsApp ad message.
Marketing, utility, authentication and service messages are not charged by Meta while the free entry point window is open.
The free entry point applies to ad messages sent from WhatsApp on Android or iOS; desktop and web are not supported.
Object Meta adds to a message sent from a Click-to-WhatsApp ad: ad ID, headline, primary text, media and the click ID.
Unsupported-message error a Coexistence number may get on a first message, common right after an ad tap; it usually clears in seconds.
Default pause of automations on a chat after the owner answers it from the WhatsApp Business app, adjustable from 0 to 168.
How do Click-to-WhatsApp ad leads reach your automations?
As messages to your number, like any other. An ad created in Meta Ads Manager with WhatsApp as the message destination opens a chat with your business, usually with a prefilled message the person can edit and send. Meta delivers that message through the Cloud API with a referral object describing the ad, and on a number set to "Through easyCoexistence" the first matching automation answers it. The same chat shows in the WhatsApp Business app, so the team sees the lead arrive.
Which trigger catches ad leads?
Two options, and they can run side by side because keyword automations are checked first:
- Has keyword on the ad's prefilled message, Starts with or Contains a distinctive phrase like "summer offer": catches leads from that ad, returning customers included, and lets each ad get its own greeting.
- First message: catches anyone writing for the first time, including ad leads whose prefilled text was edited away, and anyone back after about 30 quiet days.
- Every message with an agent or Reply with AI: carries the conversation after the first answer, since the two triggers above match only the opening message.
How does your AI qualify an ad lead?
With an AI agent, or a Reply with AI step, on your own Anthropic, OpenAI or OpenRouter key, set on an Every message automation so it keeps answering as the lead writes back. Its instructions name the offer in the ad, the two or three questions that decide whether a lead is worth a call, and what to say when the lead is ready. An agent reads the last 20 messages of the chat by default, up to 40, a Reply with AI step the last 10, up to 20, and either answers at most 10 times per chat per hour unless you change the cap. A sample:
You answer people who tapped Bloom Studio's ad for the 8-week pilates
course. Be brief and warm: two or three sentences per reply.
Ask these, one at a time, in the customer's language:
1. Have you done pilates before?
2. Which neighborhood do you live or work in?
3. Mornings or evenings?
Facts you may use: classes in Pinheiros and Moema, R$ 480 for 8 weeks,
mornings 7-9, evenings 18-21. Never promise discounts or free classes.
When all three are answered, say: "Thanks! Someone from our team will
message you here today to book your trial class." If the customer asks
for a person at any time, say a person will reply here soon.How does a person take over a promising lead?
By answering in the WhatsApp Business app. The reply reaches easyCoexistence as an echo, and automations pause on that chat for 4 hours by default, adjustable from 0 to 168 under Advanced, so the AI never talks over the salesperson. To notice a lead without watching the phone, add a Notify me step, or a Hand to a person step that also pauses the bot, and you get an email; or add a Call my webhook step after the AI reply: it posts the message and the last 10 messages of the chat to your CRM or an n8n workflow that alerts the team. Return no reply field from that webhook, or the lead receives a second message after the AI's.
What does Meta's free entry point window change?
What you pay Meta for that conversation. When someone messages you from a Click-to-WhatsApp ad on WhatsApp for Android or iOS, a customer service window opens, and your answer must go out before it closes. Your first reply is not charged, and from the moment you send it the free entry point window runs up to 7 days, Meta's pricing page says; while it is open, Meta does not charge for marketing, utility, authentication or service messages to that person. Older guides describe 72 hours. The window belongs to the business and the user, shared by every account sending on that number. An automation answering within seconds makes the first reply on time.
How do you know which ad a lead came from?
From the referral object Meta attaches to the message: source_id is the ad ID, source_url its link, headline and body its text, ctwa_clid the click ID (left out for ads shown in WhatsApp Status), and welcome_message the greeting the ad showed. The Call my webhook step sends the message's ID, type, text and time but not the referral. For attribution, add a Forward URL on the number: forwarded POSTs carry Meta's original payload under "value", referral included, signed per number. Your system can then tag the lead and report results back to Meta through the Conversions API, which Meta's Coexistence guide points to for ad conversions.
How to set it up
- Set a distinctive prefilled messageIn Meta Ads Manager, give the ad a prefilled message with a phrase only that ad uses, such as "I want the summer offer".
- Create the greeting automationAdd a Has keyword automation, Contains "summer offer", with a Reply with text greeting that asks the first qualifying question. Save it with the switch Off.
- Add the AI on Every messageSave your AI key under "AI keys", then create an Every message automation with an agent (or Reply with AI) and the qualifying instructions, also saved Off.
- Test bothClick Test and send "Hi! I want the summer offer" and a follow-up answer in Try it. Your AI really runs; nothing is sent to anyone. Then switch both On.
- Add a Forward URL for attributionOn the number's page, under "Where incoming messages go", with Through easyCoexistence selected, save a Forward URL so your system receives the referral of each ad lead.
Common mistakes
- Running a long qualification on a First message automation with plain replies. It answers only the opening message, and the lead's second message finds no automation. Use Ask a question steps, which wait for each answer, or put an agent on Every message.
- Counting leads only in the Runs tab. A first message can arrive as unsupported with error 131060 and run no automation; check the app for those chats, as Meta advises.
- Expecting the referral in the Call my webhook payload. It carries the message text, not the ad details; use the Forward URL to receive Meta's full payload.
- Letting the AI improvise the offer. Write the ad's price and terms into its instructions, with a rule against discounts the ad never promised.
The number is monitored 24/7. Ad spend is paid to Meta, AI tokens to your provider, and our fee is 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 run Click-to-WhatsApp ads on a number that uses the WhatsApp Business app?
Yes. Meta's Coexistence guide notes that businesses onboarded with the app may run Click-to-WhatsApp ads and report purchase or lead signals through the Conversions API. The ad sends people to the same number, and replies from the API and the app share one chat.
Will the ad's greeting and my automation both send a message?
The ad's greeting appears in the chat when the person opens it from the ad, before they send anything; the automation answers after they send their first message. Write the automation's reply as the next step, not a second hello.
Do ad leads from a computer get the free entry point?
No. Meta's free entry point applies to messages sent from the WhatsApp app on Android or iOS; its desktop and web apps are not supported. Those conversations are billed at the usual rates for each message category.
Can the AI send leads a template days later?
Not on a schedule: there is no schedule trigger, and a Wait step holds at most 1,380 minutes. Your system can start an automation through the "Your system calls a URL" trigger that sends an approved template, or your AI can use send_template, to a lead who agreed to hear from you; inside the free entry point window, Meta does not charge it.
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