The Get Variable block
The Get Variable block retrieves the value of any variable defined by a Create Variable block anywhere in the flow. The Get Variable block then sends that value from its output port.
Output
Select a variable - When a variable is selected, this port sends the variable’s value.
Setup
You can add a Get Variable block directly to the canvas, or insert it inline within any block that takes variables as input. See Related blocks.
Select Select a variable and choose a variable from the dropdown list. The list is populated with variables created by Create Variable blocks in the flow.
A pin icon appears in any Get Variable block that you insert inline into a block that’s within a loop. To learn how variable pinning works, see Loops with external data.
Example
To see the Get Variable block in an example flow, check out Flow Snippets: Variables.
Related blocks
Any value that the Get Variable block can retrieve must first be defined by a Create Variable block somewhere in the canvas.
Numerous blocks allow you to insert the Get Variable block inline, including the Create with AI, Evaluate, If, List, Record, and Template blocks.
Related pages
For tutorials that use the Get Variable block, see the following: