Using variables
The 'Variables' section allows you to define variables that can be used in the agent’s prompt or welcome message or when configuring the Tools parameters.
Specify the variables by using the “NAME = VALUE” value. Use multiple lines if you needed 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"
.
To use variables in agent’s prompt / welcome message, 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}}
.
For guidelines on configuring custom variables in tool parameters, see Default tool parameters.