π°Using variables
Unleash the power of variables within your glif's workflow.
Last updated
Unleash the power of variables within your glif's workflow.
Last updated
Similar to using a variable within your spreadsheet program of choice, variables are a way to quickly and easily reference a longer block of text, an image, or something else generated by a previous block.
The name of the variable is determined by the title of the block.
Note: Changing the blockβs title does not automatically update the name of the variable. Variables within your workflow will be highlighted in red after a block name change, indicating that the variable name needs to be updated.
In the example below, this image block shows options to use variables from previous user input blocks within the glifβs workflow. The "multi1" variable is selected, which will generate an image based on the user's selection from the multipick field.
You can parse JSON into multiple variables using the JSON Extractor Block.
Most blocks allow using in variables in many of their parameters. With the GlifBlock, this also includes using a variable as the glif ID. This lets you e.g. use an LLM call to decide between multiple glif options.