Variable nodes
Read and write arbitrary keys in the workflow context
using dot notation. Values written here are visible to every later node as
{{ <key> }} and survive a suspend/resume.
Set variable
@wf::variables:set · VariableSetNode
| Field | Type | Notes |
|---|---|---|
key | text | Required. Dot path to write, e.g. order.status. |
value | json | Value to store. Supports {{ }}. |
Output: { "key": "order.status", "value": "shipped" }
Get variable
@wf::variables:get · VariableGetNode
| Field | Type | Notes |
|---|---|---|
key | text | Required. Dot path to read. |
default | json | Returned when the key doesn't exist. |
Output: { "value": <value or default> }
Increment variable
@wf::variables:increment · VariableIncrementNode
Adds amount to a numeric value (treating a missing / non-numeric current value
as 0) and writes it back.
| Field | Type | Default | Notes |
|---|---|---|---|
key | text | — | Required. Dot path to the number. |
amount | number | 1 | Use a negative number to decrement. |
Output: { "value": <new value> }
Append to variable
@wf::variables:append · VariableAppendNode
Pushes a value onto an array at key, creating the array if needed (a scalar
already there is wrapped into an array first).
| Field | Type | Notes |
|---|---|---|
key | text | Required. Dot path to the array. |
value | json | Value to append. Supports {{ }}. |
Output: { "value": <the full array> }
Remove variable
@wf::variables:remove · VariableRemoveNode
| Field | Type | Notes |
|---|---|---|
key | text | Required. Dot path to remove. |
Output: { "key": "order.status" }