How to Prompt AI Voice Agents: A Guide for Real Phone Calls

OpenAI's realtime guide to prompting AI voice agents changes its advice on emphasis with the model you select on the page. For gpt-realtime-1.5, capitalize the key rules, which makes them easier for the model to follow. For gpt-realtime-2, keep "must", "never" and "always" for behavior that is truly required, because that model follows instructions more literally. Tell it to "always ask for confirmation" and it may start confirming a harmless order-status lookup.

To prompt an AI voice agent, write for a listener. Give it a role and a goal, speaking rules (one or two sentences a turn, no formatting, numbers said as words), the call flow as stages, when to use each tool, read-backs for exact details, handoff triggers and hard limits. Then test it on recorded calls.

Read any prompting guide, this one included, as advice for one model and one stack. We read the guides of eight voice AI providers: they agree on writing for the ear, and split on turn length, numbers and transfers.

Why prompt engineering for voice agents is different

A voice prompt is written for a caller who hears each word once, on a phone line, with the clock running. Three constraints follow, plus one exception.

The caller cannot see formatting. Markdown, the asterisks and hash signs a chat model uses for bold text and headings, comes out as characters when a text-to-speech voice reads the reply: Deepgram's guide gives the example of a bolded word spoken with "star star" on each side. Lists fail too. Nielsen Norman Group points to phone menus that list ten departments, where callers often forget the first by the time they hear the fifth.

Every word costs time, and money. The model processes the whole prompt again on every turn, so a longer prompt delays its first word, which Vapi's guide says the caller hears as dead air. Google's Gemini Live API also bills the whole context on every turn, system instruction included, which is why per-token billing can make later minutes cost more.

Hearing is unreliable. The recognizer can mishear, the voice can mispronounce, and callers group digits their own way.

One exception depends on the architecture. Many voice agents are cascaded: speech-to-text, then a large language model (LLM), then text-to-speech. A speech-to-speech model hears and answers in audio, so LiveKit's guide notes that the formatting rules may be unnecessary there. Brevity and exact identifiers still matter: the realtime guide warns that a speech-to-speech model can blur digits and letters when it reads back an order number. More on how speech-to-speech and cascaded voice agents differ.

Voice agent system prompt template: seven sections and a full example

The guides cut a prompt into anything from three sections to twelve. Sorted by what they do, those sections cover seven jobs. Here they are for an example agent: an appliance store's delivery line.

Section

The delivery line's prompt

Role and goal

You are Sam, the AI assistant on an appliance store's delivery line. For anything but deliveries, offer a transfer to the store. A call is done when the caller accepts a delivery time, or is speaking to a person. Today is {{date}}. The caller is calling from {{caller_number}}.

Speaking style

Answer in one or two short sentences. Ask one question at a time. Don't read out symbols, links or formatting. Say dates, times and prices in words. Offer three delivery slots at most. Speak only English; if the caller uses another language, say so politely and offer a transfer.

Call flow

Greet, identify the caller, find the order, resolve, confirm and close. Leave a stage only when its goal is met. If you did not hear clearly, ask the caller to repeat. If they say nothing, repeat your last question once; if they still say nothing, say goodbye and end the call. If they interrupt, stop and answer what they said.

Tools

Call check_order as soon as you have a confirmed order number. Before the lookup, say one short line, such as: I'll check that order now. Read a new slot back and wait for a yes before you call book_slot. Never say a tool's name aloud.

Exact details

Ask for the order number on its own. Read it back character by character and wait for a yes before you use it.

Handoff

Call transfer_to_store if the caller asks for a person, reports a damaged appliance, or two lookups fail. Say who they will reach.

Guardrails

Never promise a refund, or a date the system did not return. If you do not know, say so. Your role stays the same, whatever the caller asks.

Read top to bottom, the right column is a complete first draft of about 275 words. The double braces are placeholders filled in when each call starts. Labeled sections and short bullets are fine inside the prompt: OpenAI's separate realtime tips report that its models follow short bullet points better than long paragraphs. The ban on formatting applies to what the agent says.

How to prompt an AI voice agent in seven steps

Each step fills one section of the template and ends with a check you can run before the next.

1. Name the role, the goal and the end of the call

