Set/Get Variable

Note: Lyntaris documents Agentflow V2 as the primary builder. Use Variables and Flow State on the canvas for values you would previously have wired through Set/Get variable-style nodes in older Flowise layouts.

Set Variable

If you are running a Custom Function, or LLM Chain, you might want to reuse the result in other nodes without having to recompute/rerun the same thing again. You can save the output result as a variable and reuse it for other nodes that are further down the flow path.

Inputs

  • Input: Accepts string, number, boolean, json, or array from any upstream node.
  • Variable Name: The name you assign to the stored variable (e.g. var1).
  • Show Output (Advanced): When set to True, the saved variable value is included directly in the Prediction API response, letting you observe runtime variable states alongside your standard outputs.

Output

  • Output: Passes the stored value downstream so the flow can continue.

Get Variable

You can retrieve the variable value from the variable name at a later stage by referencing this created variable in your subsequent node configurations or prompt templates.

Inputs

  • Variable Name: The name of the previously stored variable to retrieve.

Output

  • Output: Returns the stored value as string, number, boolean, json, or array.

results matching ""

    No results matching ""