Lleverage Docs
WebsiteLegalPlatform
WebsiteLegalPlatform
  • Welcome
    • What is Lleverage?
    • Organisations
    • Projects
    • Members
  • Workflows
    • Workflows
    • General concepts
    • Nodes
      • Controls
      • Tools
      • Prompts
    • Variables in workflows
    • Workflow Versioning
    • Testing and deploying a workflow
    • Calling a workflow
  • Prompts
    • Prompts
    • Prompt Studio
    • Prompt Generation & Templates
    • Model Configs
      • Max Tokens
      • Temperature
    • Model Advisor
  • VECTORS & DATA SETS
    • Vector Stores
  • Connections
    • Models
    • Databases
  • Insights
    • Monitoring
    • Logging
  • Help, Subscription and Other
    • Release Notes
      • Version 0.1 - 15 July 2024
      • Version 0.2 - 6 August 2024
      • Version 0.8 - 23 September 2024
      • Version 0.9 - 7 October 2024
      • Version 1.0 - 28 October 2024
    • Support
Powered by GitBook
On this page
  • Using Variables
  • Auto-Complete for Variables
  • Checking Available Variables
  • Database Connection Strings

Was this helpful?

Variables in workflows

PreviousPromptsNextWorkflow Versioning

Last updated 20 days ago

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.

Using Variables

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:

    {{trigger.body.name}}
  • From a Similarity Search Node: After running a Vector Store Similarity Search, you can reference its result using:

    {{vectorStoreSimilaritySearch.data}}

Syntax

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:

{{nodeName.fieldName}}

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.

Auto-Complete for Variables

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.

Checking Available Variables

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.

Database Connection Strings

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.