Understanding Voice Automation
Introduction
Voice automation enables organizations to manage inbound phone calls without needing a human agent to answer each call. It contains a range of solutions, from simple menu systems that direct callers to the appropriate department to fully conversational AI agents that comprehend natural language and retain context. All these solutions are based on programmable call flows that react to user inputs, whether through speech or keypad selection.
This guide explains the key concepts of voice automation with the Vonage Voice API, outlines three implementation approaches, and helps you select the right one for your needs.
Simple IVR
An Interactive Voice Response (IVR) system automates phone interactions by providing callers with a menu of options. When a caller dials a number, they hear a prompt like: Please enter a digit or say something. The system responds based on their input.
Traditional IVRs depend on keypad (DTMF) input, which refers to the tones generated when a caller presses keys on their phone. Modern IVR implementations can accept spoken responses in addition to keypad input.
Advanced IVR / Voice Bot
An Advanced IVR / Voice Bot can support natural language understanding when you integrate an NLU/LLM in your application. For example, a caller can say Why is the sky blue? and your application can interpret the intent, ask follow-up questions, and either resolve the issue or direct the caller to the appropriate team while maintaining the conversation's context. This approach typically uses webhooks to control the call flow.
AI Voice Agent
An AI Voice Agent handles phone calls through a real-time audio interface. With the Vonage Voice API, your application uses WebSocket connections to stream audio between Vonage and a voice agent platform. The platform receives caller audio and returns agent audio without exposing a separate Speech-to-Text workflow to your application. This approach supports low-latency interactions and experiences such as barge-in.
HTTP Webhooks and WebSocket Streaming
HTTP webhooks and WebSocket streaming are complementary building blocks in a Voice API integration. Webhooks control the call flow and report call lifecycle events, while WebSocket connections carry audio between Vonage and your application in real time.
HTTP Webhooks: The Vonage Voice API sends HTTP requests to your application as the call progresses. Your application can return a Call Control Object (NCCO) to tell Vonage what to do next. For details, see the Voice API Webhooks Reference.
WebSocket Streaming: A persistent, full-duplex connection streams audio between the Vonage Voice platform and your application. This supports low-latency processing for implementations such as an AI Voice Agent. For details, see WebSockets in the Vonage Voice API.
A WebSocket integration still uses webhooks. For example, your application can respond to the Answer webhook with an NCCO that connects the call to a WebSocket endpoint. Vonage continues to send Event webhooks for call status changes and WebSocket connection events.
Choosing the Approach
The capabilities below describe what a typical implementation can provide (your application and chosen AI providers), not built-in Voice API features.
| Simple IVR | Advanced IVR / Voice Bot | AI Voice Agent | |
|---|---|---|---|
| Best for | High-volume, predictable interactions | Complex, multi-turn conversations | Real-time, latency-sensitive experiences |
| Input type | Keypad (DTMF) + speech input | Natural language speech | Natural language speech |
| Can support natural language (with NLU/LLM) | |||
| Can maintain conversation context | |||
| Response latency | Standard (HTTP webhook) | Standard (HTTP webhook) | Low (WebSocket streaming) |
| Example implementation uses |
Further Reading
Explore the following how-to guides to learn how to implement the solutions discussed in this guide:
- Simple IVR: Create a programmable call flow that captures both keypad and speech input, forming the foundation for any voice automation solution.
- Advanced IVR / Voice Bot: Develop a conversational voice bot powered by OpenAI. It handles natural language, maintains conversation context, and transfers to a human agent when needed.
- AI Voice Agent: Build a real-time AI voice agent using WebSocket streaming and Deepgram's Voice Agent platform.