← All skills
AI https://ai-skills-vault.pages.dev/skills/voice-agent-builder.md

Voice Agent Builder

A phone agent that handles real calls with sub-second turns.

Download .md All skills
Install URLhttps://ai-skills-vault.pages.dev/skills/voice-agent-builder.md
Install prompt tap to copy
Read the skill at https://ai-skills-vault.pages.dev/skills/voice-agent-builder.md and install it as a skill in your agent. Follow it exactly, including its checklists. Then ask me the questions it requires and do the work.

A voice agent is a latency problem wearing a conversation costume. Get the turn loop under 800 ms and the rest is ordinary engineering.

When to use this skill

Do NOT use for: high-stakes medical, legal or financial advice without a human handoff path, or emergency numbers.

Stage 1 - Define the job before the voice

Write the call contract:

  1. Who calls and what they want in their own words.
  2. Outcomes - the 3-6 states a call can end in (booked, answered, escalated, declined, callback).
  3. Tools the agent can call: check calendar, create booking, look up order, transfer to human.
  4. Hard limits - what it must never say, never promise, never charge.
  5. Handoff trigger - the exact conditions for transferring to a person, and the transfer target.
  6. Language(s) and accent handling; code-switching (Hindi/English) needs an explicit policy.

Every outcome must be reachable without the caller saying a magic phrase. The agent drives; the caller should not have to know the script.

Stage 2 - The latency budget (the whole game)

ComponentBudget
Caller stops speaking → end-of-turn detected200-300 ms
STT final transcript100-150 ms (streaming, not batch)
LLM first token300-400 ms
TTS first audio byte150-250 ms
Telephony jitter buffer60-100 ms
Total perceivedunder 800 ms

Techniques that actually move the number:

Stage 3 - Turn detection and barge-in

Stage 4 - Conversation design

Stage 5 - Tools and state

{"name":"book_slot","description":"Book an appointment. Only call after the caller confirms date and time.",
 "parameters":{"date":{"type":"string","format":"date"},"time":{"type":"string"},"name":{"type":"string"},"phone":{"type":"string"}}}

Stage 6 - Audio quality

Stage 7 - Compliance and safety

Stage 8 - Testing

  1. Scripted regression set - 25 real call recordings, replayed against every prompt change. Score: outcome reached, turns taken, latency p95.
  2. Adversarial set - interruptions, accents, background noise, angry caller, silence, off-topic, third-party on the line.
  3. Latency test on a real phone over 4G, not localhost.
  4. Tool failure injection - API down, timeout, partial data.
  5. Ship only if p95 perceived latency is under 1.2 s and the outcome rate beats the old IVR.

Stage 9 - Analytics

Track per call: outcome, turns, duration, p50/p95 latency, barge-in count, fallback count, transfer reason, sentiment at end. Review the 10 worst calls weekly - that is where the prompt fixes come from.

Quality checklist

Copy-ready agent prompt

Read the skill at the URL above. Start by writing my call contract: callers, outcomes, tools, hard limits, handoff triggers. Then design the turn loop with a latency budget, write the system prompt under 1,500 tokens, define the tool schemas with idempotency, and give me the fallback ladder and barge-in handling. Finish with the test plan and the analytics events to emit.
Copied