FlowsEditor

Variables

Insert dynamic values into flow cards and pass data between cards

Variables in a text card

Variables insert contact data, the time and earlier answers into your cards. Use them to personalise messages and to pass data between cards.

Syntax

Wrap a variable in double curly braces. Each variable has a namespace and a field.

Hello {{contact.first_name}}, welcome to our support!

In a card's text editor, type {{ to open the variable picker. Invalid references are highlighted.

Namespaces

NamespaceWhat it holdsExample
contact.*The contact's profile fields{{contact.first_name}}
conversation.*The current conversation{{conversation.title}}
organisation.*Your organisation{{organisation.name}}
system.*The current time and timezone{{system.now}}
lastMessage.*The last message in the chat{{lastMessage.text}}
flow.*Results of cards that already ran{{flow.cardId}}

Contact Variables

contact.* holds every profile field of the contact, system fields and custom fields alike. The name is the field key in snake case, so the picker always matches your own fields.

VariableDescription
{{contact.first_name}}First name
{{contact.last_name}}Last name
{{contact.email}}Email address
{{contact.phone}}Phone number
{{contact.language}}Language code
{{contact.lead_status}}Lead status

To see all keys, open Settings → People. Any custom field you add there is available as {{contact.your_field_key}}.

Older flows may use {{user.firstName}} or {{chat.title}}. These no longer resolve. Use {{contact.first_name}} and {{conversation.title}} instead.

Conversation Variables

VariableDescription
{{conversation.id}}Conversation ID
{{conversation.integrationId}}The integration this conversation belongs to
{{conversation.title}}Conversation title
{{conversation.unreadCount}}Number of unread messages

Organisation Variables

VariableDescription
{{organisation.id}}Organisation ID
{{organisation.name}}Organisation name
{{organisation.website}}Website URL
{{organisation.phone}}Phone number
{{organisation.email}}Email address
{{organisation.description}}Description

Time Variables

system.* has two variables: {{system.now}} for the current time and {{system.timezone}} for the timezone. Format the time with a filter.

TemplateResult
{{ system.now | date: "date" }}The date
{{ system.now | date: "time" }}The time
{{ system.now | date: "weekday" }}The day name

The time is taken when the card runs, not when the flow starts.

Last Message Variables

VariableDescription
{{lastMessage.text}}Text of the last message
{{lastMessage.deliveryStatus}}Delivery status of that message

Flow Variables

When a card that waits for or fetches data runs, it stores its result under flow with the card ID.

{{flow.674000000000000001}}                → the contact's answer to that card
{{flow.674000000000000001.variableName}}   → a named value from an API Call card
CardVariableWhat it holds
Questionflow.{cardId}The contact's text reply
Buttons and its variantsflow.{cardId}The selected button
AI Agentflow.{cardId}The agent's result
API Callflow.{cardId}.{variableName}One variable for each response mapping

A flow variable exists only after its card has run. A card can use the variables of the cards before it on its path.

Default Values

Add a default for a variable that might be empty.

Hello {{ contact.first_name | default: "there" }}

Was this page helpful?

On this page