Log inStart Free Trial
Meta Tech Provider

Create WhatsApp templates with your AI, and fix rejections

An AI connected to your WhatsApp Business number through MCP can draft a template, submit it to Meta with create_template and follow the review with get_template_status. Each template needs a category (utility, marketing or authentication), numbered variables such as {{1}} with an example value for each, and Meta's approval, which can take up to 24 hours. A rejected template is corrected and resubmitted under a new name.

easyCoexistence connects your WhatsApp Business number to Meta's official Cloud API through Coexistence and gives your AI the template tools, list_templates, create_template, get_template_status and send_template, plus automations that send approved templates on their own.

24 hours

The longest time Meta says an approval decision on a template can take.

30 days

How long the name of a deleted approved template stays unusable for a new template.

512

Maximum characters in a template name, which takes only lowercase letters, digits and underscores.

250

Templates per WhatsApp Business Account on an unverified portfolio; verified ones with an approved display name get up to 6,000.

April 9, 2025

Since this date, a template submitted as utility that Meta finds promotional is approved as marketing instead.

10 per 30 days

Edits allowed on an approved template, with no more than one in any 24 hours.

How does your AI create a WhatsApp template?

In a few tool calls, after you describe the message in plain words. The AI checks what already exists with list_templates, so it does not duplicate an approved template. It then calls create_template with a name in lowercase letters, digits and underscores, a language code such as en_US, pt_BR or es_ES, a category and the components: an optional header, the body, an optional footer and buttons. Meta reviews the submission, and get_template_status reports APPROVED, PENDING or REJECTED for each language under that name. Once it is approved, send_template sends it, or an automation's Send a template step does.

1You describe itPurpose, language, the customer's name, any code
2create_templateName, language, category, components with examples
3Meta reviewsUp to 24 hours, with the decision sent by webhook and email
4get_template_statusAPPROVED, PENDING or REJECTED
5send_templateOr the Send a template step of an automation

What does a template request look like?

This is what an AI submits after a request such as: "Create a marketing template in English that greets the customer by first name and gives the code WELCOME10 for 10% off the first order." The body uses one positional variable, {{1}}, with an example value so the reviewer sees a real message. Text follows the variable, because Meta rejects a body that starts or ends with one, and the footer tells people how to stop offers. The coupon sits in the body text, where an automation can send it too.

create_template arguments for a welcome coupon
{
  "connection_id": "<from list_numbers>",
  "name": "welcome_coupon",
  "language": "en_US",
  "category": "MARKETING",
  "components": [
    {
      "type": "BODY",
      "text": "Hi {{1}}, welcome to Bloom Café! Use code WELCOME10 for 10% off your first order.",
      "example": { "body_text": [["Ana"]] }
    },
    { "type": "FOOTER", "text": "Reply STOP to stop offers" }
  ]
}

Which category should the template use?

The one that matches what the message does, because Meta checks the content against the category. Since April 9, 2025, a utility submission that reads as promotional is approved as marketing instead, and Meta can also change the category of an approved template later, with a template_category_update webhook and 60 days to appeal in Business Support Home. Marketing templates need a payment method on your WhatsApp Business Account before they can be sent, and Meta bills each category at its own rates, by country.

UTILITYFollows up on something the customer did or asked for: an order update, a booking confirmation, a delivery notice
MARKETINGAwareness, sales and retargeting: coupons, discounts, promo codes, offers, and any mix with a promotion
AUTHENTICATIONVerifies identity with a one-time code, in a strict fixed format

How do variables and examples work?

Positional variables are numbered from 1 in the order they appear, {{1}}, {{2}}, and Meta requires an example value for each when the template is created, as in "example": {"body_text": [["Ana"]]}. At send time the values go in the same order. Your AI fills them through send_template's components, which can also carry header media and button values, such as the code of a copy-code button.

Automations are narrower today: the Send a template step fills body variables by position, for example "params": ["{{first_name}}"], which puts the customer's first name in {{1}}. Templates with named variables, a header picture or variable, or a button with a variable cannot be sent by an automation yet, so put a coupon an automation will send in the body, not in a copy-code button.

Why does Meta reject templates?

Meta's review is partly automated and partly manual, and its documentation lists the common causes. Most of them can be seen before submitting, which is why it pays to ask the AI to check its draft against this list first:

  • Variable formatting: missing or mismatched curly braces, special characters such as #, $ or % inside a variable, numbers out of sequence, or a body that starts or ends with a variable.
  • Too many variables for the length of the text around them.
  • Policy: content that breaks the WhatsApp Business or Commerce Policy, abusive or threatening content, or a request for full sensitive identifiers; partial identifiers are allowed.
  • Duplication: body and footer wording that matches an existing template, a check authentication templates are exempt from.
  • A category that does not fit, rejected with the reason INCORRECT_CATEGORY, or text beyond a component's length limit.

How do you fix a rejection with your AI?

Start from Meta's reason. It appears in WhatsApp Manager, in Meta's email to your Business Suite admins and in the template status webhook, while get_template_status shows the REJECTED status itself. Paste the reason into the chat and ask the AI to rewrite the template against Meta's list: add text after a closing variable, add example values, renumber variables or move a promotion out of a utility template. Then ask it to submit the corrected version under a new name, such as welcome_coupon_v2, because the same name in the same language is refused as a duplicate (error 100, subcode 2388024).

The connector does not edit or delete templates. You can instead edit the rejected template in WhatsApp Manager and submit it again with samples, which also works as an appeal. If you delete an approved template, its name cannot be used again for 30 days.

Can the WhatsApp Business app send templates on a Coexistence number?

No. On a number connected through Coexistence the team keeps chatting from the app, but templates exist only on the API side, so they go out through send_template, an automation's Send a template step or your own code. That makes templates the way to reach someone whose last message is more than 24 hours old: from then on Meta accepts only pre-approved templates, while a typed reply works only inside the window. Template messages are billed by Meta to your own WhatsApp Business Account, by category and country, and easyCoexistence never marks them up.

Common mistakes

  • Sending a template right after submitting it. Until Meta approves it, the send fails with error 132001, the error for a template that does not exist in that language or is not approved.
  • Ending the body with the variable, as in "Your code is {{1}}". Meta rejects a body that starts or ends with a variable, so add a closing sentence after it.
  • Putting a coupon in a utility template. Meta approves it as marketing or rejects it, and either way it will not go out as utility.
  • Using a copy-code button for a coupon that an automation will send. Automations cannot fill button variables yet, so put the code in the body text.
Doing this with EasyCoexistence

The app stays on your phone, and every number is monitored 24/7. 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

How many templates can one account have?

Meta allows 250 per WhatsApp Business Account on an unverified business portfolio, and up to 6,000 on a verified portfolio with an approved display name. It also caps creation at 100 templates per account per hour.

Can I edit an approved template?

Yes, in WhatsApp Manager or through Meta's API, up to 10 times in 30 days and once in 24 hours. An edit can change the components and time-to-live but not an approved template's category, and it goes back through review. The connector does not edit, so your AI submits a new version instead.

Does one template cover several languages?

No. A name and a language together identify a template, so each translation is its own submission under the same name, with its own review. Ask the AI to submit the en_US, pt_BR and es_ES versions in one go; deleting a template by name removes all its languages.

Why was a template paused after approval?

Approval is not permanent. Meta pauses a template whose quality rating drops to the lowest level after negative feedback or low engagement: for 3 hours the first time, 6 hours the second, and the third time it is disabled. list_templates returns each template's quality score, so your AI can flag a decline before sends start failing.

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