Skip to main content

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:
Pass values via the API when initiating a call:

Industry Examples


Voice Models

Agni offers two real-time voice models optimized for different use cases:
When to use which? Start with Thunder for any customer-facing call where conversation quality matters. Use Thunder Lite when you need speed and volume — like outbound confirmation calls or simple FAQ handling.
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.
In your prompt instructions, add: “When reading email addresses aloud, say ‘at’ for the @ symbol and ‘dot’ for periods. Spell out the domain letter by letter if it’s uncommon.”

Phone Numbers

Break phone numbers into natural spoken groups. Never read them as one big number.
Add this to your prompt:

Dates & Times

Write dates the way you want them spoken — avoid numeric-only formats.
Add this to your prompt:

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

Avoid these common prompt pitfalls:

Testing Your Prompt

After writing your prompt:
  1. Web Call Test — Click “Start Web Call” in the agent builder to have a live conversation
  2. Edge Case Testing — Try asking off-topic questions to test guardrails
  3. Tone Check — Listen for natural, conversational speech vs robotic responses
  4. Transfer Test — Verify the agent transfers correctly when conditions are met
  5. Iterate — Refine based on real conversations. Small wording changes make big differences.

Need help?

Contact info@ravan.ai for prompt review and optimization advice.