Skip to main content
🎥 Prefer to follow along? Watch the walkthrough for this guide here: https://youtu.be/UuoblYCPRl4.

Bolna + Google Sheets: Call Reports and Triggers

End-to-end flow: set up a Google Sheet and webhook → connect that webhook to a Bolna agent → place a test call and watch execution data land in the sheet → optionally trigger new Bolna calls directly from the same sheet.

Prerequisites

Getting Bolna Calls Data in Google Sheet

Capture call execution data from Bolna by exposing a Google Apps Script Web App webhook and wiring it to your Bolna agent.
  1. Create the Google Sheet. Open https://sheets.new and name it something like Bolna Report.
  2. Open Apps Script. In the sheet, go to Extensions → Apps Script and optionally rename the project to Bolna Script.
  3. Add the webhook Apps Script code. This script handles POST requests from Bolna and appends execution data into the sheet (generates a tab named Calls with columns for timestamp, call ID, status, toNumber, start and end times).
For the exact payload structure from Bolna, refer to the executions API: https://www.bolna.ai/docs/api-reference/executions/get_execution.
  1. Deploy as a Web App. Click Deploy → New deployment. Select Web app as the deployment type. Use description “Web hook for Bolna calls,” set Execute as to Me, and Who has access to Anyone so Bolna can reach it. Click Deploy, authorize when prompted, then copy the Web App URL for use in Bolna.
Deploying the Web App may require granting the script permission to access your Google Sheet.
Treat the Web App URL as a secret webhook endpoint. Do not share it publicly.
  1. Connect the webhook in a Bolna agent. Log in to Bolna (https://platform.bolna.ai/login). Click New agent. Choose the prebuilt Announcement agent. Open the Analytics tab. Paste the Web App URL into Your webhook URL. Click Save agent.
  2. Place a test call and verify data. Click Get call from agent. In the Place outbound calls dialog, enter your phone number and click Place call.
⚠️ Trial accounts can only make calls to verified phone numbers. Verify your number first at https://platform.bolna.ai/verified-phone-numbers before placing calls.
If your number isn’t verified, you’ll see an error. After verification, place the call again; once the call completes, execution data will arrive automatically in your sheet.

Triggering Bolna Calls from Google Sheet

Reuse the same spreadsheet to initiate new Bolna calls by reading phone numbers from a sheet column and calling Bolna’s API via Apps Script.
  1. Prepare the sheet for outbound calls. Add a new tab (e.g., Calls) with the first column titled toNumber and list the phone numbers to call.
  2. Get the Agent ID and API key from Bolna. In your agent, click Copy agent id. Go to the Developers tab. Create a new API key and copy it.
⚠️ Keep your Bolna API key secret. Do not share it or commit it to source control.
  1. Create the triggerCalls Apps Script file. In Apps Script, add a new file (e.g., triggerCalls.gs) and paste the function below. Replace the placeholders BOLNA_AGENT_IDand BOLNA_API_KEY with your values.
  1. Run the function manually (first test). In Apps Script, select triggerCalls and click Run. Authorize if prompted. Bolna will call the numbers listed in toNumber, and the script writes call status and execution ID.
  2. Optional: Add a button in the sheet to trigger calls. In the sheet, go to Insert → Drawing. Draw a small rectangle to serve as a button. Click the drawing’s three-dots menu and choose Assign script. Enter triggerCalls as the function name. Clicking the button now runs triggerCalls and starts calls for the numbers in the sheet.
The button is a simple convenience. You can also add custom menus or time-based triggers if you prefer.
You can now view inbound call execution reports in Google Sheets and launch new Bolna calls directly from the same Sheet.