Inserting Expressions
Learn how to insert dynamic expressions into automation messages, form defaults, and Idea Collection text.
Expressions pull workspace data into text or calculate a field’s value. You can use them to personalize an email or fill in a form default automatically. This page shows you how to insert expressions, choose available values, and handle missing data.
Read an expression
A Dynamic Expression, also called a dynamic variable, goes inside double curly braces: {{ expression }}.
For example, {{ step_4.variable_1 }} uses Variable 1 declared in step 4. The dot separates the numbered root (step_4) from the property (variable_1). Renaming the step doesn’t change its numbered root.
Choose where to use an expression
Where | What accepts expressions |
|---|---|
Send Email | The subject and body. |
Create Notification | The notification message. |
Post to URL | The URL, configured headers, and payload of the HTTP request. |
Form field | The Default Value editor for a supported field. |
Idea Collection | Title and Question accept translation expressions. Description supports dynamic expressions. |
Insert an expression
- In a supported field, select the button for inserting or editing a dynamic value. The expression editor opens. You can also open it by entering
{{in the field. - In the editor, enter a search term to narrow the list. You can also expand groups to browse the available values. When the search box is empty, Suggestions shows up to three relevant values, each with its source and type.
- Select a value to add it to the draft. In a field that mixes text and expressions, it goes where your cursor is. In a field that accepts only one expression, it replaces the draft.
- Select Done. The field now contains your expression. A field that mixes text and expressions can keep more than one.
Find the values available to your automation
The field and current action can limit which values you see. The trigger, earlier steps, and items from any surrounding loop also affect what’s available. Suggestions uses the field, trigger, earlier steps, and active loop to surface relevant values.
A Form Entry trigger provides the associated idea and the submitted answers. The Changed Phase trigger provides New Phase, the stage the idea moved into.
Write or fix an expression with AI
Write a new expression
- In the expression editor, select Write an expression with AI. Describe what you need opens.
- Under Describe the value you need, enter what the expression should return. When you accept the result in the editor, it appears in your draft.
- Select Done. The field now contains the expression.
AI uses the available values and the kind of result the field expects. The editor checks generated expressions the same way it checks ones you enter yourself. If the available values can’t answer your request, nothing is inserted.
Fix an invalid expression
- In the expression editor, select Fix with AI to send the invalid expression for repair. When you accept the repair in the editor, it replaces the invalid expression in your draft.
- Select Done. The field now contains the repaired expression.
Handle errors and missing values
You can’t save a draft with reported errors using Done or a keyboard shortcut. The editor checks syntax, function calls, and unknown value names. It also flags clearly incompatible results when the field expects a specific type.
An expression can be valid even when its value is missing during a run. Custom emails and notifications replace missing values with empty text. Use IFEMPTY(value, fallback) to supply a fallback when the value is empty, unavailable, or produces an error.
Common questions
Can I check what my expression returned after the automation ran?
To check an email expression after a run, add your address under Email Addresses in Send Email before the run. For an AI step, you can check what it received and returned in Runs; see Runs and Troubleshooting.
How do I build a link to the idea in an email?
To link to the idea, add a button to the email and use the trigger idea’s full URL as its destination. The link doesn’t grant access to the idea; see Constructing URL Links.
How do I show the collection question in each reader's language?
To localize the collection question, create a translation variable with the question written in each language you need. In Question, insert it from Localization; readers see the version that matches their profile language (Localization Variables).