Skip to content
Learn

How to write a prompt for a voice agent.

A prompt that works in a chat window often fails on a phone call. People listen rather than read, cannot scroll back and interrupt. These rules adapt a prompt to the way a call actually goes.

  • 2 min read
  • Updated
  • 5 sections
01

Write for the ear

Everything the agent says is spoken aloud once and gone. Tell it to answer in short sentences, to avoid lists, links, formatting and anything that only makes sense on a screen, and to say numbers, dates and addresses the way a person would say them.

02

One question at a time

A caller who is asked three things at once answers the last one. Instruct the agent to ask a single question, wait for the answer and then move on. This is the most common fix in a first draft.

03

Give it a goal and a boundary

State who the agent is, what the call is for and what it must not do. A clear goal keeps it on task. Clear limits stop it promising things you cannot deliver, such as discounts or medical advice.

  • Who it is and who it is speaking for.
  • What a successful call looks like.
  • What it must never say or promise.
  • When to transfer to a person.
04

Say what to do when it does not know

Without an instruction, a model tends to guess. Tell the agent plainly: if the answer is not in its instructions or its documents, say so and offer to take a message or transfer. Keep long reference facts out of the prompt and in a knowledge base. Dialgem's prompting guide goes deeper.

05

Test, read and revise

Call the agent from your browser, then read the transcript. Change one thing at a time so you can see what helped. Test the awkward calls too: an interruption, a silent caller and an answer you did not plan for.

06

Questions

How long should a voice agent prompt be?

As long as it needs to be to state the goal, the limits and the handling of common cases, and no longer. Move long reference material into a knowledge base.

Why does my voice agent ramble?

Usually the prompt does not tell it to keep replies short. Instruct it to answer in one or two spoken sentences and ask one question at a time.

Create an account, build an agent, and call it from your browser before you connect a number. Add credit when you are ready to take real calls.