The Rise of AI Voice Agents

Voice Assistants

How AI voice agents work, where they help a business most, and how we build one with n8n, Deepgram and ElevenLabs that answers in under a second.

Voice is the most natural interface humans have. We learned it before we learned to walk. AI voice agents are now sophisticated enough to handle real business conversations — not just "set a timer" commands, but nuanced, context-aware dialogues that drive outcomes. Here's how to build them.

The Voice AI Stack

A voice agent isn't a single technology — it's a pipeline of three distinct AI systems working in near real-time.

Speech-to-Text (STT) The user speaks. Audio is captured and transcribed into text. Tools like Deepgram, AssemblyAI, and OpenAI Whisper handle this. Latency matters enormously — anything over 300ms feels unnatural. Deepgram's Nova model currently leads on both speed and accuracy for conversational audio.

Language Model (LLM) The transcribed text hits your LLM — Claude, GPT-4o, or Gemini — which processes the conversation history, applies your system prompt, potentially calls tools, and generates a response. This is the thinking layer.

Text-to-Speech (TTS) The LLM's text response is converted back to audio and played to the user. ElevenLabs leads this space with voices genuinely indistinguishable from human speech. The voice you choose becomes your brand — invest time in selecting and customizing it.

"The latency triangle — STT speed, LLM response time, TTS generation — is the central engineering challenge of voice AI. Optimize each leg, then optimize the handoffs between them."

Where Voice AI Creates Real Value

Customer Support — Handle tier-1 support calls 24/7. Resolve common issues, collect information, and route complex cases to humans — all in natural conversation.

Sales Qualification — Outbound voice agents can call leads, qualify interest, answer objections, and book discovery calls directly into your calendar.

Appointment Booking — Medical practices, salons, and service businesses use voice AI to handle scheduling entirely via phone — no app or website required.

Internal Assistants — Give your team a voice interface to your internal tools. "What's the status of order 4521?" answered instantly by querying your database aloud.

Building a Voice Agent with n8n + ElevenLabs

  1. Set Up Audio Capture — Use Twilio for phone calls or a WebRTC widget for web-based voice. Both stream audio to a webhook endpoint in real time.

  2. Transcribe with Deepgram — Send audio chunks to Deepgram's streaming API. Configure endpointing so it knows when the user has finished speaking — this prevents the agent from interrupting.

  3. Process with Claude via n8n — The transcript triggers an n8n workflow that builds the conversation context, calls the Claude API with your system prompt, handles any tool calls, and returns the response text.

  4. Synthesize with ElevenLabs — Send the response text to ElevenLabs' streaming TTS API. Start playing audio as soon as the first chunks arrive — don't wait for the full file. This cuts perceived latency in half.

  5. Handle Interruptions Gracefully — When the user speaks while the agent is talking, stop playback immediately and process the new input. Nothing feels more robotic than an agent that talks over you.

Target Latency: Under 1 Second

STT transcription: 100–200ms · LLM first token: 300–500ms · TTS first audio chunk: 200–300ms. Total perceived latency: under 1 second is achievable and expected.

What's Next for Voice AI

The next frontier is real-time multimodal voice — agents that can hear you, see your screen, and take action simultaneously. The latency is dropping fast, the voices are getting more expressive, and the integrations are getting deeper. Within two years, the question won't be "should we build a voice agent?" — it will be "why don't all our customer touchpoints have one?"

At The Pir Square, we design and build production voice agents tailored to your business — from pipeline architecture to voice selection to workflow automation. Book a free discovery call to explore what's possible.