Variables

Variables in Workflows

Context: A workflow is composed of multiple nodes, which communicate with each other by passing input/output results dynamically. Each node processes its task and transfers the results to the subsequent node until the final output is generated.

What Are Variables? Variables act as dynamic data containers to store and transfer input/output results between nodes. They enable the seamless exchange of information and help resolve dependencies between nodes within the same workflow.

How to Use Variables

  • In Query Based Nodes (e.g., LLM Node, Knowledge Retrieval Node, Tool Node):

    • Variables can be referenced directly by typing @ within the query prompt.

  • In Condition Nodes:

    • Variables can be used in the if-else statements.

    • Click the condition field and select the desired variables from the list to define your conditions.

  • In Code Nodes:

    • Variables can be accessed within the Python code block by typing {{.

    • Use the autocomplete feature to select the required variables for your logic.

Last updated