Variables in Rounded are like in programming containers that allow you to store and manipulate data. In the context of voice agents, variables primarily serve two functions:
Some variables are configured by default: the caller’s number, the called number, the date and time the call started, and the call ID.
Before assigning values, variables must be declared to be recognized by the voice agent.
1. Click on the black “Variables” button (highlighted in red in the screenshot below).
2. Select “Add a variable” (highlighted in red in the screenshot below).
3. Provide the following details:
Source: a searchable field that indicates where the stored data comes from. Three possible values:
Once the variables are declared, you can assign values to them using the Call Context block (highlighted in red in the screenshot). This block allows you to send contextual data to the agent before the call starts, using a CSV file or an API.
You initialize variables from a CSV only for agents designed to conduct call campaigns.
This involves declaring variables that will be automatically retrieved from the CSV you upload to start a call campaign. To do this, press the ‘Add a variable’ button (circled in red on the screen below), then specify the variable associated with this data. To see how to launch a call campaign, see the Campaign section.
Variables can be initialized from API requests executed before the start of each call. Each API request allows you to initialize several variables simultaneously. To assign values to variables based on API calls, you must fill in the following parameters in the following section (highlighted in red in the screen below):
Once assigned, you can use a variable within {{ }}
to make its value available to the agent.
Ensure that your webhook endpoint is secure and can handle the expected load of incoming events to prevent any data loss or service interruptions.