convoup Docs
Docs / Core Concepts / How Templates Work

How Templates Work

WhatsApp business-initiated messages must use a pre-approved template. This page explains template structure, components, and placeholders.

Template Structure

A template is a fixed message skeleton with {{1}}, {{2}} placeholders - only the dynamic values change per send.

A template has up to 4 components:

ComponentPurposeDynamic?
HeaderTitle at the top (text, image, video, or document)Yes - text placeholders or media URL
BodyMain message content with {{1}}, {{2}}...Yes - text values
FooterSmall text at the bottom (e.g. "Powered by Convoup")No
ButtonsCall-to-action (URL suffix or quick reply)Yes - URL path or reply text

Example Template: test_welcome_template

template
Header: Welcome to {{1}}!
Body: Hi {{1}}, your account is ready. Your OTP is {{2}}.
Footer: Powered by Convoup
Buttons: [Visit Website] (dynamic URL: https://example.com/{{1}})

In this example:

How Placeholders Work

Placeholders are numbered starting from {{1}}. Each component has its own independent placeholder numbering:

Creating Templates in Convoup

  1. Go to Templates in the Convoup dashboard
  2. Click Create Template
  3. Define your header, body, footer, and buttons
  4. Submit for Meta review
  5. Once approved, the template is available for sending

You never interact with Meta's template system directly - Convoup handles all Meta API compliance for you.

Template Approval Flow

graph LR A[Create Template] --> B[Submit for Review] B --> C{Meta Review} C -->|Approved| D[Available for Sending] C -->|Rejected| E[Fix & Resubmit] E --> B

Template Categories

CategoryUse CaseExamples
TRANSACTIONALOTP, invoices, alerts, remindersLogin codes, billing notifications
MARKETINGPromotions, offers, product updatesSale announcements, new features

What Happens When You Send

  1. You provide a template name and parameter values
  2. The SDK builds a payload matching the template's component structure
  3. Convoup sends the request to the Meta WhatsApp Cloud API
  4. Meta validates the template exists and is approved
  5. Meta delivers the message to the recipient

If the template name is wrong or the parameter count doesn't match, the API returns an error before attempting delivery.

Next Steps