Variables in workflows
Last updated
Last updated
In Lleverage, variables are used to pass data between nodes, allowing you to reference and manipulate outputs from previous nodes as you build more complex workflows. By using variables, you can dynamically access data, adjust workflow logic, and manage inputs and outputs across different nodes.
To insert a variable into a field, use curly braces ({{ }}
). This allows you to reference data from previous nodes within your workflow.
Example Usages
From a Trigger: You can reference data from a trigger by using the trigger’s name and field. For example, if you have a trigger that captures form data, you can refer to a field called name
like this:
From a Similarity Search Node: After running a Vector Store Similarity Search, you can reference its result using:
The syntax for variables in Lleverage follows a simple structure:
Start with the name of the node that produces the data.
Use a .
(dot) to append specific fields or properties of that node’s output.
For example:
This structure allows Lleverage to know exactly which data you're referring to, whether it's from a trigger, an API response, a similarity search, or any other node.
To make it easier to work with variables, Lleverage offers auto-complete functionality. As you start typing {{
in any field, you’ll get suggestions for available variables based on the nodes in your workflow. You can hit Enter or click the suggestion to auto-complete the variable.
This reduces typing errors and speeds up workflow creation.
Suggestions are context-aware, meaning they reflect the data that has been passed through your workflow.
To see what variables are available for use in your workflow, you can check the Input tab of any node. This tab lists all the variables that are accessible at that point in the workflow. Keep in mind that the workflow must be executed at least once for the system to populate these available variables, as it needs to process the previous nodes to understand what data is being passed through.
For database connection strings, these are managed through Secrets or Connections within your project. When setting up a database connection, you can select a string from a dropdown menu. However, if needed, you can also manually enter a connection string by clicking the icon next to the selection.