Skip to main content

Template Variables

Variables are placeholder texts in messages that are dynamically replaced based on the information you've provided.

When you create a message with variables, Hoory translates it into the appropriate value.

variable list

If you send a message Hey {{ }}, how may I help you?, Hoory automatically picks the contact name and sends a message like Hey John, how may I help you?. This enables you to send personalized messages to the end user.

Note: Hoory supports variables in canned responses, macros, and automation.

variable demo

To use a variable, first type in two curly brackets {{ followed by a new message or a canned response. The variables' list will appear, and you can select the one you want to use.

The current list of template variables are:

conversation.idNumeric version of the conversation id
contact.idNumeric version of the contact id
contact.nameContact full name
contact.first_nameContact first name
contact.last_nameContact last name
contact.phone_numberContact phone number
agent.nameAgent full name
agent.first_nameAgent first name
agent.last_nameAgent last name
agent.phone_numberAgent phone number

What if the variable doesn't exist?

If you try to send an undefined variable, Hoory will show a warning message.


How to add fallback text?

When defining a fallback text, make sure you surround it with single quotes.

{{ contact.first_name || 'there'}}