Making calls using Bolna
Batch Calling
Scheduling batches for your agent to call using APIs
Batch structure
- All phone numbers should include the country prefix in E.164 format
- All phone numbers should have
contact_number
as the header - All other variables can be included in the CSV file in separate coloumns
Exporting a CSV file from Excel or Google Sheets
In Excel, when you type a +
at the beginning of a cell, Excel interprets it as a formula.
To ensure the plus sign +
is retained when entering phone numbers with country codes,
please add an apostrophe ('
) before the plus sign.
Using APIs to manage and control batches
1. Create a batch for agent
Once the CSV file is ready, upload it using the /create
Batch API
2. Scheduling the batch
After receiving your batch_id
, you can schedule a batch using /schedule
Batch API
The scheduled date and time should be in ISO 8601 format with time zone.
3. Retrieving batch status
Check the status of the batch using /get_batch
Batch API
4. Retrieving all batch executions
Once the batch has run, you can check all executions by the agent using /executions
Batch API
Example Batch Application using the above flow with APIs
batch_script.py
Was this page helpful?