Log inStart Free Trial
Meta Tech Provider

WhatsApp marketing automation with templates and opt-in

WhatsApp marketing automation means sending approved marketing templates to people who opted in, then answering their replies automatically. Meta reviews each template, bills each marketing message to the business's own WhatsApp Business Account, and may limit how many marketing messages one person receives. A reply opens a 24-hour window in which automated answers, fixed or written by AI, can follow.

easyCoexistence connects the WhatsApp Business number you already use to Meta's Cloud API through Coexistence, so marketing templates you send, through your AI's send_template or your own system with the number's credentials, come from the number customers know, and automations answer the replies they bring.

2 conditions

Meta's opt-in rule: the person gave you their number, and you received their permission to receive your messages.

Mixed content

A template that mixes an order update or survey with promotional content is categorized as marketing.

131049

Error when WhatsApp holds back a marketing template because of per-user limits; wait at least 24 hours before resending.

131050

Error when the recipient stopped marketing messages from the business in the Offers and announcements setting.

+1 US

WhatsApp does not currently deliver marketing template messages to users with United States phone numbers.

250

Messaging limit of a new business portfolio: unique people reached outside a customer service window in a moving 24 hours.

What does WhatsApp marketing automation include?

Four pieces, and only one of them is the promotional message itself. First, permission: a record that each person agreed to hear from the business. Second, an approved marketing template, because a message a business starts must be a template once 24 hours have passed since the person last wrote. Third, the send, one person at a time through Meta's Cloud API. Fourth, what happens after: the replies, answered by automations or by a person, and opt-outs honored. The answers are where automation saves the most time, since a good offer brings questions.

1Opt-inThe person agrees to hear from you, and you keep the record
2TemplateA MARKETING template, reviewed and approved by Meta
3SendOne person per send, from your AI or your own system
4ReplyTheir answer opens a 24-hour window
5AutomationA keyword or AI reply answers; a person closes the sale

How do you collect opt-in for WhatsApp marketing?

Meta's policy asks for two things: the person gave the business their phone number, and the business received their permission to send messages. The opt-in must say the person is opting in, name the business and follow local law; since November 2024 it can be general rather than specific to WhatsApp. Meta lists SMS, a website form, a phone call with an IVR flow, and a signed paper form as accepted methods. On WhatsApp itself, a keyword automation can take the opt-in: a customer sends JOIN, a Has keyword automation set to "The whole message" calls your webhook, your system stores the consent with the date, and the {"reply": "..."} it returns confirms it in the chat. Contacts synced from the phone app are not opt-in on their own.

What makes a WhatsApp template a marketing template?

Its purpose. Meta's category guidelines put awareness, sales offers and coupons, retargeting, app promotion and relationship messages such as birthday greetings in MARKETING. A UTILITY template has to be non-promotional and tied to something the person did or asked for, such as an order or a booking; an order update that adds a discount becomes marketing. Meta reviews each new template, which can take up to 24 hours. Your AI can submit one with create_template and the category MARKETING, which needs a payment method on the WhatsApp Business Account, then check it with get_template_status until it reads APPROVED. Meta also offers marketing formats such as coupon code, limited-time offer and media card carousel templates.

How do marketing templates get sent, one person at a time?

Through the Cloud API, one message per recipient, from one of three places. easyCoexistence has no list, campaign or bulk-send feature: the audience and its opt-in records stay in your own systems.

  • An automation: a Send a template step goes only to the person whose message started the run, such as a coupon template for a contact's first message.
  • Your AI: ask ChatGPT or Claude to send an approved template to one number, and it calls send_template once for that recipient.
  • Your own system: a CRM, a store or an n8n workflow sends through the Cloud API with the number's credentials, within Meta's messaging limit.
  • Not the phone: broadcast lists become read-only on a Coexistence number, and templates go out only through the API.

Who answers when a customer replies to a marketing message?

Your automations, from the moment the reply arrives. A reply opens Meta's 24-hour customer service window, so fixed text and AI answers can go out, and marketing templates sent inside that window do not count toward the person's per-user marketing limit. Only one automation answers each incoming message, with keyword automations ahead of the catch-all, so the two common pieces fit together: a keyword automation on STOP, unsubscribe or sair that calls your webhook to remove the person and confirms it, and a Reply with AI step on everything else, with instructions that describe the offer and its terms and forbid discounts the template did not promise. When you answer a chat from the phone, automations pause on it, 4 hours by default.

Why do some marketing messages never arrive?

Meta checks each marketing send against the person, the business and the account, and some fail after the API accepted them. The status webhook then reports the reason, and these are the usual ones:

  • Per-user limit: WhatsApp holds back marketing messages to people less likely to engage, with error 131049. Resending within 24 hours returns more errors.
  • Stopped marketing: the person turned off your offers in Offers and announcements, with error 131050. Remove them from your list.
  • United States numbers: marketing templates are not delivered to +1 numbers with a US area code.
  • No payment method: Meta accepts the template and then drops it (code 141006); easyCoexistence's Sending status shows Blocked at Meta and emails you.
  • Messaging limit: a new portfolio reaches 250 unique people outside a window in a moving 24 hours, shared by its numbers.

Common mistakes

  • Treating the contacts synced from the phone app as a marketing list. Having someone's number meets only half of Meta's rule, and messages to people who never agreed draw blocks and reports.
  • Putting the coupon on a copy-code button and picking that template in an automation. Automations cannot fill a copy-code button yet, so write the code in the template's body.
  • Retrying a 131049 failure within the hour. Meta asks for at least 24 hours, and repeated attempts can block delivery to that person for up to a day.
  • Labeling an offer as UTILITY to get it through. Meta categorizes mixed and promotional content as marketing, and can change a live template's category.
Doing this with EasyCoexistence

It has no bulk-send tool: your audience and its opt-in records stay with you. Every number is monitored 24/7, with an email when Meta stops delivering its templates. 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 schedule a WhatsApp marketing message?

Yes, from your own system or an n8n workflow, which calls the Cloud API at the time you choose with an approved template, to people who opted in. Automations start when someone writes to the number, so the clock lives in the system that sends.

Is a welcome coupon a marketing message?

Yes. A discount or coupon code is a sales offer, which Meta's guidelines place in the MARKETING category, even when the customer wrote first. Sent by a Send a template step on a contact's first message, it lands inside the window that message opened.

Do I need a verified business to send marketing templates?

Not to start. A new business portfolio can reach 250 unique people outside a customer service window in a moving 24 hours. Business verification is one of Meta's paths to 2,000, and higher limits follow automatically with good quality and use.

Can I still use the app's own marketing tools after connecting?

Broadcast lists become read-only on a Coexistence number and new ones cannot be created. Meta lists the app's other messaging tools, marketing messages among them, as unchanged in the app and not supported on the Cloud API, so they stay separate from API sends.

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