Skip to main content

Variable

Sets a variable for the current run. Any step that runs afterwards can read it with $vars.

Properties​

PropertyRequiredDescription
Variable keyYesThe variable name, e.g. customerId
Variable valueYesThe value. Supports expressions; objects and arrays are kept as structured data

Behaviour​

  • Variables belong to a single run; every run starts without them.
  • Setting the same key again overwrites the previous value — for example on every Loop iteration.
  • The variables at each step are shown in the run page.

Output​

{ "key": "customerId", "value": "cus_123" }

Example​

  • Variable key: customerId
  • Variable value: {{ $nodes['Create customer'].responseBody.id }}

Later steps:

{{ $vars.customerId }}

Use cases​

  • Give an intermediate value a short, readable name.
  • Keep a value that several later steps need.
  • Track the last processed item inside a loop.