Campaign launch
This article is part of a tutorial about creating an outbound call campaign using Tovie NLP.
- Telephony setup
- Script setup
- Campaign launch (you are here)
- Analytics
- Additional features
- Testing
In order to verify everything is working fine, follow along the following steps:
- Upload a list of clients to be called.
- Create a new telephony channel.
- Launch a call campaign to the numbers from the list.
Uploading a list of clients
From the account homepage, select the Phone numbers tab and create a new list of clients. Upload a table containing phone numbers in the first column and the corresponding client names in the second (if present):
phone | name |
---|---|
14155552671 | John |
12015550123 |
name
, should match the field names of the object expected to be returned by the $dialer.getPayload
method in the script.Creating a telephony channel
- Go back to your project, select the Channels tab and create a new channel under the Telephony section.
- Choose the previously created connection to Zadarma as your SIP trunk connection.
- Enable the Record calls toggle if you want the recordings of your calls to be saved in Tovie Platform.
- Confirm the channel settings and deploy the bot into the channel.
Call campaign launch
- Go to the Outbound call campaigns tab and create a new call campaign.
- Make sure you have enough minutes available for calls.
- In the campaign settings, specify the phone number list and the channel you have just created.
- Start the campaign.
The campaign will start at the time permitted by the call policy. On the same screen, you can press the Show report button to access the campaign report: how many calls are still in progress, how many have been finished and with what results. The report is updated in real time.
Adding new phone numbers
If you forgot to add all the required phone numbers to the initial phone number list, you do not have to create a new list and launch a separate campaign. Tovie Platform offers the Calls API for performing various operations with telephony, including the creation of new call jobs.
Access to the Calls API is protected with a token unique for every call campaign. You can get the token on the Outbound call campaigns tab by clicking either the icon next to the campaign name or > Copy API token. The host name is visible in the search bar.
This is an example request for adding a new number to the campaign:
curl --request POST 'https://platform.tovie.ai/api/calls/campaign/123456.789.mBoMyfZLZqKHIPKjFjWYfRw9hgfIV9InFC4bHGVw5ND/addPhones' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"phone": 15417543010,
"payload": {
"name": "Mary"
}
}
]'
Here:
platform.tovie.ai
is the host from where the campaign was launched;123456.789.mBoMyfZLZqKHIPKjFjWYfRw9hgfIV9InFC4bHGVw5ND
is the campaign token.
The HTTP request body is an array containing an arbitrary number of objects with the phone
and payload
keys. phone
corresponds to the first column in the phone number list, and payload
is analogous to the columns with additional data.
payload
will be identical to the return value of the $dialer.getPayload
method.The HTTP response is an array of all call jobs successfully created:
[
"123456789"
]
Now let’s see how to analyze the campaign results.