Voice AI Day is baaaaack! 🎙️ 11 cities, 10 Dec
    Video4:36by Voice AI Space

    How to Prompt a Voice Agent

    Prompting for the ear: short turns, one question at a time, no formatting, numbers and dates said clearly, and handling messy live transcripts.

    Part of Voice AI Explained. See every episode, in learning order, in How Voice AI Works: A Complete Guide.

    Summary

    Writing for the Ear

    When prompting a language model for voice conversations, the instructions must account for how people listen rather than read. The core instruction for any voice system prompt should be: "You're speaking, not writing."

    Key Rules for Voice Prompts

    • Keep turns short: Limit responses to one idea in one or two sentences, then let the caller speak. Long answers risk being interrupted or forgotten. Ask only one question at a time.
    • Avoid formatting: Instruct the model to avoid bullet points, bold text, emojis, tables, and links. For lists, use spoken transition words like "first," "then," and "finally," keeping the list to about three items. Read codes slowly, one character at a time.
    • Format numbers and dates clearly: Avoid ambiguous date formats (like "4/11") and have the model say the full date (e.g., "November fourth"). Depending on the voice provider, either write out numbers in words or use normal digits and rely on text normalization.
    • Account for messy transcripts: In cascaded pipelines, the model receives live transcripts from speech recognition, which often contain errors. Instruct the model to ask for clarification if something is unclear and to repeat names and numbers back to the caller before using them. Use an idle timer to handle silence politely.
    • Manage tool calls and silence: Looking up information takes time. Have the agent fill the silence by saying something like "I'll check that now" before executing a tool. Once the result is retrieved, present only the necessary information rather than reading raw data fields. Always confirm details before executing actions that change state, such as bookings or payments.
    • Establish guardrails: Define the agent's scope and instruct it to politely steer the conversation back or hand off to a human if a request is out of bounds. The agent must never pretend to be human and should state that it is an AI at the start of the call. Critical restrictions, such as preventing unauthorized refunds, must be enforced in the code rather than relying solely on prompts.

    Full transcript

    Ask a chatbot for directions, and you get a neat list: a bold heading, numbered steps, a link. Now picture a voice agent reading that out loud. "Asterisk, asterisk, step one...", "H, T, T, P, S, colon, slash, slash...". Text written for the eye sounds wrong to the ear. Today: how to prompt a language model for a voice conversation.

    Voice AI Space makes honest videos to help developers and curious people upskill in voice AI.

    A reader can skim, jump back, and see the structure on the page. A listener hears each word once in order and has to remember it. There's no scrolling back. So, start your system prompt, the standing instructions the model gets before every call, with this: "You're speaking, not writing." The same rules mostly apply to the speech-to-speech models from episode 10.

    Rule one: keep turns short. One idea in one or two sentences, then stop and let the caller talk. Long answers get interrupted—remember barge-in from episode 9?—and people forget the start before you reach the end. Ask one question at a time. Not "What's your name, date of birth, and postcode?", just "What's your name?".

    Rule two: no formatting. Tell the model: no bullet points, no bold, no emojis, no tables, no links. Some voices read the symbols out loud. Some tools strip them, and the list runs together into one long sentence. If you need a list, say it: "first", "then", "finally", and keep it to about three items. For a short web address, just say the name, like "example dot com". For a long link, offer a text or an email, but only if your agent can really send one. And read codes slowly, one character at a time.

    Rule three: numbers, dates, and prices. Is 4/11 November 4th or April 11th? It depends on the country. So say "November 4th". Many guides say have the model write prices and phone numbers in words in small groups, the way a person would read them out. But some voice providers say the opposite: write normal digits and let their text normalization from episode 4 read them. Check your voice's docs and listen.

    Rule four: remember what the model is reading. In a cascaded pipeline, it's not typed text. It's a live transcript with the mistakes from episode 12: wrong names, wrong numbers, missing words. So tell the model: "This text comes from speech recognition. If something doesn't make sense, ask. Repeat names and numbers back before using them." Silence needs a timer too, not just a prompt. Voice frameworks usually have an idle setting. When it fires, the agent asks once if the caller is still there, then ends the call politely.

    Rule five: tools. Voice agents look things up and take actions during a call: check an order, book a table. A lookup can take a few seconds, and silence feels broken. So have the agent say something first, like "I'll check that now." Some platforms can play that line for you the moment the tool starts. When the result comes back, don't read it raw. No order codes or data fields, just the one sentence the caller needs. And before anything that changes something, like a booking or a payment, confirm first.

    Rule six: guardrails. Tell the model what it's for, and what to do with everything else: politely steer back or hand over to a person. If it doesn't know, it should say so, not guess. And it should never pretend to be human. Say it's an AI at the start of the call, and say yes if a caller asks. In the EU, telling people is now a legal requirement. But a prompt is not a lock. Anything the agent must never do, like a refund without a check, should also be blocked in your code.

    To recap: short turns, one question at a time, no formatting, numbers the way you say them, expect a messy transcript, fill the silence during tools, and back your guardrails with code. Then listen to real calls, not just the text.

    Next time: testing voice agents with simulated callers and the numbers that matter. If we got something wrong, tell us. Corrections get pinned. And you'll find voice AI products sorted by role in the Voice AI Space library.