Skip to main content
The set node stores a value in the execution context. Use it to save computed values, store intermediate results, or create variables for use in subsequent nodes.

Configuration

Config Fields

Output

The stored value is also accessible via the key path in subsequent nodes.

Key Paths

Simple Keys

Access: {{user_id}}

Nested Keys

Access: {{user.profile.name}}

Array Index

Access: {{items[0]}}

Value Types

String Values

Template Values

Object Values

Array Values

Computed Values with Pipes

Examples

Store API Response

Store Computed Value

Store Timestamp

Store Complex Object

Store Conditional Value

Use with a preceding condition node or pipes:

Store Loop Item

Inside a loop, store the current item for later reference:

Initialize State

Set initial values at the start of a flow:

Accessing Stored Values

After setting a value, access it in subsequent nodes: Set node config:
Access in later nodes:

vs Transform Node

Use set for simple storage. Use transform when reshaping multiple values.