All topics
Get started8Account, team & permissions44Units & fields70Records, views & tasks39WhatsApp & Cortex Chat68Email & social27Lead ads & distribution38Automations52Documents & quotes32Dashboards40Cortex AI18Developers & API12
Help Center·448 guidesAll topicsContact support

Variables: put record data in messages and fields

Press Insert a detail in any text of an automation to add a variable, which shows as a grey word. A variable is replaced by its value when the automation runs, and an empty variable prints as nothing.

7 min

Record fields

Variable
Value
{{field_name}}
The field’s value on the trigger’s record, such as {{name}}
{{relation.field}}
A field on a linked record, up to 2 levels, such as {{company.city}}
{{__assignee_name}}
The primary assignee’s name
{{__assignee_names}}
All the assignees, separated by commas

System and trigger

Variable
Value
{{today}}
Today’s date, in the run’s time zone
{{now}}
The date and time now
{{today + 3}} / {{today - 1}}
A date a number of days after or before
{{old_value}} / {{new_value}}
The previous and the new value in A field changes
{{admin_name}}
Who made the change

By trigger or step

Source
Variables
Messages
{{message_body}}, {{sender_name}} and {{sender_phone}}
Email
{{email.subject}}, {{email.from}}, {{email.from_name}}, {{email.body}}, {{email.to}}, {{email.mailbox}} and {{email.received_at}}
Wait for a reply
{{reply_body}} and {{reply_choice}}
A field stays the same for a while
{{stuck_since}}, {{time_in_value}}, {{field_label}} and {{value_label}}
A task is completed
{{task.title}}, {{task.type}} and {{task.completed_by}}
Another app sends data
{{webhook.path}}
Find a record
{{found.name.field}}
Generate a document
{{document.name.url}}, .name and .size

How do values show?

Type
Format
Date
YYYY-MM-DD
Date and time
YYYY-MM-DD HH:mm, in the run’s time zone
Option list
The option’s display name
Several values
Separated by commas

An empty variable

A variable with no value prints as nothing, and the client never sees the {{...}} text. The run log lists it under “Unresolved variables”.

In a record update, a value made only of empty variables isn’t written. In a WhatsApp template, an empty required variable blocks sending.

{{ variables in an email’s body are inserted safely, without breaking the formatting.

If something goes wrong

What you see
Why
What to do
The message arrived with a blank where the name should be
The field is empty on the record, or the variable’s name is wrong.
Open the run in Follow the run log, and retry or resume from the failed step and check “Unresolved variables”.
{{document...}} is empty
The generate step didn’t run on this path.
Put it before where it’s used, on the same path.

A real example

Shield Security Co.
The situation

Reminder messages were generic and impersonal.

What they did
  1. The text: “Hello {{name}}, the maintenance visit to {{site.name}} is on {{visit_date}}. Your engineer: {{__assignee_name}}.”
The result

Every client gets a message with their name, their site and their engineer.

A made-up company, to show the idea. The numbers are rounded.

Good to know

Relation variables go up to 2 levels.
Did this guide solve it?
If not, we’ll ask what was missing.
Open in Corteksa
Did this guide solve it?

We read every answer. To get a reply, use Contact support.