Native variables are variables that come pre-configured in Treble. These allow you to access important information in your conversation flows such as the country code of the customer’s phone number, the message used by your customer to start an inbound conversation flow, or even the current week number. Learn to use native variables to create personalized conversation flows.
Important: Native variables can be used directly in conditional blocks, without needing to have captured them previously in the flow.
time
)Note: The time is in GMT-0. If your business is in another time zone (for example, Colombia GMT-5), you must adjust the condition by adding or subtracting hours as appropriate. You can use this time converter to calculate local time.Usage example:
{{time}}
>= 13:00 and {{time}}
< 22:00, show support menu.weekday
){{weekday}}
>= 6, show special promotion message.{{weekday}}
<= 5, direct to regular support.{{weekday}}
>= 6, direct to weekend support.country_code
)+57
, +55
, etc.
{{country_code}}
= +57, show messages in Spanish (Colombia).{{country_code}}
= +55, show messages in Portuguese (Brazil).inbound
)inbound
variable with WhatsApp Linksinbound
, which captures the initial message sent by the user.
Scenario:
Support
.I want to buy
.Leave feedback
.{{inbound}}
variable will take exactly that value. You can use a conditional block at the beginning of the flow to route the conversation according to the inbound
value.
Conditional block configuration:
{{inbound}}
equals Support
→ Redirect to support flow.{{inbound}}
equals I want to buy
→ Redirect to sales flow.{{inbound}}
equals Leave feedback
→ Redirect to feedback flow.inbound
value.inbound
variable along with WhatsApp Links to create an intelligent conversation router in Treble.{{time}}
and {{weekday}}
to create rules like “only show promotions on Fridays after 6pm”.{{country_code}}
to adapt language, currency or agent according to the user’s country.{{inbound}}
to automatically route users according to the intention detected in their first message.