Debugging voice agents
Overview
Voice agents involve multiple AI systems working together—speech recognition, language models, and voice synthesis. When something goes wrong, systematic debugging helps you quickly identify and fix the root cause.
Most common issues fall into these categories:
Quick diagnostics
Start with these immediate checks before diving deeper:
Test in dashboard
Test your voice agent directly in the dashboard:
Benefits:
- Eliminates phone network variables
- Provides real-time transcript view
- Shows tool execution results immediately
Verify provider status
Check if AI service providers are experiencing issues:
Core Services:
- Visit Vapi Status Page for Vapi service status
Provider Status Pages:
- OpenAI Status for OpenAI language models
- Anthropic Status for Anthropic language models
- ElevenLabs Status for ElevenLabs voice synthesis
- Deepgram Status for Deepgram speech-to-text
- Gladia Status for Gladia speech-to-text
- And other providers’ status pages as needed
Dashboard debugging resources
The Vapi dashboard provides powerful debugging features to help you identify and fix issues quickly:
Call logs
Open Logs → Calls to:
- Review available call transcripts
- Check call duration and completion status
- Identify where calls failed or ended unexpectedly
- See tool execution results and errors
- Analyze conversation flow
API request logs
Open Logs → API to:
- Inspect logged API requests and responses
- Review recorded
401and403responses - Verify request payloads and response codes
- Debug integrations that call the Vapi API
Webhook logs
Open Logs → Webhooks to:
- Verify logged webhook deliveries to your server
- Check server response codes and timing
- Debug webhook authentication issues
- Monitor event delivery failures
Use the Vapi CLI to forward webhooks to your local development server:
vapi listen is a local forwarder that requires a separate tunneling service. Update your webhook URLs in Vapi to use the tunnel’s public URL. Learn more →
Simulations and Evals
Use Simulations to reproduce a problem across a complete conversation and check the final outcome. Use Evals to isolate a specific decision, such as choosing a tool, asking for missing information, or escalating the call.
See testing voice agents for guidance on choosing a test and turning production failures into regression coverage.
Tool testing
The Dashboard can test API request, function, and Model Context Protocol (MCP) tools. To test one from Tools:
- Select the tool.
- Select Test.
- Configure and run the test in the panel.
- Review the response and any error details.
Speech and language issues
Debug steps for response quality:
- Review system prompt - Navigate to your assistant in the dashboard and check the system prompt specificity
- Check model configuration - Scroll down to
Modelsection and verify:- You’re using an appropriate model (e.g.,
gpt-4o) Max Tokensis sufficient for response length- Necessary tools are enabled and configured correctly
- You’re using an appropriate model (e.g.,
Tool and variable debugging
Variable extraction details:
Common error patterns
For a complete list of error codes and what they mean, see Call end reasons. To diagnose a failed call by symptom (e.g., “call dropped mid-conversation” or “assistant went silent”), see Troubleshoot call errors.
Getting help
When you’re stuck:
Before asking for help:
- Include the call ID and timestamp from Logs → Calls
- Describe expected vs. actual behavior
- Share relevant configuration (without API keys)
- Include error messages from dashboard logs