Blocks
Variable
Store and manage variables
Store, retrieve, and manipulate variables within your workflow. Supports different data types, operations like increment/decrement, and variable scoping for complex workflows.
Block Preview
Variable
Store and manage variables
Usage
- Add the block to your workflow and connect it to the upstream step.
- Configure any required credentials or tokens in the inputs.
- Fill in required inputs and optional parameters for the run.
- Run a test execution, inspect outputs, and iterate before deploying.
- Deploy the variable block with monitoring enabled in production.
Inputs (UI)
Operation
dropdownLayout: half
Options: Set Variable, Get Variable, Increment, Decrement
Variable Name
short-inputPlaceholder: userCount, totalSales, currentUser
Layout: half
Variable Value
long-inputPlaceholder: Hello World, 42, {"name": "John", "age": 30}, [1, 2, 3]
Layout: full
Condition: operation = ["set","append","prepend"]
Data Type
dropdownLayout: half
Condition: operation = ["set"]
Options: Auto Detect, String, Number, Boolean
Increment By
short-inputPlaceholder: 1
Layout: half
Condition: operation = ["increment","decrement"]
Variable Scope
dropdownLayout: half
Options: Workflow, Global, Session, Temporary
Default Value
short-inputPlaceholder: 0, "", null, []
Layout: half
Condition: operation = ["get","increment","decrement"]
Persistent
switchSave variable across workflow runs
Layout: half
Encrypted
switchEncrypt sensitive variable data
Layout: half
Inputs (API)
operation
stringOptional
variableName
stringOptional
variableValue
stringOptional
dataType
stringOptional
incrementValue
numberOptional
scope
stringOptional
defaultValue
stringOptional
persistent
booleanOptional
encrypted
booleanOptional
Outputs
Primary response type:
{
"content": "string",
"variableName": "string",
"variableValue": "json",
"variableType": "string",
"operation": "string",
"previousValue": "json"
}