To connect a voice agent to Airtable, create a personal access token, look up records with an HTTP API tool on Airtable's listRecords endpoint, and write each call's record with a Webhook node. Both pieces come built into Dograh, the open-source AI voice agent platform, which runs on your own servers or on Dograh Cloud.
Key Takeaways
- Look up with POST listRecords, and ask only for the columns the agent needs.
- Airtable's Free plan allows 1,000 API calls a month, about 500 phone calls here.
- Dograh's Webhook node retries a 429 after 30 seconds, the wait Airtable asks for.
Airtable is often where a small team already keeps orders, bookings and leads. This tutorial wires a voice agent to Airtable in Dograh, our open-source AI voice agent platform, so it can look up and add records, and closes on rate limits, monthly caps and privacy.
What you need before you start
These steps follow the published Dograh and Airtable docs. Work against a copy of your base until the trial calls pass, so a wrong field map never touches the table your team works from.
Dograh connects to Airtable over plain API calls. The agent reads Airtable through one HTTP API tool during the call, and a Webhook node adds the call's record once the call ends. No automation tool sits in the middle, although our post on connecting a voice agent to Make shows that route if you already run scenarios there.
You need an Airtable base with a table for the lookups, such as Orders, and one for the call log, such as Calls. Note the base ID, which starts with app, and the exact table and column names, since the API matches them exactly. On the Dograh side you need an agent that records the details you want to log. Our post on extracting call data into variables sets that up.
Step 1: Create two personal access tokens
Airtable's personal access tokens carry their own scopes and bases, so give each job its own token. Create one with the data.records:read scope on this base for the lookup, and a second with data.records:write on the same base for the call log. Airtable shows each token only once, so copy it as soon as it appears.
In Dograh, open Credentials in the sidebar, choose Add Credential, pick Bearer Token as the Credential Type and paste the read token into Token. Airtable expects the token as an Authorization: Bearer header, which is exactly what this credential type sends. The write token goes into your relay's settings in Step 4, and Dograh gets a second Bearer Token credential that holds the relay's own secret.
Two narrow tokens limit the damage of a mistake. A prompt bug in the lookup tool cannot change a record, and a leaked write token cannot read anything back.
Check: the read credential and the relay credential appear on the Credentials page, and neither Airtable token has access to any other base.
Step 2: Look up a record during the call
The lookup is one HTTP API tool that asks Airtable for a single row. Airtable's list records endpoint has a GET form, but a GET from a Dograh tool sends array parameters as JSON strings, which Airtable's repeated fields[] parameters do not accept. The POST form, /listRecords, takes the same options in a JSON body, so use that.
Open Tools, choose Create Tool and pick External HTTP API. Name it find_order, set the HTTP Method to POST, set the Endpoint URL to https://api.airtable.com/v0/appXXXXXXXXXXXXXX/Orders/listRecords with your base ID, and pick the read credential on the Authentication tab. On the Parameters tab, add two LLM Parameters, order_id and zip_code, then turn on Tool Body Template. The template below sends a filterByFormula, the fields the agent may hear and maxRecords:
{
"filterByFormula": "AND({Order ID} = '{{order_id}}', {ZIP Code} = '{{zip_code}}')",
"fields": ["Order ID", "Status", "Delivery date"],
"maxRecords": 1
}
What this does: It asks for at most one row where both the order ID and the ZIP code match, and returns only three columns. The ZIP code is used to find the row but is not in
fields, so it never comes back to the agent.
The fields list matters more than it looks. The agent receives the whole reply as data, and nothing trims it on the way, so a table with notes, prices and addresses would all land in the prompt without it. The HTTP API tool page shows how the reply reaches the agent.
If you want the agent to know a caller before it speaks, Pre-Call Data Fetch sends a POST with the caller's details to an endpoint you run. Airtable expects its own body, so point it at your relay and have the relay run the lookup.
Check: the tool's test run with a real order ID and ZIP code returns one record with only the three columns.
Step 3: Match two fields before reading anything
A lookup by one field finds a record, but it does not prove the caller owns it. The formula in Step 2 asks for two things the caller should know, the order ID and the delivery ZIP code, so a wrong guess on either one returns no record at all. The agent then has nothing to read out by mistake.

