Variables
Lyntaris allows users to create variables that can be used in the nodes. Variables can be Static or Runtime.
Static
Static variable will be saved with the value specified, and retrieved as it is.
 (1) (1) (1) (1) (1).png)
Runtime
Value of the variable will be fetched from .env file using process.env
 (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png)
Override or setting variable through API
In order to override variable value, user must explicitly enable it from the top right button:
Settings -> Configuration -> Security tab:
 (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (2).png)
If there is an existing variable created, variable value provided in the API will override the existing value.
{
"question": "hello",
"overrideConfig": {
"vars": {
"var": "some-override-value"
}
}
}
Using Variables
Variables can be used by the nodes in Lyntaris. For instance, a variable named character is created:
.png)
We can then use this variable as $vars.<variable-name> in the Function of the following nodes:
- Custom Tool
- Custom Function
- Custom Loader
- If Else
- Custom MCP
.png)
Besides, user can also use the variable in text input of any node with the following format:
{{$vars.<variable-name>}}
Agentflow V2: built-in runtime variables
In Agentflow V2 (Agent Canvas), additional runtime variables are available in prompts and in the Condition node, for example: {{ question }}, {{ chat_history }}, {{ runtime_messages_length }}, {{ current_date_time }}, {{ loop_count }}, {{ file_attachment }}, and {{ $flow.state.key }}. They are documented in the Agentflow V2 – Runtime variables (Chat Context) section.
For example, in Agent System Message:
 (1) (1) (2) (1).png)
In Prompt Template:
.png)