Skip to main content

Variable

Sets a workflow-scoped variable that can be read in downstream nodes and is visible in execution logs.

Properties

PropertyRequiredDescription
KeyYesThe variable name
ValueYesThe value to assign. Supports expressions

Behaviour

The Variable node stores a value in the workflow's execution context under the given key. Variables are:

  • Scoped to the execution — each run of the workflow has its own variable state
  • Visible in logs — the variables snapshot at each node execution is shown in the execution detail log
  • Readable downstream — reference the variable's value from any node that runs after it

Example

Store the response body for later use:

  • Key: apiResponse
  • Value: {{ $nodes['HTTP Request'].responseBody }}

Later nodes can reference {{ $vars.apiResponse }} to read it back.

Use cases

  • Accumulating a result across multiple steps
  • Naming intermediate values for readability in expressions
  • Storing a computed value that several downstream nodes need