Prompting Guide
This guide covers how to structure a system prompt so your voice agent works as well as a human. Phonic’s models are post-trained for common voice-agent scenarios, and this guide helps you get the most out of them.
New to Phonic? Start with Build Your First Agent. It assembles a complete agent and carries the reference material on where each kind of rule goes. Language configuration has its own page. This page covers how to structure and word the prompt itself.
Structuring your system prompt
A good voice-agent prompt should be similar to a briefing for a new employee. You don’t necessarily need every section below. Use what changes the outcome for your agent:
- Role and persona: who the agent is, in one or two sentences: name, company, role, tone, personality.
- Task and call flow: what a successful call accomplishes, as ordered steps: greet, identify the caller, find what they need, act, confirm, close. Models follow explicit sequences far more reliably than implied ones. With the conversation-ending tool enabled, the agent can end calls on its own when it thinks the conversation has been concluded. Prompts may add more control over how the agent decides when to end the call, and what should be said before ending the call (“confirm the appointment time before ending the call”).
- Rules that always apply: business policies and guardrails (“we never quote prices without a consultation”, “always verify identity before discussing account details”). State each as a single testable sentence; these must hold on every call, which is why they live here and not in any tool’s description (the placement reasoning is covered in Build Your First Agent).
- Tool orchestration: the prompt carries what individual tool descriptions can’t: ordering across tools within the call flow, prerequisites tied to the conversation as a whole (“confirm the reservation details back to the caller before ending the call”), and what to do with results (“if there are no open tables, offer the waitlist — never invent times”). Per-tool guidance (when and how to call one tool, its preconditions) belongs in that tool’s description, written when you define the tool.
- Error handling and recovery: what the agent says when things go sideways: the caller is silent, the answer is unintelligible, or a tool fails. Calls die in these moments, not on the happy path (“if the lookup fails, apologize, offer to take a callback number, and move on”).
- Escalation: the conditions that end with a transfer or callback, stated concretely (“if the caller mentions chest pain, transfer immediately — do not continue the assessment”).
- Voice style: only where your use case diverges from the defaults, see the Voice Style Prompting section for more.
- Example exchanges: 2–3 short sample exchanges covering the happy path plus one edge case (no availability, an unclear caller). The model closely follows sample phrasing, so these are high-leverage. Mark them clearly as examples so they read as illustrations, not extra rules.
Per-call context (the caller’s name, their plan, the reason for the call) doesn’t belong hardcoded in the prompt. Use template variables so one agent serves every caller with the right details filled in at call time.
There is no target word count. Length tracks scope. Focused single-workflow agents typically run a few hundred to ~1,400 words; multi-workflow agents run longer. The structure above matters more as the prompt grows: short prompts behave similarly either way, but long, policy-heavy prompts follow ordered, sectioned rules measurably more reliably.
A worked example
The prompt from the agent assembled in Build Your First Agent. Read it against the structure list above: every numbered section appears in order (role, flow, rules, tool orchestration, recovery, an example exchange):
Voice Style Prompting
Phonic’s model is already optimized to sound natural in conversations. It will generally:
- Keep responses short
- Ask one question at a time
- Often insert or speak with disfluencies, when natural
- Understand and say numbers, emails, and phone numbers in natural spoken form
You should only need to add style rules for your specific use cases. Speaking mechanics such as the voice and its pace are set in agent configuration.
Spell-back confirmations
The letter-by-letter format is built in: when the agent spells something out, it uses caps with spaces (“M A R T H A”), and alphanumeric IDs like “BKDJ134” are read character by character automatically. What the prompt decides is when spelling happens. By default the agent spells only when confirming something easily misheard. If your flow must always confirm a detail, say so:
After collecting the caller’s email, spell it back to confirm.
For domain terms the agent should pronounce a certain way, use the pronunciation_dictionary in agent configuration rather than prompt phonetics.
Emotion
Our voices naturally carry emotion for a variety of contexts: brighter when greeting a customer, softer when apologizing. To steer them, use plain language in the persona and rules (“stay calm and reassuring, even when the caller is upset”).
Next Steps
When you change the prompt, measure the change: edit one thing at a time, grade a set of real conversations before and after, and use the agent’s version history in the dashboard to revert if the numbers regress. The evals guide shows how to grade conversations against plain-language criteria so prompt edits are driven by results.