Set Value
Actiontext.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
| Direction | Name | Data Type | Description |
|---|---|---|---|
| Input | Input | Any | Incoming payload |
| Output | Output | Any | Payload with the new variable added |
Configuration
| Field | Type | Default | Description |
|---|---|---|---|
| key | Text | — | Variable name to set (e.g., searchQuery) |
| type | Dropdown | string | Value type: String, Number, Boolean, or JSON |
| value | Text Area | — | The value to assign. Supports {{var}} interpolation. Visible when type is not boolean. |
| boolValue | Boolean | false | Boolean 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: