# What is an AI voice agent? How to build one | APIFleet

> What is an AI voice agent? It listens, reasons with a language model and speaks on live calls. See how it works, how it differs from an IVR and what it costs.

Canonical URL: https://apifleet.dev/blog/what-is-an-ai-voice-agent
Last updated: 2026-11-24
Markdown Mirror URL: https://apifleet.dev/blog/what-is-an-ai-voice-agent.md
LLM index: https://apifleet.dev/llms.txt
MCP discovery: https://apifleet.dev/.well-known/mcp.json

What is an AI voice agent? It is software that holds a live spoken conversation on a call: it listens, decides with a language model that can call tools, and answers in a synthetic voice, handing the caller to a person when needed. APIFleet configures that loop through one API.

APIFleet team · 24 November 2026 · 12 min read

## What is an AI voice agent, and what makes it an agent?

An AI voice agent is software that takes a spoken part in a phone or browser call. It hears the caller, uses a language model to decide what to say or do next, and replies in a synthetic voice.

The word agent matters because the model can act, not only talk. It can call a tool, such as a lookup in your own system, and say the result in its next sentence.

The word voice matters too, because speech brings timing problems that text does not. A caller can interrupt, pause in the middle of a number or go quiet, so the agent needs rules for when a turn is over.

You will also see the same idea called a voice AI agent, an AI phone agent or a voice bot. Voice AI is the underlying technology: speech recognition, language models and speech synthesis. Conversational AI voice agents, the kind this guide describes, are assistants built on that technology with instructions, a voice, tools and usually a phone number.

## How does an AI voice agent work on a call?

It runs one loop for the whole call: connect, listen, take turns, decide, act, speak, then finish or hand over. The table follows a call through those stages and names the APIFleet setting behind each one.

Taking turns is the least obvious stage. Turn detection decides when the caller has finished, and the options are semantic\_vad (the default for new assistants), server\_vad and, on OpenAI only, none; Gemini Live requires automatic turn detection.

The turn\_eagerness setting, set to auto, low, medium or high, tunes how quickly the agent decides the caller is done. The wait\_for\_user tool is always available: when a turn holds only silence, background noise or no intelligible request, the assistant calls this no-op and waits without speaking.

One call, stage by stage, and the APIFleet setting behind each stage

| Stage | What happens | What you set in APIFleet |
| --- | --- | --- |
| Connect | The caller dials a number at your carrier, and the carrier routes the call and its audio to APIFleet | PUT /numbers/{number} binds an existing carrier number to one assistant; the carrier voice webhook is set up separately |
| Listen | Caller audio becomes meaning, either inside one speech-to-speech model or through a separate transcriber | pipeline\_mode: realtime or cascading; stt\_provider for cascading |
| Take turns | The system decides when the caller has finished and handles interruptions | turn\_detection and turn\_eagerness |
| Decide | A language model reads your instructions, your knowledge documents and the conversation, then chooses what to say or which tool to call | instructions, first\_message, model (llm\_model on a cascading assistant) and knowledge documents |
| Act | The model calls your HTTPS endpoint and receives the result | POST /tools, attached with PUT /assistants/{id}/tools |
| Speak | A synthetic voice says the reply to the caller | voice for realtime; tts\_provider and tts\_voice for cascading |
| Finish or hand over | The agent ends the call, or moves it to a person | end\_call, on by default; transfer\_phone\_numbers adds transfer\_call |
| Record | APIFleet stores the transcript, tool events and costs, and sends signed events to your backend | GET /calls; POST /webhooks with call.started and call.ended |

## Speech-to-speech or cascading: which architecture?

Use realtime, the default, unless you need a particular voice or provider control; then use cascading. In realtime mode one speech-to-speech model, from OpenAI or Gemini, takes the caller's audio and produces the reply audio over a single connection.

OpenAI's Realtime guide describes such a model as working directly with audio, keeping conversation state and calling tools. Google's Live API overview lists barge-in and tool use among the features of Gemini Live.

Cascading splits the job into three legs: a transcriber turns speech into text, a language model writes the reply, and a text-to-speech voice says it. The APIFleet docs give the reason to cascade as voice coverage and deterministic provider controls, for example an explicitly regional voice instead of an accent the model is only prompted to use.

The same docs call per-minute cost roughly comparable, with text-to-speech, billed by characters or tokens, as the expensive leg. They call cascading latency somewhat higher, because each turn pays for end-of-speech detection plus a model round trip before speech begins.

A cascading assistant sets each leg in the create request, for example {"pipeline\_mode": "cascading", "stt\_provider": "deepgram", "stt\_model": "nova-3", "llm\_model": "gpt-4.1-mini", "tts\_provider": "soniox", "tts\_voice": "Adrian"}.

Tools, knowledge, webhooks, recordings, transcripts and post-call analytics behave the same in both modes. The speech-to-speech data post linked below measures latency and cost on the realtime side.

Realtime and cascading assistants compared on what you configure

| Aspect | Realtime (the default) | Cascading |
| --- | --- | --- |
| What runs | One speech-to-speech model over one connection | A transcriber, a language model and a text-to-speech voice, chosen separately |
| Set with | realtime\_provider (openai or gemini), model, voice | stt\_provider, stt\_model, llm\_model, tts\_provider, tts\_voice |
| Defaults | gpt-realtime-2.1 with the voice marin on OpenAI; gemini-3.8-live with the voice Aoede on Gemini | Fields you leave empty use the server defaults |
| Providers | OpenAI Realtime and Gemini Live | Transcription from Deepgram or Gemini; voice from Azure, Polly, ElevenLabs, Cartesia, Telnyx, Soniox, Deepgram, Gemini or self-hosted Piper |
| Reason to choose it | The simpler default, with fewer parts to configure | Voice coverage and deterministic provider controls, as the docs put it |
| Cost lines in the call log | cost\_openai is the model leg | cost\_stt and cost\_tts appear beside cost\_openai |
| Latency | No separate transcription step | Somewhat higher, according to the docs |

## How is an AI voice agent different from an IVR, a chatbot or a voice assistant?

An IVR is a phone menu: it plays prompts and routes the caller by keypad digits or a short list of spoken options. An AI voice agent also answers the phone, but a language model chooses each next step instead of a menu tree drawn in advance.

A chatbot is the text version of the same idea, and a voice assistant usually handles one spoken request at a time. The table compares all four on the points that change how you build and run them.

An AI voice agent can still take keypad input. On Telnyx calls a pressed key reaches the model as a text turn such as \[Caller pressed keypad: 1\], so a prompt like "press 1 for sales" works when the instructions tell the model to treat keypad input as a choice.

AI voice agent vs IVR vs chatbot vs voice assistant, on six points

| Point | IVR | Chatbot | Voice assistant | AI voice agent |
| --- | --- | --- | --- | --- |
| Input | Keypad digits or a few fixed spoken options | Typed text | Spoken requests, usually one at a time | Free speech on a live call, interruptions included |
| Flow | A menu tree drawn in advance | A script or a text model | One request, one reply | An open conversation guided by instructions; the model picks the next step |
| Actions | Routes the call or plays a recording | Calls the systems its builder connected | Runs device or app functions | Calls your HTTP tools during the call and speaks the result |
| Changing it | Redraw the tree and re-record prompts | Edit the script or the prompt | Usually set by the maker of the product | Edit instructions, tools and knowledge, then re-run your tests |
| Typical failure | No branch fits what the caller wants | A wrong or vague answer in text that can be reread | A misheard command | A misheard or wrong answer said aloud, so it needs tests, call logs and a human transfer |
| Choose it when | A few fixed paths that a keypad menu covers | The person is already on a page or in an app and can type | The task is one command on a device or in an app | Callers describe open-ended needs, or the answer needs a lookup or a short conversation |

## What can an AI voice agent do during a call?

A bare assistant can talk, wait quietly and end the call. Knowledge documents, HTTP tools and a transfer list are what let it do real work, and each one is optional.

A tool call is a round trip. The model asks, APIFleet sends your endpoint a signed request, and your answer comes back as the next thing the model can say.

Keep tool answers short and speakable, and treat a timed-out write as an unknown result rather than a failure. The voice agent tools checklist linked below covers success and failure responses in detail.

Handing the call to a person is listed for Telnyx and Twilio calls only, and it is a direct transfer, not a warm one. The tool reports success when the transfer command is accepted, which is not the same as someone picking up, so rehearse the unanswered case before you rely on it.

What an AI voice agent can do on an APIFleet call, and how you add it

