Set Value

Action text.badge.plus

action.set_value

Inject or override a variable in the workflow payload. The variable is set with a specific type (string, number, boolean, or JSON) and becomes available to all downstream nodes via {{variableName}} interpolation.

Useful for initializing constants, converting types, or assembling computed values mid-workflow.

Ports

DirectionNameData TypeDescription
InputInputAnyIncoming payload
OutputOutputAnyPayload with the new variable added

Configuration

FieldTypeDefaultDescription
keyTextVariable name to set (e.g., searchQuery)
typeDropdownstringValue type: String, Number, Boolean, or JSON
valueText AreaThe value to assign. Supports {{var}} interpolation. Visible when type is not boolean.
boolValueBooleanfalseBoolean toggle value. Visible when type = boolean.

Output Variables

Sets the variable named by key in the payload. All upstream variables are also passed through.

Example

Set an API endpoint before making a request: