Variables
Learn how to use variables in Flowise
Flowise allow users to create variables that can be used in:
For example, you have a database URL that you do not want it to be exposed on the function, but you still want the function to be able to read the URL from your environment variable.
User can create a variable and get the variable like so:
$vars.<variable-name>
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:
User can create a variable from the UI as mentioned below, or pass the variable dynamically via API. The value will be automatically picked up and used.
Variable Type
Variables can be Static or Runtime.
Static
Static variable will be saved with the value specified, and retrieved as it is.
Runtime
Value of the variable will be fetched from .env file using process.env
Resources
Last updated