Skip to main content
Free tool

AI WhatsApp Template Generator

Describe your message in plain English and let AI build a Meta-approved WhatsApp template, variables, buttons, and category filled in. Or pick from 10+ presets and build manually. Live preview, and API JSON ready to copy.

Template Category

Promotions, offers, re-engagement. Requires user opt-in.

Lowercase letters, numbers, and underscores only

Header (optional)

Message Body

149 / 1024 chars

Use {{1}}, {{2}}, etc. for variables. Use *bold* and _italic_ formatting.

Sample Variable Values

Used for preview only, not included in the API JSON

Footer (optional)

Buttons (max 3)

Quick Reply or Call-to-Action (URL)

Live Preview

B

Business

online

Your message header

Hi [Var 1],

Don't miss our biggest sale of the year! Get up to 50% off on all products.

Use code [Var 2] at checkout.

Offer valid till [Var 3] only.

Reply STOP to opt out

12:34
Shop Now
MARKETING

Meta API JSON

Ready to paste into Meta Business Manager

{
  "name": "my_template",
  "language": "en",
  "category": "MARKETING",
  "components": [
    {
      "type": "HEADER",
      "format": "TEXT",
      "text": "Your message header"
    },
    {
      "type": "BODY",
      "text": "Hi {{1}},\n\nDon't miss our biggest sale of the year! Get up to *50% off* on all products.\n\nUse code *{{2}}* at checkout.\n\nOffer valid till {{3}} only.",
      "example": {
        "body_text": [
          [
            "Sample 1",
            "Sample 2",
            "Sample 3"
          ]
        ]
      }
    },
    {
      "type": "FOOTER",
      "text": "Reply STOP to opt out"
    },
    {
      "type": "BUTTONS",
      "buttons": [
        {
          "type": "QUICK_REPLY",
          "text": "Shop Now"
        }
      ]
    }
  ]
}

More than an AI message generator

Most AI message generators just spit out text. Dunefox's AI template assistant builds the whole WhatsApp Business API template for you. Describe what you need in plain language , "order confirmation with customer name and order ID", "festive discount offer with a Shop Now button", or "appointment reminder with date and time", and it fills the template name, category, header, body with the right {{1}} variables, footer, and buttons, ready for Meta approval.

You can keep refining it conversationally ("make it shorter", "add a tracking link button") until it's exactly right, inside the Dunefox app, where you can also submit it to Meta and start sending. This tool gives you a free head start on the same idea.

WhatsApp Template Types Explained

Marketing

Used for promotions, offers, and re-engagement. Requires explicit opt-in. Meta reviews these most strictly due to spam risk.

Utility

Order updates, booking confirmations, account alerts. High open rates since customers actively expect these messages.

Authentication

OTP and verification codes only. Very strict format. Meta provides a standardized template that you fill with your code.

Next step

Send this template to thousands, in one click

You've built the message. Dunefox broadcasts approved templates to your opted-in customers, personalizes each one, and tracks every delivery and reply.

FAQ

Frequently asked questions about Dunefox

Still have a question?

Contact us. We will be happy to help you.

JD
SK
AM
What are WhatsApp message templates?

WhatsApp message templates are pre-approved message formats required for sending business-initiated messages through the WhatsApp Business API. Every outbound message sent outside an active 24-hour conversation window must use an approved template. Templates support text, media (images, videos, documents), interactive buttons (quick reply, call-to-action), and dynamic variables like customer names or order numbers. Meta reviews and approves each template before it can be used.

Can AI write my WhatsApp template for me?

Yes. Dunefox includes an AI template assistant: you describe the message you want in plain English, for example "order confirmation with customer name and order ID", and the AI generates the full template, including the name, category, header, body with the right variables, footer, and buttons. You can then refine it conversationally until it is exactly what you need. It works like an AI message generator built specifically for WhatsApp Business API templates.

Will AI-generated WhatsApp templates get approved by Meta?

AI helps you write templates that follow Meta's structure and formatting rules, which improves your chances of approval, but Meta still reviews every template against its policies (correct category, no prohibited content, valid variable usage). The AI assistant is designed around these rules, so it helps you avoid the most common rejection reasons. Final approval is always Meta's decision.

What is an AI message generator?

An AI message generator creates written messages from a short prompt or description, so you don't have to write from scratch. Dunefox goes further than a generic text generator: its AI builds complete, structured WhatsApp Business API templates, with variables, buttons, and the correct category. That are ready to submit to Meta and send at scale, not just a block of copy.

How long does it take to get a WhatsApp template approved?

