Skip to main content

Set Variables

Set Variables configuration

Use Set Variables to save values that later nodes or conditions need. Variables can hold data from the contact, an earlier node, or a calculated Flow value.

See Flow Variables for the available variable types, syntax, and runtime ordering rules.

Name variables clearly, set them before a dependent node runs, and use them through the Variables control in node configuration. Avoid reusing one variable name for unrelated values.

Configuration and outcomes​

Add one or more key-value pairs. These variables are session-wide and may be overwritten later. Connect Variable Set to the next node.

Variables set by this node​

This node sets exactly the variables you define, so it has no fixed list of outputs.

Show how to reference them

Unlike other nodes, these variables are not prefixed with the node's name. They live in a shared variables group for the whole session, so a key named appointment_date is always:

{variables.appointment_date}

Things to keep in mind:

  • A value can itself contain variables, such as {contact.first_name} or the output of an earlier node. It is filled in when this node runs, not when the variable is read later.
  • Two Set Variables nodes that use the same key write to the same variable, and the later one wins.
  • The variables last for the current Flow session only. Use Update Contact to keep a value on the contact.

See Flow variables for how variables work across a Flow.

Use a stable naming convention, such as appointment_date or retry_count, and document the expected value format near the node that sets it. Set variables before the conditions or requests that depend on them.