Skip to main content

Set Vars

Type: set • Category: flow

Description

Set workflow variables

Parameters

NameTypeDescriptionRequiredDefault
valuesobjectno

Help

Overview

The Set Workflow Variables worker allows you to inject or update arbitrary key‑value pairs in the current workflow context.
By supplying an object of values, you can dynamically configure downstream steps without hard‑coding parameters. This is useful for financial market or data‑analysis pipelines where thresholds, symbols, or date ranges may change between runs.

Inputs

  • values (object):
    A JSON‑compatible object containing the variables you want to set.
    Each property name becomes a workflow variable, and its associated value is stored as‑is (string, number, boolean, array, or nested object).

Minimal Example Usage

{
"worker": "set_workflow_variables",
"inputs": {
"values": {
"ticker": "AAPL",
"start_date": "2023-01-01",
"end_date": "2023-12-31",
"adjust_for_splits": true,
"risk_threshold": 0.05
}
}
}

In the example above, the workflow will now have the variables ticker, start_date, end_date, adjust_for_splits, and risk_threshold available for any subsequent worker or script.