You can create the template while creating an Event with Whatsapp channel
enabled. You can easily create/update the template content by editing the event.
Message Type : Business initiated (Template Message) or User initiated
(Session Message)
Content Type: Type of the whatsapp template (text / media / interactive)
Template Name: Name of the approved template
Whatsapp Message: Message text
Header (Only for Media & Interactive)
Reply Buttons (Only for Interactive)
Custom Data: Key value map that will be passed to your notification. You
can use this to pass any additional data with the notification, like orderid,
username etc.
To pass dynamic or custom data in the template like invoice number, user name,
tracking link etc., you should wrap it within handlebars {{ user_name }}. Raven
uses Handlebars.js to
parse the template and all handlebar operations are supported. Following
Handlebars expressions are supported within templates:
Nested objects
#if, #each, #with
You will need to pass the value of the variables in the data object of
Send Event API.ExampleWhatsapp Template:
Copy
Ask AI
Hey {{user_name}}, Thank you for your Order Id# {{order.id}} of amount {{order.amount}}.{{#if premium}} Glad to have you as our Premium customer. {{/if}}