Skip to content

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 ​

VariableContains
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.byAdded in v1.2 How the person was found: customer_id, phone or none.
trigger.person.codeAdded in v1.2 Set only when something didn't line up: customer_id_conflict, bad_phone or bad_customer_id.
trigger.person.noteAdded in v1.2 The same problem, in a sentence.
contact.name, contact.waIdThe run's contact: name and WhatsApp number. Empty when the run is for no one.
contact.emailAdded in v1.4 The contact's email address.
contact.attributes.<name>, contact.tagsDetails 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.
nowThe current date and time.
execution.idThis run's ID, handy in messages to your support team.

Other start steps add their own fields under trigger:

Start stepFields
Message receivedtrigger.text, trigger.type, trigger.from, trigger.profileName
Button tappedtrigger.id, trigger.title
Flow completedtrigger.response
Scheduletrigger.firedAt

A variable that has no value becomes empty text. It never stops the step.

Changing a value ​

Add a pipe | after the name:

PipeDoesExample
default:"…"Uses this text when the value is empty{{ contact.name | default:"there" }}
upper, lower, trimChanges case or trims spaces{{ trigger.data.city | upper }}
numberTurns 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" }}
jsonWrites 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:

ValueCheck
{{ 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.

Flows documentation for v1.x (v1.7.2).