How to design whatsapp template using form editor.
Handlebarsjs
language. You can see how the message will look in the preview section on the right side.
Once designed, save the WhatsApp template by clicking on the Save Draft
button. When you are ready, you can Publish Draft
by providing a name to the version. This will create a version in Pending Approval
state.
WhatsApp requires a template approval process, where every template has to be submitted to WhatsApp for approval, where WhatsApp reviews and either Approves or Rejects the message.
SuprSend handles the WhatsApp approval process for you. All you have to do is create a template on SuprSend while following WhatsApp template guidelines, and we’ll send an email to you as soon as WhatsApp approves / rejects the template.
Based on the approval status, the published template version’s state will move to Live
or Rejected
. Once the version goes Live
, you can use the template to send messages to your users.
Field | Description |
---|---|
Template Category | Category of the template as defined by WhatsApp. Choose the category which is most relevant for your message content. e.g. - if you are sending a message informing the user about his/her doctor appointment, select the category as Appointment Update. In case you are not able to find the relevant category for your message, select Alert Update |
Type | Type of the message template - MEDIA/TEXT . You can select one of the options. |
Header (Type - TEXT) | Header of the message shown in bold in your WhatsApp message Small message text box. You can add up to 60 characters in this fieldEmojis are not supported in header |
Header -> Media Type (Type - MEDIA) | Media type of the header - Document(.pdf) / Image (.jpg, .png) / Video (.mp4). You can select one the media types based on the type of content that you want to add in the message |
Header -> Media File URL (Type - MEDIA) | Add the Public URL of the document that you want to send. You can add dynamic URL by adding variables in the URL link, like this -http://s3.amazonaws.com/{{url_params}} or \{\{url\_link}} |
Header -> Document Name (Type - MEDIA) | Valid only for media type - Document (.pdf) This is the name of the document that will be visible to your user. Will be shown as “Untitled” if not added. You can add variable in media file as {{file_name}} |
Body | Large message text box. Can add multi-line texts. Use handlebarsjs to add variables. |
Footer | Small message text box. You can add up to 60 characters in this fieldVariables are not supported in footer |
Buttons | Button type to be added - Call to Action / Quick Reply. Select “None” if you don’t require buttons |
Action Buttons | There are 2 types of action buttons that can be added: 1. Call Phone Number Button- To initiate a Call Action. 2. Visit Website Button- To redirect users to a website. Add the URL where a user will go when they click on this button Only one variable is allowed in “Website URL” at the end of the URL link, like this - www.suprsend.com/{{page}} |
Quick Reply Buttons | You can add up to 3 quick reply buttons to take user input.Variables or emojis are not allowed in quick reply button |
Text Format | Method | Description |
---|---|---|
Italic | _text_ | To italicize your message, place an underscore on both sides of the text |
Bold | *text* | To bold your message, place an asterisk on both sides of the text |
Strikethrough | ~text~ | To |
Monospace | ```text``` | To monospace your message, place three backticks on both sides of the text |
Declaring Variables in the global 'Mock data' button
Using variables in the templates
handlebarsjs
to add variables in the template. As a general rule, all the variables have to be entered within double curly brackets: {{variable_name}}
If you have declared the variables in the global ‘Mock data’ button, then they will come as auto-suggestions when you type a curly bracket {
. This will remove the chances of errors like variable mismatch at the time of template rendering.Note that you will be able to enter a variable name even when you have not declared it inside the ‘Variables’ button. To manually enter the variable name, follow the handlerbarsjs guide here.Below is an example of how to enter variables in the template design. For illustration, we are using the same sample variable names that we declared in the ‘Templates’ section:{{var1.var2.var3}}
. Eg. to refer to city in the example above, you need to enter {{event.location.city}}
{{var1.[_index_].var2}}. Eg. to refer to
product_name of the first element of the array
array , enter
\{{array.[0].product_name}}
{{event.[first name]}}
Variables
button.
handlebarsjs
guideline.