How do I create a WhatsApp template?
Prerequisites: a linked WhatsApp Enterprise number. Every message that starts a conversation (booking notifications, campaigns, the first message to a new contact) needs a template approved by WhatsApp; replies inside the 24-hour window do not.
- Open System → WhatsApp from the sidebar, then open Message Templates and click the create button (Create your first template).
- In Create template fill in the Friendly name using lowercase letters, digits and underscores only (3–64 characters), pick the Language (Arabic or English) and the Category: Utility for booking confirmations, reminders and order updates, Marketing for offers and campaigns (campaign templates are always sent as Marketing), or Authentication for OTP codes.
- Under Header image choose No header or Image (Fixed image sent every time, or Dynamic image supplied at send time with a sample uploaded for approval), then Upload image.
- Write the Message body (up to 1024 characters). To personalise it click Add variable under Variables, give it a name (e.g. customer_name) and a sample value, then click the chip to insert it. Do not start or end the message with a variable, and do not leave a declared variable unused.
- Optionally add buttons under Buttons → Add button: up to 3 Quick reply buttons, or up to 2 Visit website / Call phone buttons with at most one Call phone (the two kinds cannot be mixed). For a URL button pick the Link target: Custom URL or one of Mahjoz's short links Payment link / Quotation link / Rating link.
- Check the Live preview on the side and click Create template.
The template appears in the list as Pending; WhatsApp reviews every template before it can be sent and the status becomes Approved or Rejected. Click Sync next to the template to refresh its status from WhatsApp; Last synced shows in the table.
Where do variable values come from? The sample value helps WhatsApp review the template. When you link the approved template to a notification, you choose in Bind positions which Mahjoz data fills each variable when the message is sent (see "Link an approved WhatsApp template to booking notifications").
Common mistakes: a friendly name with capitals or spaces, a variable at the start or end of the body, variables used in the text but not declared, mixing quick-reply buttons with link buttons, and adding more than one Call phone button to the same template. Templates are created from the dashboard only.