Writing Effective Agent Prompts
Your system prompt is the single most important factor in how your voice agent performs. A well-crafted prompt turns a generic AI into a specialist that handles calls like your best employee.Prompt Structure
Every effective agent prompt follows this structure:Identity
Who is the agent? Give it a name, role, and personality.“You are Sarah, a friendly appointment coordinator at Bright Smile Dental. You’re warm, professional, and efficient.”
Objective
What should the agent accomplish on every call?“Your goal is to schedule, reschedule, or cancel dental appointments. Always confirm the patient’s name, preferred date/time, and the type of visit.”
Instructions
Step-by-step behavior rules and conversation flow.“1. Greet the caller warmly. 2. Ask how you can help today. 3. If scheduling, check availability. 4. Confirm all details before booking.”
Guardrails
What the agent should NOT do.“Never provide medical advice. Never share other patients’ information. If asked about billing, transfer to the billing department.”
Prompt Template
Use this as a starting point for any agent:Dynamic Variables
Personalize every call with dynamic variables using{{variable_name}} syntax:
Industry Examples
Customer Support Agent
Customer Support Agent
Appointment Booking Agent
Appointment Booking Agent
Outbound Sales Agent
Outbound Sales Agent
Healthcare Follow-up Agent
Healthcare Follow-up Agent
Voice Models
Agni offers two real-time voice models optimized for different use cases:
Temperature guide:
- 0.1 - 0.3 — Strict, deterministic. Good for data collection and form-filling.
- 0.4 - 0.6 — Balanced. Good for customer support and appointment booking.
- 0.7 - 0.9 — Creative, varied. Good for sales and casual conversations.
Pronunciation Guide
Voice agents read text aloud, so how you write things in your prompt directly affects how they sound. Use these techniques to make your agent pronounce emails, phone numbers, dates, and other tricky content naturally.Email Addresses
Write emails exactly as you want them spoken. Use “at” and “dot” in plain words.Phone Numbers
Break phone numbers into natural spoken groups. Never read them as one big number.Dates & Times
Write dates the way you want them spoken — avoid numeric-only formats.Date of Birth
When collecting or confirming date of birth, instruct the agent to repeat it back clearly:Dollar Amounts & Numbers
Addresses
Break addresses into natural spoken chunks:Spelling Out Names & Codes
For anything that needs to be spelled out (confirmation codes, names, etc.):General Pronunciation Tips
Add these instructions to any agent prompt for cleaner speech:Common Mistakes
Testing Your Prompt
After writing your prompt:- Web Call Test — Click “Start Web Call” in the agent builder to have a live conversation
- Edge Case Testing — Try asking off-topic questions to test guardrails
- Tone Check — Listen for natural, conversational speech vs robotic responses
- Transfer Test — Verify the agent transfers correctly when conditions are met
- Iterate — Refine based on real conversations. Small wording changes make big differences.
Need help?
Contact info@ravan.ai for prompt review and optimization advice.