| Capability | How you add it | What to know |
| --- | --- | --- |
| Answer from your own text | POST /knowledge, then PUT /assistants/{id}/knowledge | Plain-text documents go into the prompt at the start of every call, with no embeddings; the docs cap them at 50 KB each and 200 KB per call, and excess is truncated |
| Look up or change data | POST /tools, then PUT /assistants/{id}/tools | A public HTTPS endpoint with JSON Schema parameters and a timeout from 500 to 30000 ms; the response goes back to the model |
| Stay quiet on noise | Always available: wait\_for\_user | A turn that holds only silence or noise gets no spoken reply |
| End the call | On by default: end\_call | Switch it off with end\_call\_enabled set to false |
| Hand the call to a person | transfer\_phone\_numbers, a list of E.164 numbers, adds transfer\_call | Listed for Telnyx and Twilio calls only; the model can pick only a saved number and is told to announce the transfer first |

## How are AI voice agents built?

You configure an assistant, attach tools and knowledge, bind a phone number, test it and watch the calls. With APIFleet that is five API steps, and most have a matching tool on the MCP server at https://apifleet.dev/mcp, so a coding agent can do the same work.

The REST base is https://apifleet.dev with a workspace key sent as a Bearer token. Saving an assistant places no call and binding a number buys none, but browser tests, simulations and real calls use paid provider time.

New workspace access is currently limited, so read the API reference and the pricing page linked below before you plan a launch. The customer service build guide shows the same path for one use case, and the testing guide explains how to design the scenarios.

1. Create the assistant. POST /assistants with a body such as {"name": "Front desk", "instructions": "Answer questions about opening hours and bookings.", "first\_message": "Thanks for calling, how can I help?", "pipeline\_mode": "realtime"}, and add a voice or speech providers if you do not want the defaults.
2. Attach what it needs. POST /tools for each system it must reach and PUT /assistants/{id}/tools to attach them, then POST /knowledge for static answers and PUT /assistants/{id}/knowledge to attach those.
3. Bind a number. PUT /numbers/{number} with assistant\_id and provider, which is telnyx unless you set twilio, voximplant or voipcloud. It binds a number you already own, and you point the carrier's voice webhook at APIFleet separately.
4. Test before real callers. Use Test in browser in the dashboard, then simulations: a persona is a mock caller, a scenario sets its goal and the pass or fail checks, and a run can use chat mode first and voice mode second.
5. Watch the calls. Read GET /calls for transcripts, tool events and costs, and register a call.ended webhook with POST /webhooks.

## What does an AI voice agent cost per minute?

On APIFleet the platform fee is $0.03 per connected AI minute, billed per second, with no monthly subscription. The fee is connected seconds divided by 60, times $0.03, so a 90-second call carries $0.045 and a 240-second call $0.12. Across 10,000 connected minutes the fee is $300.

That is the platform fee only, not an all-in price. The model, transcription, voice and carrier are billed on top, and usage you pay directly through your own provider credentials is not charged a second time by APIFleet.

You fund the workspace with prepaid top-ups, which are wallet funding and not a recurring subscription. To turn the fee into a budget, put your own provider and carrier rates into the cost calculator, or call the apifleet\_estimate\_call\_cost tool on the MCP server, which does not place a call or spend credits.

The voice agent costs guide linked below explains how to compare quotes, and the pricing page shows the fee beside a worked example.

The parts of an AI voice agent's per-minute cost

| Part | Who bills it | How it is counted | Where you see it |
| --- | --- | --- | --- |
| Platform fee | APIFleet | $0.03 per connected AI minute, billed per second | The pricing page and the cost calculator |
| Model | The model provider if you use your own provider credentials; otherwise APIFleet, added on top of the platform fee | Depends on the model and your configuration | cost\_openai in the call log, which the docs describe as the model leg |
| Transcription and voice | On a cascading assistant, the speech providers if you use your own provider credentials; otherwise APIFleet, added on top of the platform fee | Depends on the providers; text-to-speech is billed by characters or tokens, per the docs | cost\_stt and cost\_tts in the call log |
| Carrier | Your carrier | Depends on route, destination and account | Your carrier account |

## Is it safe to use voice AI?

It can be, if you keep the agent's scope narrow, test it before real callers and keep a person to hand over to. A model can mishear a name, misread a number or say something that sounds right and is wrong, and on a call the caller hears it at once.

APIFleet's default prompt tells the assistant to ask one short clarification instead of guessing at unclear speech, and to say so plainly and collect the question when its instructions and knowledge lack the answer. Those are instructions to the model, not guarantees, so check them in your own test calls.

