How to Build an AI Voice Agent From Scratch
A no-code path from empty builder to live caller: what a voice agent is, how to pick a starting shape, and how to test and ship it.
- published
You can build an AI voice agent for a client without writing code. This walkthrough covers what a voice agent is, how to pick a shape for it, and how to get it live. It draws only on what the platforms say about themselves. For a wider look, see what an AI voice agent is. Our Retell review and Vapi review cover each platform in depth.
What a voice agent is made of
Every voice agent has three parts working as one. Vapi says every assistant combines speech-to-text, a large language model, and text-to-speech. Retell says STT, LLM, and TTS orchestrate into one voice stack.
Each part has a job. Vapi says speech-to-text converts user speech into text that your agent can understand. The large language model reads the conversation and writes the replies. Text-to-speech then reads those replies out loud.
Retell says voice agents are for calls and chat agents are for text. So this stack is what you build when the client needs something that talks on a phone line. Retell describes itself as a platform to build, test, deploy, and monitor AI voice and chat agents. Vapi describes itself as the developer platform for building voice AI agents.
Choose your starting point
Retell recommends starting with a single prompt. A single prompt agent defines your whole agent with one prompt. Retell says it lets the model decide how to run the conversation and use its tools.
Use a single prompt when the task can be described clearly in one prompt. Retell says having multiple steps does not, by itself, require conversation flow.
A conversation flow agent divides the task into nodes. Retell says every node carries its own instructions or its own actions. This gives tighter execution control or less context per node, which can matter for compliance requirements.
Do not jump to conversation flow early. Retell says to switch only when a single prompt agent can no longer meet your requirements. It also warns that a growing single prompt can make the model struggle to follow all of its instructions. So the signal to switch is a prompt that has grown too big to obey, not a task that has many steps.
Two things conversation flow does not give you. Retell says using it does not make every part of the agent deterministic. It is also not automatically more reliable. Single prompt agents need less design work and leave more decisions to the model.
Set up your agent's brain
The prompt is where the agent's behavior lives. Vapi says a template includes a first message and a system prompt written for a common use case. The first message is the line the assistant opens the call with.
Vapi says a model preset sets the transcriber, model, and voice for your goal. Model intelligence presets bundle a transcriber, model, and voice tuned for common use cases. A preset picks those three parts for you in one step.
Vapi says assistants use a single system prompt plus tools and structured outputs. So even a complex assistant keeps the same core shape: one prompt, some tools, and defined outputs.
Give your agent knowledge and tools
An agent that only talks is rarely enough. Retell says its knowledge base can crawl a website or take uploaded documents that your agent retrieves from. If the client has a support site, the agent can answer from it.
Vapi says tool integration links a voice agent to your APIs, databases, and existing systems. That is how the agent reaches the client's own systems. Only connect what the platform's own docs confirm works.
Test before you go live
Vapi's path to production is build, publish, test, and monitor.
Retell says simulation testing runs graded test cases to catch regressions before launch. Write test cases for the calls the client cares about, then run them and read the grades.
Retell says A/B testing compares agents or prompts by splitting live traffic between them. Use it when you have two versions and want real calls to pick a winner.
Go to production
Vapi says publishing an assistant creates a new assistant version. So each publish gives the assistant a new version.
Vapi says call logs let you review the transcript, recording, and how the call ended. Retell says live call monitoring lets you follow live transcripts, listen in, or take over a call. Watch the first live calls yourself rather than handing over and walking away.
When to scale up
Some calls are too big for one agent. Vapi says squads orchestrate multiple assistants with context-preserving transfers. Vapi offers two main primitives for building voice agents, designed for different use cases.
Retell lists warm transfer, IVR navigation, and DTMF capture among its call center features. These matter when the agent joins a client's phone setup rather than standing alone.
For agents that answer support lines, see our guide to an AI voice agent for customer service.
The short path
Start with a single prompt on Retell or a preset on Vapi. Retell's knowledge base and Vapi's tools come next. Test with Retell's graded cases or follow Vapi's path from publish to monitor. Retell says to switch to conversation flow only when a single prompt agent can no longer meet the client's needs.