Build workflows
Use expressions
Read earlier outputs, select array values, and preserve data types.
Expressions read values using double braces. They are resolved when a node executes, so the value must already be available on that path.
Read a value
{{name}}
{{global.threshold}}
{{state.lastBalance}}
{{start.output.startTime}}
{{variable.output.customer.name}}Use the expression picker in a parameter field to browse available values. Node scope names distinguish repeated node types, such as variable and variable2.
Type {{ in a value field to open the menu, then choose the value you need. This walkthrough uses the first message example.
Unable to play this video. Open the video file.
Keep the original type
When the entire field is an expression, the result keeps its type. Surrounding whitespace is ignored. An expression that reads an array supplies an array; it does not become JSON text.
When an expression appears inside other text, the result becomes a string. Hello, {{name}}! is useful for a message. It is not the right way to pass an object to a field that expects an object.
Select an array item or object field
{{global.items[0]}}
{{index(global.items, 0)}}
{{index(global.settings, 'label', 'Untitled')}}index(source, selector, default) selects an array item or object property. The selector defaults to zero, and the default value is used when the selection is missing.
Append to a list
append(list, value) returns a new array with one value added at the end. It leaves the original list unchanged. An array value is added as one nested item; it is not flattened. A null list starts an empty list, which can be used as an initial State value. Other non-array lists and undefined values are invalid.
Initialize State with key batch and an empty List. In Update State's Value field, use {{append(state.batch, iterate.output.item)}} to save the previous batch plus the current item. Choose the State key and item from the picker. The saved array's length gives its count.
Use Sequential Iterate for this read-and-append chain so the next item reads the preceding write. Appending a Build instructions output adds one instruction value, regardless of how many instruction rows it contains. The dust cleaner uses this to count accounts in a batch.
Know the expression boundary
Expressions support reading properties, bracket selectors, literal values, index(), and append(). They are not arbitrary JavaScript. For arithmetic, mapping, filtering, or other transformations, use the Code node.
Braces inside a quoted expression string stay literal. Strings support escaped quotes, backslashes, standard JSON control-character escapes, and four-digit Unicode escapes.
An unavailable property resolves to an undefined value; inside text it becomes empty text. Invalid syntax or function arguments fail the node before it executes, with the parameter name and reason in its error. This stops the workflow by default. On nodes with an On failure setting, Continue ends the failing path and allows other work to continue. Inspect the upstream output, check spelling, and confirm that the producer ran on this path.
Try the first message example.