Qikberry API Docs
SMSWhatsapp Cloud API
RCS for BusinessVMNVerifyIntegrations
SMSWhatsapp Cloud API
RCS for BusinessVMNVerifyIntegrations
Qikberry.AI
App
  1. Template messages
  • Introduction
  • Marketing Messages
  • Authentication Messages
  • Catalog Messages
  • Payment Messages
  • Receiving Messages via Webhook
  • Template messages
    • Overview
    • Components
  • Non-templates messages
    • Interactive
      • URL button
      • List buttons
      • Media carousel
      • Reply buttons
    • Address
      POST
    • Audio
      POST
    • Document
      POST
    • Contacts
      POST
    • Image
      POST
    • Location
      POST
    • Video
      POST
    • Text
      POST
    • Location Request
      POST
    • Reaction
      POST
    • Sticker
      POST
  1. Template messages

Overview

What is a WhatsApp Template Message?#

A WhatsApp Template Message is a pre-approved message format that businesses use to send messages to customers through the WhatsApp Business Platform.
Templates help businesses send important updates, notifications, and promotional messages in a structured way.
Before using a template, it must be reviewed and approved by Meta.
Example:
Hi {{customer_name}}, your order {{order_id}} has been confirmed.
When sending the message, the variables are replaced with actual customer details.
Customer receives:
Hi John, your order #12345 has been confirmed.

WhatsApp Template Structure#

A template can contain the following sections:
ComponentDescriptionExample
HeaderOptional section shown at the top of the message. Can contain text or media.Invoice Details / Product Image
BodyMain message content.Your order has been shipped
FooterOptional additional information.Thank you for choosing us
ButtonsOptional actions for customers.Visit Website / Call Now

Template Categories#

CategoryPurposeExample
MarketingUsed for promotional messagesNew offers, discounts, product updates
UtilityUsed for customer-related updatesOrder confirmation, delivery status
AuthenticationUsed for verificationOTP, login code

What are Variables?#

Variables are dynamic values that change for each customer.
They allow businesses to use one template and send personalized messages to multiple customers.
Instead of sending the same message to everyone, businesses can insert customer-specific details such as:
Customer name
Order ID
Appointment date and time
Tracking number
Invoice number
OTP
Variables are written inside: {{variable_name}}
Example:
Hi {{customer_name}}, your order {{order_id}} is ready.
Customer 1 receives:
Hi John, your order 1001 is ready.
Customer 2 receives:
Hi David, your order 1002 is ready.

Variable Types#

WhatsApp Business templates support two types of variables:
Positional Variables
Named Variables
Choose the variable type based on your business requirements. Both types allow you to personalize messages using dynamic values.

1. Positional Variables#

Overview
Positional variables use numbers as placeholders. Each variable is identified by its position in the template.
When sending the message, values are mapped to the variables in the same order.
Template Example
Hi {{1}},

Your order {{2}} has been confirmed.
Variable Values
VariableValue
{{1}}John
{{2}}ORD12345
Customer Receives
Hi John,

Your order ORD12345 has been confirmed.
When to Use
Use positional variables when:
The template contains only a few variables.
The variable order is simple and easy to manage.
You are working with existing templates that use numbered placeholders.
Advantages
Simple to create.
Easy to use for basic templates.
Supported across all template components that allow variables.

2. Named Variables#

Overview
Named variables use descriptive names instead of numbers. This makes templates easier to read, understand, and maintain.
Each variable clearly describes the value it represents.
Template Example
Hi {{customer_name}},

Your order {{order_id}} has been confirmed.
Variable Values
VariableValue
customer_nameJohn
order_idORD12345
Customer Receives
Hi John,

Your order ORD12345 has been confirmed.
When to Use
Use named variables when:
The template contains multiple variables.
You want the template to be easy to understand.
Different teams manage or maintain templates.
You want to reduce mapping mistakes.
Advantages
Easy to read.
Easy to maintain.
Improves template readability.
Reduces mapping errors.

Positional vs Named Variables#

FeaturePositional VariablesNamed Variables
Format{{1}}{{customer_name}}
IdentificationNumberDescriptive name
ReadabilityBasicExcellent
Easy to MaintainModerateYes
Best ForSmall templatesLarge or complex templates

Where Can Variables Be Used?#

Variables can be used in different parts of a WhatsApp template.
Template ComponentVariables SupportedExample
Header✅ Yes (Text Header only)Invoice {{invoice_number}}
Body✅ YesHi {{customer_name}}, your order is ready.
Buttons✅ Yes (Dynamic URL Buttons)https://example.com/order/{{order_id}}
Footer❌ NoFooter text is always static.
Note: Media headers (Image, Video, Document, and Location) do not use text variables.

Variable Naming Guidelines#

When creating templates, follow these best practices:
Use meaningful and descriptive variable names.
Keep variable names short and easy to understand.
Use lowercase letters with underscores (_) for better readability.
Ensure every variable has a value when sending the message.
Provide sample values while submitting the template for Meta approval.
Good Examples
VariableDescription
customer_nameCustomer's name
order_idOrder number
tracking_urlOrder tracking link
appointment_dateAppointment date
invoice_numberInvoice reference
Avoid
Incorrect ExampleReason
{{abc}}Not descriptive
{{value1}}Meaning is unclear
{{data}}Too generic
Modified at 2026-08-04 11:52:20
Previous
Receiving Messages via Webhook
Next
Components
Built with