Appearance
Variables
Any text setting in a step can include variables in double curly brackets. When the step runs, each variable is replaced with its value:
Hi {{ contact.name }}, your parcel {{ trigger.data.bookingId }} is out for delivery.Type {{ in a setting and the builder lists the variables you can use at that point. Added in v1.3 Or click the { } button at the right of the box: it lists the same variables, grouped by where they come from (the person, what started the run, saved values, earlier steps), and puts the one you pick where the cursor is.
What you can use
| Variable | Contains |
|---|---|
trigger.data.<field> | The data the run started with: a webhook's event, or a Manual step's example. Dots reach nested fields, like trigger.data.customer.name. |
trigger.person.by | Added in v1.2 How the person was found: customer_id, phone or none. |
trigger.person.code | Added in v1.2 Set only when something didn't line up: customer_id_conflict, bad_phone or bad_customer_id. |
trigger.person.note | Added in v1.2 The same problem, in a sentence. |
contact.name, contact.waId | The run's contact: name and WhatsApp number. Empty when the run is for no one. |
contact.email | Added in v1.4 The contact's email address. |
contact.attributes.<name>, contact.tags | Details and tags saved on the contact. |
nodes.<step>.<field> | What an earlier step returned, like an API call's answer or a form's answers. |
vars.<name> | Values saved by a Set values step. Each row of the step shows the variable it makes. Names use letters, digits and _. |
nodes.<step>.data.<name> | Added in v1.3 A value a Call an API step kept from the answer (under What to keep from the answer). With nothing listed there, nodes.<step>.data is the whole answer. |
flow.<field> | The answers to this workflow's own WhatsApp form. |
now | The current date and time. |
execution.id | This run's ID, handy in messages to your support team. |
Other start steps add their own fields under trigger:
| Start step | Fields |
|---|---|
| Message received | trigger.text, trigger.type, trigger.from, trigger.profileName |
| Button tapped | trigger.id, trigger.title |
| Flow completed | trigger.response |
| Schedule | trigger.firedAt |
A variable that has no value becomes empty text. It never stops the step.
Changing a value
Add a pipe | after the name:
| Pipe | Does | Example |
|---|---|---|
default:"…" | Uses this text when the value is empty | {{ contact.name | default:"there" }} |
upper, lower, trim | Changes case or trims spaces | {{ trigger.data.city | upper }} |
number | Turns text into a number | {{ trigger.data.amount | number }} |
date:"DD/MM/YYYY" | Formats a date (in UTC) | {{ trigger.data.eta | date:"DD/MM/YYYY HH:mm" }} |
json | Writes the value as JSON text | {{ trigger.data | json }} |
Using variables in If steps
If, Switch and Filter compare a variable with a value. For example, to treat a webhook call whose customer ID didn't match:
| Value | Check | |
|---|---|---|
{{ trigger.person.code }} | is not empty | → alert your team |
Comparisons that can't be made, like a word compared as a number, count as not matching.