Before real callers, run simulations in chat and voice mode, open a browser test, then call from your own phone. The free configuration checker runs seven explicit checks in your browser before your first test.

Keep a human number in transfer\_phone\_numbers, give each tool the smallest scope it needs, and read the call logs after launch. As of 24 November 2026 APIFleet has no call queue, hold music or workforce management and does not brief the person who answers, so those stay in your own phone system and process.

Rules on recording calls and on telling callers they are speaking to an AI differ by country and state, so check the rules where you operate. The APIFleet docs also ask you to check your call flow against the recording-consent laws that apply to your callers.

![Diagram of one conversation: caller audio, speech to the model, tools and context, then the spoken reply, with platform, provider and carrier usage as separate costs](https://apifleet.dev/content/voice-agent-workflow.svg)

## Continue with a practical next step

- [Compare latency and cost across speech-to-speech models](https://apifleet.dev/blog/speech-to-speech-models)
- [Design tool results a caller can hear](https://apifleet.dev/blog/voice-agent-tools)
- [See the step-by-step build for one customer service line](https://apifleet.dev/blog/ai-voice-agent-customer-service)
- [Test the conversation, not just the happy path](https://apifleet.dev/blog/test-voice-agents)
- [Split a call into platform, provider and carrier costs](https://apifleet.dev/blog/voice-agent-costs)
- [Estimate your own cost per minute with the calculator](https://apifleet.dev/tools/voice-agent-cost-calculator)
- [Run seven configuration checks on an assistant](https://apifleet.dev/tools/assistant-config-checker)
- [Read the API reference for assistants, numbers and calls](https://apifleet.dev/docs/api)
- [Manage the same resources over MCP](https://apifleet.dev/docs/mcp)
- [Check the platform fee on the pricing page](https://apifleet.dev/pricing)

## Frequently asked questions

### What is the meaning of an AI agent?

An AI agent is a language model set up with instructions and tools so it can choose actions toward a goal, not only write text. An AI voice agent is the same idea on a call: it listens, decides, may call a tool, and speaks the result.

### How is an AI voice agent different from an IVR system?

An IVR follows a menu tree of keypad or spoken options that you draw in advance. An AI voice agent takes free speech and lets a language model choose the next step, including calling your tools, so it needs tests and a human transfer for the cases it gets wrong.

### How is AI used in a voice assistant?

AI does three jobs: speech recognition turns audio into words or meaning, a language model decides the reply or action, and speech synthesis says it. A speech-to-speech model handles audio directly, while a cascading pipeline keeps the three jobs as separate services.

### How exactly are AI voice agents built?

You configure an assistant with instructions, a voice or speech providers, tools and knowledge, bind a carrier number to it, test it, and read the call logs. On APIFleet that is POST /assistants, POST /tools, PUT /numbers/{number}, simulations and GET /calls.

### Is it safe to use voice AI?

It depends on what the agent can do and how you test it. Models can mishear or invent answers, so limit tool scope, run simulations and a browser test before real callers, keep a human transfer number, and check recording and disclosure rules where you operate.

### How much does an AI voice agent cost per minute?

On APIFleet the platform fee is $0.03 per connected AI minute, billed per second, so a 90-second call carries $0.045 and 10,000 minutes carry $300. Model, speech and carrier usage are billed on top, so use the cost calculator with your own rates.

## Sources and evidence

- [OpenAI Realtime API guide: a speech-to-speech voice agent model](https://developers.openai.com/api/docs/guides/realtime) · observed 2026-11-24
- [Gemini Live API overview](https://aistudio.google.com/docs/live-api) · observed 2026-11-24
- [APIFleet API documentation: assistants, tools, simulations and call logs](https://apifleet.dev/docs) · observed 2026-11-24

Prepared with AI assistance and checked against the linked evidence. Examples are illustrative unless explicitly documented as measured results.

## Next on your reading list.

[AI voice agent for customer service: build guide](https://apifleet.dev/blog/ai-voice-agent-customer-service)[What does a voice agent actually cost?](https://apifleet.dev/blog/voice-agent-costs)[Test the conversation, not just the happy path](https://apifleet.dev/blog/test-voice-agents)

## Related

- [APIFleet](https://apifleet.dev/)
- [Documentation](https://apifleet.dev/docs)
- [Pricing](https://apifleet.dev/pricing)