Meta typically reviews and approves WhatsApp message templates within 24 hours, though many are approved within minutes. Templates that follow Meta's guidelines. No misleading content, proper variable usage, and clear opt-out options for marketing, are approved fastest. Rejection reasons usually include overly promotional language in utility templates, missing opt-out instructions, or content that violates Meta's commerce policies. This generator helps you create compliant templates that pass review on the first attempt.

What is the difference between Marketing, Utility, and Authentication templates?

Marketing templates are for promotional messages like product launches, offers, seasonal campaigns, and re-engagement messages. Utility templates are for transactional updates such as order confirmations, delivery notifications, appointment reminders, and account updates. Authentication templates are specifically for one-time passwords (OTPs) and verification codes. Each category has different pricing. Marketing is the most expensive, Authentication is the cheapest. Choosing the correct category affects both approval speed and cost.

Can I include buttons in my WhatsApp templates?

Yes. WhatsApp templates support two types of interactive buttons: Quick Reply buttons (up to 3) that let users respond with a single tap, and Call-to-Action buttons (up to 2) that can either open a URL or dial a phone number. Buttons significantly improve engagement rates, templates with buttons see 40–60% higher response rates compared to plain text. This generator includes a button builder to help you add interactive elements.

What are template variables and how do I use them?

Variables are dynamic placeholders in your template that get replaced with personalised data when the message is sent. They are formatted as {{1}}, {{2}}, {{3}}, etc. For example, "Hi {{1}}, your order {{2}} has been shipped" becomes "Hi John, your order #12345 has been shipped" when sent. You must provide sample values for each variable during template submission. Variables can be used in the header, body, and button URLs of your template.

How many templates can I create on WhatsApp Business API?

There is no hard limit on the number of templates you can create, but Meta recommends maintaining a clean template library. Templates that consistently receive low quality ratings or high block rates may affect your account's messaging limits. Best practice is to create focused, high-performing templates and retire ones with poor engagement. With Dunefox, you can manage, track, and optimise all your templates from a single dashboard.

What happens if my WhatsApp template gets rejected?

If a template is rejected, Meta provides a rejection reason. Common reasons include: using marketing language in a utility template, missing required opt-out text, using prohibited content categories, or having unclear variable usage. You can edit and resubmit rejected templates. This generator follows Meta's latest guidelines to minimise rejections. It warns you about common issues like missing opt-out text or incorrect category selection before you submit.

What is the Meta API JSON output from this generator used for?

The JSON output is a ready-to-submit payload for the WhatsApp Business API's template creation endpoint. You can paste it directly into Meta Business Manager under "Message Templates", or use it with your BSP's (Business Solution Provider's) dashboard like Dunefox. The JSON includes all required fields: name, language, category, components (header, body, footer, buttons), and sample variable values for Meta's review.

Can I use images or documents as WhatsApp template headers?

Yes. WhatsApp templates support four header types: None, Text, Image, and Document. Image and document headers require uploading a media handle through Meta Business Manager. You cannot include the actual file in the template JSON. This generator lets you select the header type so the correct JSON structure is generated. Media headers significantly increase engagement, especially for product showcases, invoices, and shipping labels.

How do I use formatting like bold and italic in WhatsApp templates?

WhatsApp supports basic text formatting using special characters: wrap text with asterisks (*bold*) for bold, underscores (_italic_) for italic, and tildes (~strikethrough~) for strikethrough. Code formatting uses backticks (`code`). These work in the template body and are visible in the live preview of this generator. Note: headers do not support rich text formatting, only the message body does.

What is a Quick Reply button vs a Call-to-Action button in WhatsApp templates?

Quick Reply buttons (up to 3 per template) let users respond to your message with a single tap, the tapped button text is sent as their reply. These are ideal for surveys, opt-in/out confirmations, and simple choices like "Yes / No / Maybe". Call-to-Action (CTA) buttons (up to 2 per template) open a website URL or dial a phone number when tapped. They are ideal for "Track Order", "Book Now", or "Call Us" actions.

Are pre-built templates in this generator already approved by Meta?

No. The templates in this generator are starting-point examples that follow Meta's best practices. They are not pre-approved. Each template must be individually submitted and reviewed by Meta for your specific WhatsApp Business account. However, templates built with this generator are structured correctly (correct JSON format, proper variable syntax, compliant button types) to maximise first-attempt approval rates. Avoid adding URLs, phone numbers, or overly promotional language to Utility or Authentication templates.

More free tools

No sign-up needed. Every tool below is free to use.