Using variables

You may define reusable variables, that can be references in the agent’s prompt, welcome message or Tool parameters.

Defining variables

Variables are defined in ‘Variables’ field in the Agent configuration screen.

Use the “NAME = VALUE” format. Use multiple lines if you need to specify multiple variables.

For example:
customer_name = Lucy
api_key = 123456

Variables are automatically assigned a type: string, integer, float or boolean, based on the provided value. In the example above, customer_name variable is assigned string, and api_key is assigned an integer type.

Values of type string may be optionally enclosed in quotes, for example: sex = "male".

Using varables

To use variables in agent’s prompt / welcome message / Tool parameters, specify the variable name enclosed in curly brackets.

For example:
You are parking reminder assistant.
You are calling {customer_name} to remind that her parking will expire soon.

Double brackets are also supported, for example {{customer_name}}.

Variables propagation

In multi-agent topologies variables are automatically propagated to sub-agents. Therefore in most cases you will define variables at top-level agent and will still be able reference them at any sub-agent or corresponding tool.