Variable fields
Each variable, configured in the agent’s Variables tab, has:| Field | Description |
|---|---|
name | The variable’s identifier, used to reference it in your prompt. |
type | string, number, boolean, or lookup. |
required | Whether the call can’t start without a value for this variable. |
description | A note describing what the variable holds. |
defaultValue | The value used when none is supplied. |
dataset / key | Used only for lookup-type variables — see below. |
Lookup variables
Alookup-type variable resolves its value before the call starts, by looking it up in a reference dataset using another variable as the lookup key. Use this when a call should pull in data — like account details or order status — that isn’t passed in directly but can be looked up from a value you do have, such as a phone number or customer ID.
Variables resolve once, before the call starts. If your agent needs to track data that changes during the call, use state variables instead.
Use variables in your prompt
Reference a variable by name with{{name}}, and branch your wording with conditionals:
Add a variable
Set its fields
Enter a name, type, and description. Mark it required if the call shouldn’t start without it, and set a default value if useful.
Configure lookup settings, if needed
For a
lookup variable, select the reference dataset and the key variable to look it up by.