Variables
The Variables node assigns and maps values to workflow variables. Use it to extract data from previous step outputs, set constants, apply transformations, and prepare data for downstream steps. Variables set by this node are available to all subsequent steps in the workflow.
Before You Use This Node
| What you may need | Where to set it up | Why it matters |
|---|---|---|
| Values reused across many workflows | Global Variables | Store common values once, then map them into workflow variables when needed. |
| Reusable data lists | Datasets | Keep shared business data ready for mapping or lookup flows. |
Actions
| Action | Description |
|---|---|
variables:assign | Assign values to one or more workflow variables |
variables:assign
Maps input values to named workflow variables. Each mapping can reference a previous step's output, a literal value, or an expression.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
mappings | array | Yes | Array of variable mapping objects |
mappings[].name | string | Yes | Variable name to assign to |
mappings[].value | any | Yes | Value to assign. Supports variable references (\{\{step.field\}\}), literal values, and expressions |
mappings[].type | string | No | Expected type: string, number, boolean, object, array. Used for type coercion |
Example: Basic variable assignment
Example: Extract and restructure data
Example: Conditional value with expression
Connection
No connection required. This is a control flow node that operates on workflow-scoped variables.
Output
All assigned variables become accessible in subsequent steps via the \{\{variableName\}\} syntax.