When nothing matches, Airtable returns an empty records list. Write that case into the prompt. "If find_order returns no records, say you could not find an order with those details and ask the caller to repeat the order ID. After two tries, offer a callback request." Only after a record comes back does the agent read the status and date.
One precaution of our own, not an Airtable rule. The caller's words land inside a formula, so a stray quote mark could change what the formula asks. Describe order_id as "digits only, as the caller reads them" and zip_code in your country's format, so the model passes clean values.
A lookup usually takes well under a second, but give the caller something to hear if it runs long. In the tool's Messages, add a line under "When the tool starts", such as "Let me find that order". Timeout (ms) starts at 5,000, which suits a single-row query.
Check: a test call with a wrong ZIP code hears no order details, and the right pair hears the status.
Open Source Alternative to Vapi / Retell
Self-hosted voice agent platform — no per-minute fees
dograh-hq/dograh
Star on GitHub
Step 4: Add a record after the call
The call log is written once the call ends, by a Webhook node. Add a Webhook node to the agent, give it a Name, keep Enabled on, set the HTTP Method to POST, put your relay's address in Endpoint URL and pick the relay's credential under Authentication. The relay itself comes later in this step. Its Payload Template is a JSON object, so Airtable's nested fields body can be written as it is, with each column filled from the call:
{
"fields": {
"Call ID": "{{workflow_run_id}}",
"Caller": "{{initial_context.caller_number}}",
"Outcome": "{{gathered_context.call_disposition}}",
"Callback time": "{{gathered_context.callback_time}}"
}
}
What this does: It sends one record per call, keyed by
Call ID, with the caller's number, the call's outcome and a callback time the agent recorded.callback_timeis an example field you define yourself. On outbound calls, use{{initial_context.called_number}}for the person you called, sincecaller_numberis then your own number.
One detail decides where this goes. The Webhook node adds a top-level call_disposition key to every payload, next to fields, and Airtable's create records endpoint documents only fields, typecast and its own options at that level. So post to a small relay endpoint of your own, a few lines in front of Airtable, rather than to Airtable itself. The relay forwards only the fields object, adds typecast and returns Airtable's own status code to Dograh:
app.use(express.json());
app.post("/airtable-calls", async (req, res) => {
if (req.get("authorization") !== `Bearer ${process.env.RELAY_SECRET}`) return res.sendStatus(401);
const r = await fetch(`https://api.airtable.com/v0/${process.env.BASE_ID}/Calls`, {
method: "POST",
headers: { Authorization: `Bearer ${process.env.AIRTABLE_WRITE_TOKEN}`, "Content-Type": "application/json" },
body: JSON.stringify({ fields: req.body.fields, typecast: true }),
});
res.status(r.status).send(await r.text());
});
What this does: It checks the relay's own secret, drops everything except
fields, and turns ontypecastso a value such as "busy" lands in a single-select column. Because it passes Airtable's status back, a 429 from Airtable reaches Dograh as a 429.
The write token now lives in the relay, and the Webhook node's credential is a Bearer Token holding the relay's secret.
Check: after a test call, the Calls table has one new row with that call's ID, and the relay's log shows Airtable's 200.
Step 5: Stay inside Airtable's limits
Airtable limits both the pace and the monthly total of API calls. Airtable allows 5 requests a second per base, and a request over that gets a 429 and must wait 30 seconds. The Webhook node retries temporary failures, 429 included, up to five attempts in all, and its first retry comes 30 seconds later, which matches that wait.
The lookup tool behaves differently. With no retry of its own, an HTTP API tool hands a 429 to the agent once, as an error, and the prompt's callback line covers it. On a busy line, keep other scripts that hit the same base away from peak calling hours.
The monthly cap matters more for small plans. Airtable gives the Free plan 1,000 API calls a month and the Team plan 100,000, while Business and Enterprise Scale have no monthly cap. In this build, one lookup during the call and one record after it is two API calls per phone call. That makes about 500 phone calls a month on Free and about 50,000 on Team, our arithmetic on Airtable's caps. A second lookup or a retried write raises the count to three, which cuts those to about 333 and 33,333.
Unanswered calls count too. The Webhook node also fires on calls nobody answered, so an outbound list with many no-answers spends a write on each one. Our post on webhook-driven voice agents covers making a repeated delivery harmless.
Check: the Free or Team plan you are on covers twice your expected monthly calls, plus the no-answers.
Join the Dograh Community
Dograh is an OSS alternative to Vapi. Join our Slack community for queries, releases, best practices & community interactions.
Step 6: Keep private call data out of the base
A shared base is read by everyone it is shared with, so choose the columns with care. Dograh's recording and transcript links open without a login, so anyone who sees the link can play the call. Our post on connecting a voice agent to Zapier covers the same point for sheets and chat channels.
Store the call ID instead. Anyone who needs the full call opens it in Dograh by that ID, and the base holds only the outcome and the follow-up. Leave out anything the caller said about health or money unless the base's readers truly need it.
Check: the Calls table holds no recording or transcript links, and the base is shared only with the people who follow up.
Before you ship it
Run the full path on the copy of your base first. Look up a real order with the right ZIP code, then with a wrong one, and end a call that should log a callback. Then call from a real phone, because order IDs and ZIP codes are harder to catch on a phone line than in a browser.
Where the agent runs decides where call data waits before it reaches Airtable. When you self-host Dograh, recordings and transcripts stay on your servers and only the fields you chose go to Airtable's cloud. Self-hosting has no per-minute platform fee, but servers, model keys and phone minutes still cost money. Dograh Cloud charges a 1¢-a-minute platform fee.
Glossary
- Personal access token
- An Airtable token limited to the scopes and bases you pick, such as read-only on one base. It is shown once and sent as a Bearer token.
- filterByFormula
- An Airtable list records option that returns only rows where a formula is true, such as two fields matching the caller's answers.
- typecast
- An Airtable create option that converts string values into the column's type, such as a select option, instead of rejecting them.
- Relay endpoint
- A few lines of your own code between the Webhook node and Airtable that forward only the fields object and pass Airtable's status back.

