Real Studios

IVR with LLM: how to build a voice menu that understands callers

Decorative watercolor title card for an LLM IVR guide

An IVR with an LLM replaces the "press 1 for sales" menu with a conversation. The caller says what they need in their own words. A language model works out the intent, the system answers or routes the call, and a human takes over when the request cannot be resolved. This guide covers how it works, which parts you need, how to test and launch it, and what UK businesses must check on privacy and transparency.

TL;DR

  • An LLM IVR listens to free speech, classifies intent and routes or answers. It needs no fixed DTMF menu tree.
  • The build has five parts: telephony, an audio bridge, speech-to-text, the language model and text-to-speech.
  • Always design the exit: clarifying questions, retries, a fallback and a warm transfer to a person with context.
  • Test before launch, then go live on a share of calls and watch closely.
  • In the UK, tell callers they are speaking to AI, be clear about recording, and protect stored audio and transcripts.

Table of Contents

What an LLM-powered IVR is

A traditional IVR plays pre-recorded options and waits for a keypress or a fixed phrase. If your reason for calling does not fit a menu item, you hit the wrong branch or end up at a general queue.

An LLM-powered IVR works differently. In one Voice API tutorial for an AI IVR, the caller reaches an AI agent that understands what they want in their own words. The agent then patches a human agent into the live call, with no fixed DTMF menu tree.

The practical differences:

Traditional IVRLLM-powered IVR
InputKeypresses or fixed phrasesNatural speech
MenuFixed tree, built in advanceIntent detected from what the caller says
GreetingStatic recordingCan be generated dynamically
Unclear requestRepeats the menuAsks a short clarifying question
ChangesRe-record and re-wire branchesUpdate the prompt, tools and routing rules

The model does not have to run the whole call. In many deployments it only does the first job: understanding why the person called and sending them to the right place. That narrow role is quick to build and easy to measure.

How a call is handled from start to finish

The flow is the same in most designs.

  1. Answer. The telephony platform picks up the call.
  2. Greet. The system plays a greeting. It can be generated from your menu configuration, so it reflects your current services and opening hours.
  3. Listen. The caller speaks. Speech-to-text turns the audio into text.
  4. Classify. The LLM decides what the caller wants.
  5. Act. The system answers, looks up data through a tool, routes the call or escalates.
  6. Close or transfer. The call ends with a resolution, or a person takes it.

In the Voice API example, the classifier returns one of two things: a routing decision, such as a single word matching an intent, or a short clarifying question spoken back to the caller. This keeps the model's output constrained, which helps speed and predictability.

A separate build guide for natural-language IVR with a call control API describes a similar loop: answer, fetch the menu configuration, generate a conversational greeting, gather speech, route the intent with an LLM and transfer. When the model cannot understand the caller after several retries, it falls back to keyword matching. If that fails, it transfers to a default operator number.

That last point is the design principle to copy. Every path should end somewhere useful. A caller should never be stuck in a loop.

What you need to connect an LLM to a phone system

A real-time voice agent has five moving pieces: a telephony engine, an audio bridge, speech-to-text, a language model and text-to-speech.

There are two common ways to put them together, as set out in documentation for an AI voice agent on a programmable telephony platform:

  • Bridge to a SIP-based agent provider. The provider owns the whole audio conversation. This is faster to stand up, with less control over the voice loop.
  • Run your own realtime loop. You connect your own speech-to-text, language model and text-to-speech over a media stream, and your code stays in the media path. You supply the prompt, tools and hooks. The platform component owns the media stream and vendor connection, including tool dispatch and barge-in, so callers can interrupt.

A third option sits between them. With a relay-style setup, the call is bridged to a WebSocket server. The platform handles speech-to-text and text-to-speech, and your server only sees transcribed turns and replies in text. For a first project this is often the simplest route, because you work with text and leave the audio to the platform.

Choosing the telephony layer

Your existing phone system sets the options. If you run a hosted or on-premise business phone service, ask whether it exposes an API, SIP trunking or call forwarding to an external voice platform. Some UK providers now sell AI-powered phone systems for automated reception and call handling as part of the telephony package, which suits businesses that want the line and the call handling from one supplier.

If the voice agent has to read or write customer data, plan the integrations early. Booking systems, CRMs, order databases and ticketing tools are where an LLM IVR stops being a demo. Without them it can only talk, not resolve.

Keep the model fast

Latency decides whether a voice agent feels natural. The Voice API tutorial's production guidance includes using a fast, inexpensive model, setting temperature to 0 and keeping the system prompt short. A classifier that returns one word does not need a large reasoning model. Save the larger models for steps that need them.

Which calls suit an LLM IVR

The best candidates share three traits: high volume, a limited number of reasons for calling, and answers that sit in a system you control.

Typical fits:

  • Call routing and triage. Sorting callers into sales, support, billing or a named team by what they say.
  • Opening hours, location and policy questions. Answers grounded in your own documents through retrieval (RAG).
  • Appointment and booking requests. Collecting details and writing them to your booking system.
  • Order and status enquiries. Looking up a reference and reading back the status.
  • After-hours capture. Taking a message with the reason, name and number, and passing a summary to the team.

Calls to hand to a person straight away: complaints that need judgement, vulnerable callers, anything involving a dispute, and any caller who asks for a human. Build that last rule in from the start.

Begin with two or three call types and widen as the data shows where the system succeeds. A narrow first release is quicker to launch and easier to improve.

Routing and handing over to a person

