Coding with AI

Voice Agent Development

Last updated 2026-07-28

What's new

2026-07-28
  • Anthropic released Opus 5, a new AI model that's better than Fable in most areas and costs half as much, making it great for knowledge work and coding tasks.
  • Anthropic and OpenAI both launched voice features, allowing users to control their AI tools (like Codex and Claude) with their voice in real time.
  • Opus 5 can be tested in the Claude desktop app, and it's particularly good at creating detailed presentations, though it may take a long time to complete tasks.
  • The new voice mode in the Claude iOS app lets you interact with Opus 5 and even edit Notion documents using your voice.

Key points

What it is

  • A voice agent is an AI system that understands and responds to spoken language in real time, like a person.
  • It's built using speech-to-text (converting speech to written words), a language model (AI that generates responses), and text-to-speech (turning text back into spoken words).
  • Voice agents enable practical, human-like interactions, going beyond simple chatbots.
  • They can handle complex tasks like live tutoring, meeting assistance, and sales calls.

How to use it

  • Start by planning the conversation flow, as voice calls can have many possible paths.
  • Use no-code platforms like XAI's voice agent builder to create agents without coding from scratch.
  • Configure your agent by setting the system prompt (instructions for behavior), first message, and knowledge base (documents for answers).
  • Keep the large language model (LLM, the AI brain) as a helper that follows a strict script for reliable conversations.

Watch out for

  • Avoid letting the LLM drive the entire conversation, as it may skip steps, loop, or end calls early.
  • Prioritize speed over model size to prevent latency (delays) that make users think the agent is unresponsive.
  • Handle interruptions and noisy environments explicitly for natural conversations.
  • Test with real users, not just demos, to uncover issues like skipped steps or loops.

Tools named

  • XAI voice agent builder (no-code platform for creating voice agents), ElevenLabs (full agent platform), Vapi (voice agent platform), Claude Code (setup tool), Ace (live AI voice tutor)

Lesson 1: What is Voice Agent Development and why it matters

A voice agent is an AI system that can understand spoken language, process it, and respond verbally in real time. Instead of typing a question and reading a reply, you simply talk to it like a person. Voice agent development is the process of building these conversational systems using speech-to-text (converting spoken words to text), a language model (AI that generates responses), and text-to-speech (turning text back into spoken words). Together, these components form a pipeline architecture (a sequence of processing steps) that powers production voice agents today.

Voice agents matter for AI development because they move AI beyond chatbots into practical, human-like interactions. Tools like voice agent builder from XAI offer no-code platforms, letting developers create agents at 5 cents per minute without coding from scratch. Companies like ElevenLabs now provide full agent platforms used by Revolut for customer support. This shift means voice AI is becoming mature, with commercial and open-source tools widely available. The key challenge is not building the technology, but designing how humans will naturally talk to robots and AI systems.

Voice agents unlock applications far beyond simple commands. They enable live tutoring, AI meeting assistants, real-time code copilots, automated presentations, and sales calls that qualify leads before a human takes over. Turn detection (the agent knowing when you pause versus finish speaking) makes conversations feel natural. As one developer noted, managing these agents will feel like managing people, except they work 24/7. For beginners, building a voice agent is now as simple as recording a demo or wiring a few services together, making it a critical skill for modern AI development.

Sources

Lesson 2: How to use Voice Agent Development: step-by-step

To build a voice agent (an AI that talks on the phone), start with a wireframe (a simple plan or flowchart) because voice calls have many possible paths. For example, if a caller asks about pricing versus hours, the agent must react differently. After planning, configure your agent on a platform like ElevenLabs or Vapi. You must manually set the system prompt (instructions for how the agent behaves), the first message, and the knowledge base (documents the agent reads to answer questions). Tools like Claude Code can do this setup with one terminal command, making the process much faster.

Joel Allou and Ornella Bahidika from Microsoft built a live voice tutor called Ace. Their key insight: do not let the large language model (LLM—the brain of the agent) drive the conversation. If you give the LLM full control, it may skip steps, decide the call is finished early, or get stuck in a loop. Instead, keep the LLM as a helper that follows a strict script you control. This keeps the call reliable.

Other experts from AWS, like Chintan Agrawal and Daniel Wirjo, built voice agents that handle interruptions gracefully, which is essential for natural calls. And Rishabh Bhargava from Together AI focuses on engineering for low latency (fast response time) and high quality. Start small, test with real users, and control the script tightly. That is how you go from a shaky demo to a dependable voice agent.

Sources

Lesson 3: Best practices and pitfalls

Voice Agent Development: Pitfalls, Mistakes, and Best Practices

The biggest mistake in voice agent development is letting the large language model (LLM, the AI that generates responses) drive the entire conversation. Joel Allou and Ornella Bahidika from Microsoft built Ace, a live AI voice tutor, and found that when the LLM controls multi-step workflows, it often skips steps, loops endlessly, or decides it’s done early. Their fix: build a structured pipeline where the LLM is not in charge. A pipeline architecture (a sequence of separate components for speech recognition, decision-making, and speech output) is now the dominant production approach.

Latency is the silent killer. A one-second pause makes users think the agent has died. You don’t need a frontier model (the largest, most expensive AI model) to avoid this. Ace runs on a small model on purpose — it’s faster and not a compromise because response speed matters more than maximum intelligence. Turn-taking — how the system knows when you’ve finished speaking — is an audio engineering problem, not an LLM problem. You must handle interruptions and noisy environments explicitly; some models now improve at listening in restaurants or busy streets.

To avoid common pitfalls, do not rebuild from scratch. Wrapping an existing chat agent with a voice engine (a component that converts text to speech and speech to text) is faster and more reliable than building a full voice platform yourself. Use the tools and SDKs already available. Finally, test with real users, not just demos. Demos never show the agent skipping steps or looping. Introduce the user to the practice of pipeline design, keeping the LLM as a limited component rather than the conductor, and prioritize speed over model size.

Sources