Dograh

How to Personalize AI Voice Calls With a CSV Contact List

How to Personalize AI Voice Calls With a CSV Contact List
TutorialDecember 1, 2026·11 min read

How to Personalize AI Voice Calls With a CSV Contact List

Vemu Sandeep
Vemu Sandeep·GTM Engineer, Dograh AI

GTM engineer at Dograh working across voice AI and enterprise AI. IIT (BHU) and IIM Visakhapatnam alumnus.

To personalize AI voice calls from a CSV, add a phone_number column and one column per fact the agent says, write those names into the prompt as variables, and give optional values a fallback. To keep contact lists in-house, use Dograh, the open-source AI voice agent platform. You can self-host it or run it on Dograh Cloud.

Key Takeaways

  • Dograh refuses a campaign when a variable without a fallback is empty in any row.
  • Write column names in lowercase snake_case, so headers and prompt variables always match.
  • A personalized greeting never replaces consent to call the number.

A call that opens with the right name and the right date sounds like a business that knows its customer. This guide walks through personalizing AI voice calls from a CSV contact list, column by column, in Dograh, our open-source AI voice agent platform, then covers testing and consent.

What you need before you start

These steps follow the published Dograh docs. Run them on a trial server before production, with a list of your own team's numbers, so a mistake in a column name never reaches a customer.

You need an agent that already handles the call well with made-up details, a phone number on a carrier such as Twilio, Telnyx or Plivo connected under Telephony, and the contact list as a CSV file under 10 MB. You also need a record of consent for every person on that list. The consent section near the end explains why.

A CSV is the right source when the details are known before you start dialing, such as an appointment date or a renewal month. If a value can change between building the list and the call, such as an order status, fetch it when the call connects instead. Our post on pre-call data fetch covers that setup.

Step 1: Plan one column per fact the agent says

Start from the script, not from the export. Read through what the agent should say on the call and underline every detail that changes from person to person. Each of those becomes a column. Anything the agent never says or uses stays out of the file.

The one required column is phone_number. Dograh lowercases and trims every header when it reads the file, so a column named "First Name " arrives as first name, with a space, which is awkward in a prompt. Name columns in lowercase snake_case from the start, such as first_name and appointment_date, and use the same spelling in the prompt.

Phone numbers need a country code. For carrier calls, Dograh checks that each number starts with "+" and has no spaces, commas or ampersands, and it does not reformat them. A number such as 415 555 0100 fails, while +14155550100 passes. It does not check the number of digits, so a typo can still slip through. Our post on E.164 format explains the full format and how to convert a local list.

Check: Every column in your plan maps to a line in the script, and every header is lowercase with underscores.

Step 2: Build the sample file

A small file you control is the fastest way to see each column at work. The example below, one we wrote for a car service reminder, has the required phone_number, three columns the agent says out loud, and two optional columns for a per-row greeting.

phone_number,first_name,appointment_date,branch_name,greeting_override_type,greeting_override_text
+14155550100,Jane,Tuesday 9 December,Riverside,,
+14155550101,,Wednesday 10 December,Riverside,text,Hello! This is Riverside Motors calling about your service on {{appointment_date}}.

What this does: It gives the campaign two contacts. Jane gets the normal greeting with her name, and the second contact has no first name and gets a custom greeting that still uses the date.

Every column except the three greeting override columns reaches that contact's call as a variable, phone_number included. In Dograh's terms they become the call's initial_context. Notice that the second row leaves first_name blank on purpose. Step 4 shows why that row only works if the prompt is ready for it.

Check: The file opens in a spreadsheet with six columns, and each row has a phone number starting with "+".

Step 3: Write the columns into the greeting and prompts

A column is only useful once the agent uses it. In the agent editor, double-click the Start Call node and write its Greeting Text with the column names in double braces. Greeting Text is spoken word for word, so it is the right place for the business name and the reason for the call.

Hi {{first_name | there}}, this is Riverside Motors. I'm calling about your service appointment on {{appointment_date}} at our {{branch_name}} branch.

What this does: It fills in each contact's name, date and branch as the call connects. A contact with no first name hears "Hi there" instead of a gap.

The same names work in the Start Call prompt, in Agent node prompts, in the Global Node prompt and in the transition speech on edges. Write them as plain {{appointment_date}}, since a CSV is flat and every column is a top-level name. The variables page lists the built-in ones you can add, such as the current weekday.

After the call, a Webhook node can send a column back out with {{initial_context.branch_name}}, next to the answers the agent recorded. Our post on connecting a voice agent to Zapier shows that path into a sheet.

Check: The greeting and every prompt use only names that exist as columns in your file.

Dograh

Open Source Alternative to Vapi / Retell

Self-hosted voice agent platform — no per-minute fees

dograh-hq/dograh

Star on GitHub

Step 4: Give every optional value a fallback

Blank cells are where personalization breaks, and Dograh catches them before any call goes out. When you create the campaign, Dograh reads the agent's published version and collects every variable in the greeting, the node prompts, the Global Node prompt and the transition speech. If one of them is not a column in the file, the campaign is refused with a message such as "Workflow uses template variables that are missing from the source data". If the column exists but is empty in some rows, you see "Template variable 'first_name' is empty in rows" followed by the row numbers, and the campaign is not created.

