Skip to main content

Set Node

What it does

Creates or reshapes an object by assigning fields from expressions, constants, or values from prior node outputs.

Inputs/config

  • Target key-value assignments.
  • Expression mode per field (literal vs evaluated).
  • Optional overwrite behavior for existing keys.

Outputs/branches

  • No matched_output.
  • Emits transformed object on default edge.

Example usage snippet

{
"id": "n_set",
"type": "set_node",
"config": {
"assignments": {
"orderId": "{{input.id}}",
"source": "partner-api"
}
}
}

Common pitfalls

  • Overwriting nested objects unintentionally.
  • Mixing literal and expression syntax inconsistently.
  • Building very large payloads when only a subset is needed.