The Create Variable block

Create Variable block

The Create Variable block creates a variable and assigns it a name and a value. The variable can then be referenced by one or more Get Variable blocks from anywhere in the flow. The variable's value comes from the block that's connected to the Create Variable block's input port. For example, you could connect a String block's output port to the Create Variable block's input port. Whatever text you enter in the String block will be assigned to the variable named in the Create Variable block. Or you could connect an HTTP Request block to a Create Variable block to assign the request's entire response to the variable.

Create Variable blocks are colored by default. Any Get Variable blocks that reference the variable also has the same color. When you click a Create Variable block that's referenced by a Get Variable block, a dotted line appears between them. The dotted line is the same color as the blocks. This can be useful when you're locating variables in your flow.

Input

Variable (number) - Accepts any data sent from a single connected block, including:

  • Text
  • A number
  • A JSON object
  • A boolean value
  • A list
  • An image

Setup

Click the variable's name in the block to edit it. To change the block's color, click the block, then click Style icon Change Color and select a new color. Any Get Variable blocks that reference the variable will update their name or color automatically.

Example

To see the Create Variable block in an example flow, check out Flow Snippets: Variables.

Last modified: 2025/07/07