Variables
Learn how to use variables in Flowise
Last updated
Learn how to use variables in Flowise
Last updated
Flowise allow users to create variables that can be used in the nodes. Variables can be Static or Runtime.
Static variable will be saved with the value specified, and retrieved as it is.
Value of the variable will be fetched from .env file using process.env
If there is an existing variable created, variable value provided in the API will override the existing value.
Variables can be used by the nodes in Flowise. For instance, a variable named character
is created:
We can then use this variable as $vars.<variable-name>
in the Function of the following nodes:
Besides, user can also use the variable in text input of any node with the following format:
{{$vars.<variable-name>}}
For example, in Agent System Message:
In Prompt Template: