Topcalls can fill your call data warehouse without code. The "When a Call Ends" trigger fires after every call, failures and voicemails included, and an action for Snowflake, Google BigQuery, Postgres or Supabase writes one row per call. Databricks works through two routes. Topcalls AI calls start from $0.25 a minute, depending on the country called, billed by the second. This guide covers the fields you get, the setup for each warehouse and the flows we did not test.
Key Takeaways
- The "When a Call Ends" trigger fires after every Topcalls call, failures and voicemails included, and can be limited to one campaign.
- Ready actions write one row per call: Snowflake Insert Row, Google BigQuery Create Row, Postgres Insert Row and Supabase Create Row.
- Databricks has no ready connector. Write to Lakebase with the Postgres action, or send SQL to the Statement Execution API with an HTTP request.
- Every payload carries call_id, duration in minutes and a recording link. Failed calls leave the disposition, summary, transcript and recording empty.
- Each flow run counts as one Integrations run, and each account includes 10,000 runs a month.
- We did not run any of these flows against a live warehouse for this post, so test one campaign first.
What call data does Topcalls send when a call ends?
Topcalls sends one JSON payload per finished call. It holds the IDs of the call, campaign and lead, the phone number, the outcome, the duration in minutes, a summary, the full transcript and a link to the recording. The field names below come from the sample payload of the Topcalls trigger.
| Field | What it holds |
|---|---|
| call_id, campaign_id, lead_id | IDs for the call, its campaign and its lead. Use call_id as the row key. |
| phone_number, from_phone_number | The number called and the number it was called from. |
| status, call_status | Whether the call completed or failed, and the phone result: completed, no-answer, busy, failed or dispatch_timeout. |
| answered_by | Who picked up: human, voicemail or unknown. |
| disposition, is_conversion | The outcome label, such as Appointment Booked, and whether it counts as a conversion for the campaign. |
| duration | Call length in minutes. The sample shows 2.4, about 144 seconds. |
| started_at, end_at | When the call started and ended. |
| call_summary | A short text summary of the call. |
| transcript | A list of turns. Each has an id, a role (assistant or user), the text and a timestamp. |
| recording_url | A link to the recording file. |
| analysis | The fields your campaign's analysis schema returns. The sample shows call_outcome and sentiment. |
| metadata | What was passed in when the call was created. The sample shows lead_name and lead_email. |
On a failed call, disposition, call_summary, transcript and recording_url are empty and error_message says what went wrong. The sample also shows lead_name and lead_email inside metadata, and that block holds only what you passed in when the call was created. Check a real payload before you map those two to columns.
How do voice agents connect to external APIs and databases?
A Topcalls voice agent reaches your database after the call through Integrations. A flow starts on a trigger such as When a Call Ends, then runs actions in order. You build it once, turn it on, and it runs for each finished call. The same payload can also go to your own server as a webhook.
The setup is the same for every warehouse below:
- Start a flow with the Topcalls trigger When a Call Ends. Pick one campaign, or leave the field blank for all campaigns.
- Add the action for your warehouse and connect your account to it.
- Map one payload field to each column. Create the table first, with one column for each field you plan to keep.
- Turn the flow on, place one test call and read the row it wrote.
All of it sits under Topcalls Integrations, which connects Topcalls to 764+ tools. If you would rather receive the JSON on a server you run, Topcalls also sends a webhook when a call ends. The webhooks guide has the setup, and voice AI webhooks, APIs and function calling explains the trade-offs.

How do you send call data to Snowflake?
Add the Snowflake action Insert Row after the When a Call Ends trigger and map one payload field to each column. Insert Row writes one row into a table you choose, so each finished call becomes one row. Create the table first.
Two other Snowflake actions help. Upsert Row inserts a row, or updates the existing one when a match column has the same value. Map call_id as the match column and a repeated delivery cannot create a second row. Run Query executes SQL you write and returns the rows, which suits a MERGE statement or a check after the insert.
How do you send call data to Google BigQuery?
Add the Google BigQuery action Create Row. It creates a single row in a BigQuery table and loads the column fields from the table schema, so the form shows the columns you already defined. Create the table first, then map the payload fields.
The transcript is a list of turns, so decide before you build how it is stored. One column holding the whole transcript as JSON or text is the simplest choice. The action Run a Query runs SQL on BigQuery when you need to reshape the rows afterwards.
How do you send call data to Postgres or Supabase?
Use the Postgres action Insert Row, or the Supabase action Create Row. Both write one new row into a table. The Postgres connection has an Enable SSL option, which you need for hosts that require SSL. Supabase also has Upsert Row, which inserts or updates a row, so call_id can act as the key there too.
Postgres is also the way into other products that speak the Postgres protocol. That is how the next section reaches Databricks.
How do you send call data to Databricks?
Topcalls has no ready Databricks connector. You use one of two routes from the same trigger: the Postgres action Insert Row into a Databricks Lakebase table, or an HTTP request to the Databricks Statement Execution API. We read the Databricks documentation for both this week and did not run either flow.
Route 1: Lakebase through the Postgres action
Databricks describes Lakebase as a fully managed Postgres database integrated into the Databricks platform. Its authentication page lists native Postgres password login for applications that cannot refresh credentials every hour, and says those passwords do not expire after one hour.
Two catches come from the same page. Password connections are disabled by default for new Lakebase projects, so you enable them first. And every connection must use SSL (sslmode=require), so tick Enable SSL in the Topcalls Postgres connection. Then add the Postgres action Insert Row, point it at your Lakebase table and map the payload fields.
Route 2: the Statement Execution API through an HTTP request
The Databricks Statement Execution API runs SQL on a SQL warehouse. You send a POST request to /api/2.0/sql/statements with the warehouse ID, the SQL statement and, as needed, a catalog, a schema and parameters. In the SQL, a parameter is a name after a colon, and the parameters array holds the matching name, value and optional type.
In Topcalls, add the HTTP action Send HTTP request, set the method to POST, use your workspace address in the URL, choose Bearer Token under Authentication and set the body type to JSON. Databricks recommends OAuth tokens for automated tools, and for personal access tokens it recommends ones that belong to a service principal. A body for one call looks like this:
{
"warehouse_id": "<your SQL warehouse ID>",
"catalog": "main",
"schema": "calls",
"statement": "INSERT INTO call_log (call_id, disposition, duration_min) VALUES (:call_id, :disposition, :duration_min)",
"parameters": [
{ "name": "call_id", "value": "<call_id from the trigger>", "type": "STRING" },
{ "name": "disposition", "value": "<disposition from the trigger>", "type": "STRING" },
{ "name": "duration_min", "value": "<duration from the trigger>", "type": "DOUBLE" }
]
}The catalog, schema and table names here are placeholders. Databricks says parameters keep values apart from the SQL text, so use them instead of pasting transcript text into the statement.

Which flows did we not run, and what should you test?
We did not run any of these flows against a live Snowflake, BigQuery, Postgres, Supabase or Databricks account for this post. What we checked: the action names on the Topcalls integration pages, the field names in the trigger's sample payload and the two Databricks pages linked above. Treat the setups as a starting point, not a tested recipe.
Test one campaign before you rely on it:
- Place a completed call and a failed call. The failed row should hold nulls in the summary, transcript and recording columns.
- Read the transcript column. Confirm the turns arrive whole and in order.
- Check duration. It is in minutes, so convert it if your reports use seconds.
- Send the same call twice in a test. With call_id as the key, you should end up with one row.
What does it cost to send call data to a warehouse?
Topcalls AI calls start from $0.25 a minute, depending on the country called, billed by the second. That price includes the AI voice model, call recording, transcription and analytics. Each flow run counts as one Integrations run, and each account includes 10,000 runs a month. The Integrations runs guide shows how to follow the count in Billing.
The warehouse side has its own bill from Snowflake, Google, your Postgres host or Databricks. Check their pricing pages before you load transcripts at volume.
Who owns the call data once it is in your warehouse?
You do. A transcript holds a person's words and a phone number, so the copy in your warehouse falls under your own consent, retention and access rules. You own consent and opt-outs for every number you call. Set who can read the table and how long rows stay before you fill it. Voice AI call recording retention covers the retention side.
Where to start with call data in your warehouse
Pick the warehouse you already use and build the one-row flow for a single campaign. If you work on Databricks, read what PolyAI's Data MCP leaves out to compare the pull route with this push route. If a spreadsheet is enough for now, log AI calls to Google Sheets first. To start with calls worth storing, see AI lead qualification and the AI voice agents product page. To price your volume, run the ROI calculator or book a strategy call.
Sources
- Lakebase Postgres, Databricks documentation, last updated November 11, 2026.
- Lakebase authentication, Databricks documentation.
- Statement Execution API: run SQL on warehouses, Databricks documentation.
- Topcalls webhooks and Integrations runs, Topcalls documentation.
- Topcalls integration pages for Topcalls, Snowflake, Google BigQuery, Postgres, Supabase and HTTP.
Frequently Asked Questions
Get AI calling tips in your inbox
No spam. One email per week with actionable sales automation tips.