The handoff is the part callers remember. Two patterns are common, and most production systems use both:

  • Agent to agent. A triage agent classifies intent with an LLM and routes to a specialist agent, for example billing or bookings.
  • Agent to human. When the request is out of scope, or the caller asks for a person, the call transfers to a live agent with the context packaged for them.

The quality of that transfer depends on what travels with the call. A cold transfer drops the caller into a queue, and they repeat themselves. A warm transfer passes a short summary and the reason for the call, so the person starts informed. One documented recipe has the agent queue the call into a skill group with a one-line reason shown on the agent's screen, keeping the same call identifier throughout.

Practical rules for your design:

  • Offer a human on request at any point.
  • Transfer after a set number of failed attempts to understand the caller.
  • Allow only one transfer per call. The Voice API tutorial guards with a per-connection flag so a second transcribed turn cannot dial a second agent leg.
  • Send the transcript or summary into the CRM or ticket, so the record exists even if the call drops.
  • Route out-of-hours calls to a message or callback flow, not a ringing phone.

How to test and launch

A voice agent that works in a demo can fail on real callers: accents, background noise, long sentences, people who change their mind halfway. Test for that before launch.

Build an AI IVR That Routes Calls Without Phone Trees

A contact centre implementation guide recommends quality assurance tests across interactions, commands and responses, load tests for call volumes, and team demos in which staff call the system using the phrasing customers are likely to use. It also suggests launching with a percentage of calls first and having support monitor the early calls.

A workable sequence:

  1. Define the call types in scope and what "resolved" means for each.
  2. Write test scripts from real call recordings or enquiry logs, including awkward ones.
  3. Run staff calls to catch wrong routes and awkward wording.
  4. Load test for your busiest hour, not your average.
  5. Launch to a share of calls, with an easy path back to the old menu.
  6. Review transcripts weekly and adjust prompts, tools and routing.

For larger programmes, automated evaluation helps. One published approach uses persona-based simulations that compare what should happen with what happened, with scored transcripts that can be compared across prompt, tool and model changes before a version goes live. Even a small version of this, a fixed set of test calls re-run after every change, stops regressions.

If you are replacing an existing IVR, the call flows already contain years of business rules. Cloud migration guidance shows a staged process for this: generating and testing bot and IVR definitions with iterative validation. Read your current flows first. They tell you which intents matter.

UK privacy, transparency and security

This is the section to settle before you build, not after.

Tell callers it is AI. Guidance on AI regulation says AI voice assistants handling inbound or outbound calls must disclose that they are AI, in the customer's language. That article discusses the EU AI Act, so check which rules apply to your own operations. Disclosing at the start of the call is good practice in the UK either way, and it builds trust.

Be clear about recording. Tell callers when a call is recorded, how long the data is kept and what it is used for. Decide whether you need recordings at all. Transcripts of routed calls may be enough.

Keep consent records. A UK-focused guide on AI voice calls says ICO investigations expect consent audit trails showing who consented, when, by which mechanism, to which organisation and for which call type. If your agent makes outbound calls, take this seriously and take advice from a data protection specialist or solicitor on PECR and UK GDPR.

Secure stored audio. Recordings kept in the cloud create risk when access is loosely controlled. Mitigations include encryption, audit logs and strict retention policies.

A short checklist to agree with your data protection lead:

  • Greeting states that the caller is speaking to an automated assistant.
  • Recording and retention are explained in plain words.
  • Personal data goes only to suppliers you have contracts with.
  • Transcripts are retained for a fixed period, then deleted.
  • Any caller can reach a person without argument, including callers who find speech systems difficult to use.

The last point is also an accessibility matter. A voice-only system can exclude people with speech or hearing difficulties, so keep a keypad or human route available.

Our perspective

Most voice automation projects fail on scope, not technology. A business tries to automate every call type at once, and the agent does none of them well.

We start with the calls that cost the most time and follow a clear pattern: routing, booking, status and common questions. We connect the agent to your own systems through integrations, so it can complete tasks and not just talk about them. We aim to show a working demo in days, so you can hear it handle your own call types before committing to a wider build.

We design the handoff as carefully as the conversation. A caller who reaches a person with the context already attached is a caller who stays. Our scopes are fixed in price, our work is designed with GDPR in mind, and you own the AI solution we build. After launch we stay on to improve it from real call data.

Oded

Building it with Real Studios

We build AI agents for UK businesses, including voice, chat and email agents with retrieval over your own content, along with the automations and integrations that connect them to your systems. If you want an LLM IVR scoped around your call types, see our AI integrations and enablement service, or look at the full list on our services page. If you want to prove the idea first, our Rapid MVPs service is built for that.

FAQ

Does an LLM IVR replace human agents?

No. It takes the first part of the call: understanding the request and handling routine tasks. When it cannot resolve a call, or the caller asks for a person, it should transfer to a human with context. Teams usually find their people spend more time on calls that need judgement.

Do I need to replace my phone system?

Not necessarily. What matters is whether your current system can forward calls or connect through SIP or an API to a voice platform. Check this with your telephony supplier before choosing an approach.

How do I stop the AI giving wrong answers?

Keep the model's job narrow. Use a classifier that returns a fixed set of intents, ground answers in your own documents, and give it tools for live data. Add a fallback to keyword matching and then to a person when understanding fails.

Do callers have to be told they are speaking to AI?

Yes, you should tell them at the start of the call. Regulation on AI transparency expects disclosure, and clear recording and data-use notices are part of UK GDPR good practice. Agree the wording with your data protection lead or legal adviser.

Sources

Recommended

All guides