Variables are a critical part of Treble. They allow you to personalize messages and actions in your conversations. Additionally, they allow you to store information in your information systems or use it in different parts of a conversation flow.
customer_name
, customer_age
, customer_address
.{{ }}
, for example: {{customer_name}}
.customer_name
variable in a message, you just need to add it in the message.
customer_name
variable will be used in the welcome message. However, you can use as many variables as you need in a block:
{{email}}
and {{last_purchase_date}}
in a block where we want to confirm the customer’s information.
Name | Last purchase date | |
---|---|---|
John | john@gmail.com | 2024-01-01 |
Mary | mary@gmail.com | 2024-02-01 |
Peter | peter@gmail.com | 2024-03-01 |
Deploy an outbound conversation
section, we have two options to add our users:cellphone | country_code | customer_name | last_purchase_date | |
---|---|---|---|---|
1234567 | 58 | John | john@gmail.com | 2024-01-01 |
1234568 | 58 | Mary | mary@gmail.com | 2024-02-01 |
1234569 | 58 | Peter | peter@gmail.com | 2024-03-01 |
customer_name
, Email must correspond to email
, and Last purchase date must correspond to last_purchase_date
. If they don’t match, the conversation won’t be sent correctly.How to upload a CSV file?
{{variable_name}}
and are created as part of the template content.
latitude
and longitude
.help_type
and specified that the variable type is TEXT
.
Additionally, we can also configure the block to save the customer’s response as a variable when the block is an options list. In this case, the variable will be saved as the value of the option selected by the customer. In this case, the variable type will always be TEXT
.
customer_resp
.
help_type
and customer_resp
, we can use these variables in any block of our conversation flow. We just need to add them in the block where we want to use the information with their format: {{help_type}}
or {{customer_resp}}
.
{{help_type}}
is used in the welcome block to show the customer’s response. Represented by the yellow arrow.{{customer_resp}}
is used in the options list block to show the customer’s response. Represented by the green arrow.{{customer_name}}
we use this variable again in the next block to show the customer’s name. We will fill this variable with information from our information system.