A contact list with two rows, where the second row's first name is empty. The empty cell lights up, a stop lamp turns red and the campaign is not created. Beside it, the greeting is written with a fallback after the bar, the row passes, and a contact with no first name hears Hi there.
A blank that slipped through would leave a customer hearing half a sentence where their name belongs. The launch check covers the greeting, the prompts and the transition speech only, so tool messages and Webhook payloads still need a fallback or a column that is never empty.

A fallback is how you tell Dograh a blank is fine. Write the variable as {{first_name | there}}, with the fallback value after the bar, and the check skips it. Give a fallback to every value that may be missing, such as a first name, and leave it off values the call cannot do without, such as the appointment date. Then a blank date stops the campaign, which is what you want.

A few places are not checked. Tool messages, HTTP API tool request bodies and Webhook payloads still render a blank value as empty text, so give those a fallback too or make sure the column is always filled. In our example, the second row passes because the greeting uses {{first_name | there}}, and the override text uses only the date, which every row has.

Check: Every variable that may be blank carries a fallback, and the rest are filled in every row.

Step 5: Set a different greeting for some rows

Sometimes one group needs a different opening, such as returning customers or a branch with a new name. The greeting override columns handle that row by row. Set greeting_override_type to text and write the opening in greeting_override_text, which can use the other columns as variables. For a recorded opening, set the type to audio and put the recording's public ID in greeting_override_recording_id, as the Campaigns page describes.

Rows with empty override columns use the Start Call greeting as usual. The three override columns are removed from the call's variables, so the agent never reads them out.

Keep the same rules in an override as in the main greeting. It still opens with the business name and the reason for the call, and it still needs fallbacks for anything that may be blank.

Check: In a test with the sample file, the second contact hears the custom greeting and Jane hears the normal one.

Join the Dograh Community

Dograh is an OSS alternative to Vapi. Join our Slack community for queries, releases, best practices & community interactions.

Step 6: Test one row, then call your own phone

Test with real values before the list goes anywhere near a dialer. Open the Variables tab in the agent editor and enter one row's values, such as first_name = Jane, appointment_date = Tuesday 9 December and branch_name = Riverside. Browser test calls count as inbound by default, so also add direction = outbound to follow the outbound path. Then select Test Agent and listen to the greeting and the first few turns.

Run it again with first_name left out, and listen for "Hi there". A blank you forgot to plan for shows up here as an odd pause or a half sentence.

Then place a real call with Phone Call to your own number. Phone audio changes how dates and names sound, so a date format that reads well in the browser, such as 09/12, may come out badly on a call. Write dates in the CSV the way a person would say them, such as Tuesday 9 December.

Check: Both browser tests sound natural, and the phone call says the date the way you wrote it.

Step 7: Upload the file and read the errors

The upload is where Dograh checks the whole list at once. Open Campaigns in the sidebar and select Create New Campaign. Enter a Campaign Name, pick the Telephony Configuration and the agent, set Data Source Type to CSV File, select Upload CSV File and choose your file, then select Create Campaign.

If something is wrong, the campaign is not created and the message says what to fix. "Source must contain a 'phone_number' column" means the header is missing or misspelled. "Invalid phone numbers in rows" names rows whose numbers lack a "+" or contain spaces, commas or ampersands. "Duplicate phone numbers found in rows" means the same number appears twice, and each number may appear only once. The two variable messages from Step 4 come last. A row with no phone number at all is skipped and never called.

If you split traffic between two versions of the agent, every version is checked against the file, so a variable used only in version two still needs its column. Calling hours, retries and pacing are campaign settings that our guide to outbound voice campaigns covers, so check them there before you select Start Campaign.

Check: Create Campaign succeeds, and the campaign page lists the same number of contacts as your file.

Personalization changes what the agent says, not whether you may call. Under the Telephone Consumer Protection Act (TCPA), the FCC ruled that an AI-generated voice is an "artificial or prerecorded voice", so the consent rules for those calls apply. A name and an appointment date in a row are not consent. Call only people with recorded consent for this kind of call, and scrub the list against the National Do Not Call Registry and your own do-not-call list first, as our post on DNC scrubbing explains.

The FCC's calling rules also ask an artificial-voice message to name the business at the start, by the name it is registered under with the state, and to give a phone number to reach it. That belongs in the Greeting Text, and in every greeting override. Confirm your consent records and calling rules with counsel before the first campaign.

The file itself is personal data. Each row's values are stored with that contact's call, and a Webhook node can send them on, so a column nobody uses is a copy nobody needs. Leave out birth dates, account numbers and anything about health or money unless the script truly needs them, and delete old exports once the campaign is done.

Before you ship it

Go through the list once more before the real upload. Every header is lowercase, every number starts with "+", every optional variable has a fallback, every override opens with the business name, and every person on the list has consent on record.

Then start with a small slice of the real list, such as one branch or one day of appointments, and listen to a handful of calls. Wrong dates and odd name pronunciations show up in the first ten calls, long before they reach the whole list.

Glossary

initial_context
The values a Dograh call starts with. In a campaign, each CSV column except the greeting override columns becomes one of them.
Fallback value
The text after the bar in {{first_name | there}}. It is spoken when the cell is blank, and it lets a campaign pass the empty-value check.
Greeting override
Per-row columns that replace the Start Call greeting for one contact, with text that can use other columns or a recorded clip.
E.164
The international phone number format with a plus sign and country code, such as +1 for the US. Dograh needs the plus sign for carrier calls.

Frequently Asked Questions

Get started with Dograh

Build, deploy, and scale AI agents with Dograh. Join the community of developers building the future.