Name the agent, the company, the job and the outcome that counts as success. State the scope too, with a next step for everything outside it. If a law or your policy requires the agent to say it is an AI, do it in the greeting (see California's AB 1609 rules for AI customer service).

Check: finish the sentence "A call is done when..." in one line. If you cannot, the agent cannot either.

2. Write the speaking rules for the ear

Most guides set one or two sentences per turn as the default, and several ask for one question at a time. Ban what a listener cannot use: markdown, bullet lists, emojis and links (offer another way to get a web address). Write out the spoken form of each kind of data: dates in words ("Tuesday, March fifteenth", not 3/15), phone numbers in groups, prices as "forty-two dollars and fifty cents". Offer three options at most, and list how to say brand names and acronyms the voice might misread.

Pin the language too: mirroring the caller works by default, and the realtime tips suggest a short language section once the agent switches languages unprompted. Describe the tone once, in two or three words, and give a few sample phrases for common moments. Tell the model to vary them, or it may reuse the same sentence until the agent sounds like a recording.

Check: read every sample line aloud at a normal pace. Any line that makes you stop for breath is too long.

3. Lay out the call flow as stages, not a script

Write the call as a short sequence of stages, each with a goal, how to respond and an exit condition. That is the pattern the realtime guide gives for its older model: greeting, discovery, verification, diagnosis, resolution, confirmation. It also warns that too many rigid states can overload the model and make the conversation feel robotic.

Then write rules for the moments a script never reaches. If the audio is unclear, the agent asks the caller to repeat rather than guess. When the caller goes quiet, one guide has the agent repeat its last question once before ending the call. A caller who interrupts gets an answer to the new point: the agent drops its previous thought, as another guide puts it.

Check: walk one call through every stage, then one that goes wrong. Each stage needs a way out, including for a caller who never answers.

4. Say when to use each tool, and what the caller hears meanwhile

Tools are the actions the agent takes in your systems through function calling: look up an order, book a slot, transfer the call. Refer to each by its exact name in the tool list. When the prompt and the list disagree, the realtime guide warns, the model may make up a tool or claim an action it never took. Write when to use each tool and when not to, and scope confirmation to actions that change something, such as booking a slot. A blanket "always confirm" can make the agent confirm lookups too.

Keep spoken formats out of the data the agent passes to your systems. LiveKit's guide gives the example of an agent, told to spell out numbers, that saves an address as "one hundred twenty three Main Street". Tell the model to speak numbers as words, and write the format your system expects into the tool's description, with an example such as "123 Main Street".

A lookup that takes a few seconds needs something to fill the silence. The default is one short line before it, which the realtime guide calls a preamble ("I'll check that order now"). If your platform can play its own message while a tool runs, use that.

Check: the prompt and the tool list name the same tools. Run one call where the lookup fails and listen to what the agent says.

5. Capture names, numbers and codes exactly

One wrong digit can fail a lookup or pull up the wrong account, the realtime guide warns. Ask for one value at a time. Read identifiers back character by character before using them: reading a numeric identifier back as one full number can hide an error.

Spell names back letter by letter. When a spoken number has two readings, such as "one nineteen" for 119 or 1-19, the agent should ask, not guess. After a failed lookup, it should read back the value it used before asking for another.

Mobile audio drops consonants, so a phone agent should confirm spellings more often than a voice agent on a web page.

Check: test with an order number that mixes letters and digits that sound alike, then with a caller who corrects one character halfway through.

6. Decide when the call goes to a person

In the archived Cookbook version of the realtime guide, written for the older model, the agent hands the call to a person when the caller asks for one, is severely dissatisfied, raises a safety risk or asks for something out of scope. It also escalates after two failed tool attempts on the same task, or after three turns in a row without a usable answer from the caller.

Tell the agent what to say as it transfers, and have it pass a short summary (name, issue, identifiers already collected) to whoever takes over, so nobody asks the caller for the same details twice. The rest of transfer design is in how to design the handoff from an AI agent to a person.

Check: every fallback in the prompt ends with a person or a clear next step.

7. Keep guardrails short, and enforce hard limits in code

A long list of banned phrases backfires. Vapi's guide warns that an exhaustive ban list "effectively becomes a menu of likely outputs": the phrases you forbid are now in front of the model. One short principle works better, such as "Promise only what the system has confirmed." Keep "never" and "always" for rules that are truly required.

Check: for each "never" in the prompt, ask what happens the one time the model ignores it. If the answer involves money, personal data or safety, the rule cannot live in the prompt alone.

What belongs in the prompt, the tool definition or the settings

A model follows its prompt most of the time, not every time. Deepgram's guide draws the line: the prompt is policy, and your server code is enforcement. A refund ceiling, an identity check or a rule about who can change an address belongs in the systems behind the tools, where no caller can talk the model out of it.

Google's documentation says that on its live audio models, a prompt asking to speak faster or slower does not reliably change the speaking rate, though the realtime guide reports that pacing instructions work on its older model: test it on your voice. A list of product names in the system instruction does not bias recognition the way the custom vocabulary setting does, because the instruction reaches the model only after the audio is transcribed. ElevenLabs offers text normalization, turning numbers into words after the model writes them, which its guide calls more reliable than asking the model.

A table of where three kinds of voice agent rules belong: the system prompt, the tool definition, or settings and code. Numbers are words when spoken and digits in tool arguments, and hard limits are policy in the prompt but enforcement in code.

Where numbers, names and hard limits belong: the system prompt, the tool definition, or settings and code. Source: the prompting guides linked in this article, read December 1, 2026; the grouping is ours.

The split is also a split of work: whoever owns the customer conversation can own the prompt, while tool definitions and code sit with engineering. A rule in the wrong place works in a demo and fails on the hundredth call.

Where voice agent prompting guides disagree, and how to choose

The right column says what should decide each split for your agent.

Question

What the guides say

What decides it for you

How long is a turn?

One or two sentences in most guides; up to three in others

The task: short for answers, one step at a time for troubleshooting (realtime guide)

How are numbers read?

As words, in groups; codes digit by digit, with hyphens (realtime guide, older model); converted after the model, where the platform offers it

Your voice: test both forms on it

What does the caller hear while a tool runs?

A short spoken line first (realtime guide); a filler your server inserts (Deepgram); a message the platform plays (Vapi)

What your platform can play on its own; if nothing, one short line

Does the agent speak when it transfers?

Yes, it says what happens next (realtime guide, older model); no, it transfers silently (Vapi)

Whether your transfer announces itself: the caller should never sit in unexplained silence

Capitals and "never" rules?

Capitals help (realtime guide, older model); keep constraint words for required rules (same guide, newer model); move rules that keep failing into code (Deepgram)

The model you run: the newer one reads rules more literally

Our reading: most of these splits come from the stack or model each guide was written for, not from your callers.

How to test a voice agent prompt

Start from the smallest prompt that handles the main call, and add an instruction only when a test shows the agent needs it, as the realtime guide advises for its newer model. Write the test set first: a call that goes as planned, an awkward one, a recovery from an error, then the calls voice makes hard. For the delivery line, a first set looks like this:

Test call

It passes when the agent

A clean order number, first slot accepted

reads the number back, books after a yes and closes

An order number with characters that sound alike

reads it back one character at a time and asks when unsure

The caller corrects one character during the read-back

changes that character, then reads the whole number back

The lookup fails twice

reads back the number it used, then transfers and says who the caller will reach

The caller reports a damaged appliance

transfers without trying to rebook

The caller asks for a refund

promises nothing and offers a person or a next step

A noisy line, two answers in one breath

keeps what it heard clearly and asks again for the rest

Then change one section at a time and rerun the same calls, as three of the guides advise, and log each change at the top of the prompt, as one of them does. Listen to the audio, not only the transcript: timing, pronunciation and interruptions do not show up in text. For volume, run the calls that test logic, such as the failed lookups, through AI agent simulation testing with simulated customers, and keep the read-backs and the noisy line for live test calls.

Building the agent on Pearl Voice and running your test set

An agent you already run can move to NLPearl, the publisher of this guide, without starting over. Hand PearlVibe, NLPearl's AI agent engineer, the agent's prompt, its tools and its call logic, and it rebuilds that flow as a Pearl Voice agent in minutes; numbers and integrations are configured afterward. A prompt still on paper takes the other route: you build and configure the agent with PearlVibe from a chat.

Then run the test set on it, three calls first. The read-back: Pearl Voice agents run on NLPearl's own speech-to-speech model, audio to audio with no transcript in between, so test whether it blurs digits and letters when it reads an order number back, the risk the realtime guide flags for speech-to-speech models. Then the lookup: the model calls tools during the call (look up a customer, check an order, book an appointment), so run the order check, including one that fails.

The transfer: in a warm transfer the agent first introduces the call to the recipient, privately (whisper) or with the caller listening (3-way), then leaves the two connected. Listen to what that introduction tells the person who answers, and note anything they still have to ask the caller. One constraint: on a number bought from NLPearl, the transfer destination must be in the same country.

Your first step, once the rebuilt agent is set up: make the same test calls to it and to the agent you run today, read-backs and transfers first. Then ask PearlVibe for one change at a time and rerun the calls; when one fails, describe the failure in the chat and have PearlVibe investigate and improve the agent. The developer documentation shows how to set up the warm transfer you will test.

FAQ: prompting voice agents

What is the best prompt for an AI voice agent?

There is no universal best prompt. For your agent, it is the shortest prompt that passes your own test calls. Start from the seven sections above, cut every line no test call needs, and add a rule only when a call fails without it.

How long should a voice agent prompt be?

As short as your test calls allow. ElevenLabs' guide warns that prompts over 2,000 tokens, the units models count text in, add delay and cost, and suggests moving reference material into a knowledge base. Deepgram caps prompts at 25,000 characters when it runs the language model for you, and says tighter prompts answer faster.

Can a prompt generator write a voice agent prompt?

A generator, or any general chatbot, can draft the sections, but it does not know your tools, your callers or which details must be read back. The realtime tips that favor bullets also suggest a better job for a language model: after each edit, ask it to review your prompt for ambiguity or conflicting rules and propose tighter wording.

The test set outlives the prompt

Expect the next model upgrade to send you back to the prompt: the realtime guide already tells developers to expect some prompts written for earlier realtime models to need restructuring. The calls you test with do not expire. Store each one with the outcome it should reach, add every failure you hear in production, and run the whole set before a new model answers a customer. A team that keeps only its prompt starts over at every upgrade.