Documentation Index
Fetch the complete documentation index at: https://docs.masivo.ai/llms.txt
Use this file to discover all available pages before exploring further.
Template variables allow you to personalize content by inserting dynamic
values like a user’s name or unsubscribe link.
What are template variables?
Template variables are placeholders you can use inside email, push, or WhatsApp templates to automatically insert personalized content. For example, instead of writing a generic message like: Hi there! You can use a variable like: Hi{{customer.fullname}}!
When the message is sent, the variable will be replaced with the actual data of
each recipient, such as “Hi John Doe!”
Why use variables?
Variables help you:- Personalize your messages at scale
- Make emails, push notifications, and WhatsApp messages feel more human and relevant
- Increase engagement by showing context-aware content (like names, product info, or dates)
Where can you use variables?
Variables can be used in:- Email templates (subject, header, body, footer)
- Push templates (title and body)
- WhatsApp templates (header, body, footer, and buttons, depending on template category)
Common variable types
There are different variable categories available, depending on your use case:customer: Info about the recipient (e.g.{{customer.fullname}},{{customer.email}})global: General values like unsubscribe links (e.g.{{global.unsubscribe}})event: Data related to events or transactions (e.g.{{event.type}})
What happens if a variable is missing?
If a variable doesn’t have a value (for example, if a customer’s name is missing), the system might:- Leave the variable blank
- Show a default fallback if defined
- Or throw an exception