The Three Core Layers

1. Speech-to-Text (STT)

When a caller speaks, their audio is streamed to a speech recognition model in real time. The STT layer converts spoken words to text within milliseconds. Modern systems like Deepgram achieve this with 95–98% accuracy on phone-quality audio and stream output word-by-word as the caller speaks — rather than waiting for a pause — which dramatically reduces latency.

2. Large Language Model (LLM)

The transcribed text is sent to a large language model — typically GPT-4o, Claude, or a fine-tuned equivalent. The LLM reads the caller's message in context with the full conversation history and the agent's system instructions, then generates a response. The system instructions define the agent's identity, knowledge, conversation goals, and the tools it can call.

This is where the intelligence lives. The LLM decides what question to ask next, how to handle an objection, when to offer a booking, and when to escalate to a human. The quality of the system prompt — how the agent is configured — determines the quality of every conversation.

3. Text-to-Speech (TTS)

The LLM's text response is converted to natural-sounding audio by a TTS engine. Modern neural TTS systems (ElevenLabs, Azure Neural TTS, Play.ht) produce voices that are difficult to distinguish from a human speaker. Voice selection, pace, and tone are configurable — most businesses choose a voice that fits their brand personality.

Tool Calls: How AI Takes Action

Beyond conversation, AI voice agents can execute real-world actions through function calls — sometimes called "tool calls." During a call, the LLM can trigger:

  • Calendar check — query Google Calendar or Calendly for available appointment slots
  • Booking creation — create a calendar event and send confirmation
  • CRM push — create or update a contact record with call data
  • SMS send — trigger a Twilio or similar SMS to the caller
  • Webhook trigger — notify an automation platform (n8n, Zapier, Make) of a completed interaction

These tools run in parallel with the conversation — the AI retrieves calendar availability and reads it back to the caller in under a second.

Latency and Why It Matters

The total time from a caller finishing a sentence to hearing the AI's response is called end-to-end latency. In 2022, this was often 3–5 seconds — clearly robotic. In 2026, well-optimized systems achieve 500–900ms, which feels like a natural conversational pause.

Latency is driven by: STT model speed, LLM token generation speed, TTS rendering speed, and network round trips between services. Production AI voice platforms optimize each step to minimize total latency.

A Complete Call Flow

Timeline of a single AI call interaction

0ms — Inbound call received. AI answers immediately.

0–3,000ms — AI delivers greeting via TTS.

3,000–6,000ms — Caller speaks. STT transcribes in real time.

6,000–6,800ms — LLM processes transcript, generates response.

6,800–7,500ms — TTS renders and delivers response audio.

Call end — Tool calls execute: CRM updated, SMS sent, booking confirmed.

Total elapsed: 3–8 minutes for a complete qualification and booking call.