Key Moments

Building Voice Agents with Vapi & AssemblyAI

AssemblyAIAssemblyAI
Entertainment5 min read25 min video
Feb 26, 2025|1,025 views|29
Save to Pod

Want to know something specific about what's covered?

We've already dissected every moment. Ask and we will deliver (with timestamps).

TL;DR

AI voice agents can now conduct complex customer service calls and training simulations, but issues with hallucination and noisy environments still pose challenges.

Key Insights

1

The performance, speed, and cost of transcription, LLMs, and text-to-speech models have improved significantly, reaching human-like performance when orchestrated together.

2

Vapi's workflow platform allows for step-by-step conversational logic, mitigating the hallucination issues common with long, complex prompts, especially with smaller models like GPT 3.5.

3

The Vapi platform integrates with various LLMs (e.g., Anthropic's Claude 3, OpenAI models) and text-to-speech providers (e.g., 11 Labs), allowing users to bring their own API keys or use Vapi's preferred pricing.

4

The demo showcased a voice agent simulating a dental office appointment booking, with a total latency across transcription, LLM, and text-to-speech of approximately 1200-1500 milliseconds.

5

Handling interruptions in voice agents relies on fast transcription (under 300ms) and voice activity detection to gracefully back off and allow the user to speak.

6

Background voice cancellation remains a challenge, as transcription models are tuned to pick up all speech, requiring custom models or smarter transcription that can ignore background noise.

The rise of human-like AI voice agents

The recent surge in AI voice agents is driven by dramatic improvements in underlying AI models. Transcription, Large Language Models (LLMs), and text-to-speech (TTS) technologies have become significantly faster, cheaper, and more performant. This convergence has reached a point where AI can orchestrate these models to achieve human-level conversational abilities, effectively passing the Turing test in many interactions. Companies are investing heavily because users naturally prefer interacting with systems that communicate like humans. This technological leap has unlocked new possibilities across various sectors, making sophisticated voice interactions a reality for businesses and consumers alike.

Unforeseen use cases and core functionalities

While initially focused on enterprise solutions like appointment scheduling, AI voice agents have found surprising value in niche areas. Jordan, CEO of Vapi, highlighted applications in training and coaching, such as role-playing scenarios for call center agents and sales teams. Entertainment applications, like conversing with fictional characters, have also emerged. However, the most significant value remains in customer service, where the sheer volume of annual phone calls represents a massive opportunity to reduce costs and improve customer experience by minimizing hold times. Vapi aims to serve both enterprise needs and consumer-facing applications.

Real-time interaction and platform integration

Effective voice agents require more than just understanding; they need to process speech in real-time. AssemblyAI's streaming API offers high-accuracy transcription with low latency, typically within a few hundred milliseconds, which is crucial for fluid conversations. Vapi acts as the bridge between these powerful models and production-ready voice agents. Their platform allows users to configure and deploy agents, integrating components like AssemblyAI's streaming transcription, LLMs (including options from OpenAI and Anthropic), and TTS providers like 11 Labs. The demo illustrated this by showcasing an assistant configured for a dental office, capable of gathering appointment details and pushing them to a spreadsheet.

Managing latency and cost across the stack

In real-time conversational applications, minimizing latency is paramount to maintaining conversational flow. Vapi's platform provides visibility into costs and latency across the entire stack. For a typical agent, transcription might take 100-300 milliseconds, an LLM like GPT-4 Mini could add 300 milliseconds, and TTS might add another 300 milliseconds. The goal is to keep the total latency between 1200-1500 milliseconds. This tight control over latency and cost is essential for creating seamless user experiences, and Vapi allows users to either use their own API keys or leverage Vapi's preferred pricing with underlying providers.

From prompts to workflows for reliable logic

A significant challenge with complex AI agents is prompt engineering, where long or intricate prompts can lead models to hallucinate or go off-track, especially with smaller, lower-latency models. Vapi addresses this by introducing a workflow platform. Instead of relying solely on prompts, users can design step-by-step conversational flows. This ensures that the agent follows a predetermined logic, such as confirming details, making API requests, or transferring calls, guaranteeing a more predictable and secure business process. Users can build these workflows from scratch using various block types, including actions, information gathering, API calls, and conditional logic.

Handling interruptions and maintaining context

User interruptions are a critical part of natural conversation. Vapi handles this through a combination of Voice Activity Detection (VAD) models to identify speech and rapid transcription services. When speech is detected and transcribed within milliseconds, the agent can intelligently back off or adjust its response. Maintaining conversational context is also key. While prompt-based systems might lose context over long conversations due to token limits, Vapi's workflow platform is developing 'global state' or 'global memory' capabilities. This allows agents to save and recall information from earlier in the conversation, ensuring continuity even if a specific workflow step lacks direct context.

Navigating noisy environments and hybrid human-AI models

Real-world environments are rarely quiet, presenting challenges for voice agents. While background noise cancellation is a relatively solved problem, background *voice* cancellation is more complex. Transcription models are designed to capture all speech, including background conversations. Vapi employs custom background voice cancellation models and filters audio before transcription, but smarter, more intelligent transcription models that can be instructed to ignore background speech are still needed. Furthermore, the adoption of AI voice agents is often not a 'rip and replace' scenario. It's more common for AI agents to augment human agents, handling routine tasks (like IVR systems or repetitive transactional calls) to free up humans for higher-value work or escalations. Vapi facilitates smooth handoffs, including 'warm transfers' where the AI can brief the human agent before the caller is connected.

Future of voice agents: Speech-to-speech and regulated industries

Looking ahead, the most exciting development is the advent of native speech-to-speech models. These models can natively process audio input and generate audio output, eliminating the latency and context loss associated with chaining separate transcription, LLM, and TTS models. This end-to-end approach allows agents to better interpret nuances like frustration and respond more empathetically. While progress has been slower than anticipated, these models are expected to significantly improve latency and conversational quality. In regulated industries like telehealth, where data privacy is paramount, Vapi provides contractual guarantees and architectural designs to ensure no patient data is stored or trained on, making their platform suitable for highly sensitive applications due to the high ROI potential.

Building and Deploying Voice Agents with Vapi

Practical takeaways from this episode

Do This

Use Vapi's platform to integrate transcription, LLM, and text-to-speech models.
Leverage Vapi's workflows for structured and reliable business logic execution.
Bring your own API keys or use Vapi's preferred pricing for model providers.
Consider Vapi's platform for building voice data products beyond simple API calls.
Utilize Vapi's handoff mechanisms for smooth escalation to human agents.
Ensure data privacy and security for sensitive applications like telehealth.
Explore speech-to-speech models for reduced latency and more natural interactions.

Avoid This

Rely solely on complex prompts for intricate conversational flows, as they can lead to hallucinations.
Expect basic transcription models to perfectly handle background voice cancellation.
Replace human agents entirely; instead, aim for a hybrid approach where AI handles routine tasks.
Underestimate the importance of low latency for a fluid conversational experience.

Common Questions

AI voice agents are gaining traction because transcription, LLM, and text-to-speech models have become significantly faster, cheaper, and more performant. This advancement allows them to approach human-level performance when orchestrated together, making voice interactions with AI feel more natural and accessible.

Topics

Mentioned in this video

More from AssemblyAI

View all 53 summaries

Ask anything from this episode.

Save it, chat with it, and connect it to Claude or ChatGPT. Get cited answers from the actual content — and build your own knowledge base of every podcast and video you care about.

Get Started Free