Back to Blog
Published:
Last Updated:
Recently Updated
Enterprise Voice AIChapter 1

Designing a Non-Scripted Voice Interview Agent on Ultravox

8 min read
1,500 words
medium priority
Mudassir Marwat

Mudassir Marwat

Founder & CEO, Cognilium AI

Designing a Non-Scripted Voice Interview Agent on Ultravox — Cognilium AI

TL;DR

Voice screening that adapts to the candidate instead of reading a script — follow-ups, multi-language, and prompt structure.

A scripted voice screen reads from a list. A non-scripted one adapts to what the candidate just said. The first feels like a robocall; the second feels like a person who came prepared. Building the second on a voice agent platform requires structuring the prompt around goals rather than turns.

Goals, not scripts

The system prompt for an interview agent has three things: a role description, a list of goals to cover before ending the call, and a small library of soft-redirect phrases. There is no question script. The agent picks the next question based on (a) which goals are still uncovered, and (b) what the candidate just said.

Concretely, the goals list for a senior backend role looks like: "Confirm 5+ years of production backend experience. Get a specific story about a system they shipped at scale. Probe for distributed systems knowledge. Ask about a failure they handled. Confirm interest and availability." The agent covers these in any order the conversation suggests, with one follow-up allowed per goal.

The follow-up classifier

After every candidate response, a small classifier (a 3-class fine-tune on a few hundred labeled responses) predicts: {complete, vague, off-topic}. Complete → mark goal covered, move to next goal. Vague → emit one follow-up at most ("can you walk me through that decision in more detail?"). Off-topic → use a soft-redirect from the library back to the active goal.

The hard cap of one follow-up per goal is critical. Without it, the agent rabbit-holes on edge cases and runs out of time before covering the role basics. Coverage > depth, on a screening call.

Latency on the voice path

  • VAD end-of-speech detection: ~150ms
  • Streaming STT: partial transcripts available before speaker stops; final ~300ms after
  • LLM (the goal-tracker + next-question generator): ~600ms first-token, runs concurrently with the rest
  • TTS first chunk: ~250ms — speaker hears the first phoneme this fast
  • Total perceived gap: ~1.2-1.5 sec from "candidate stops" to "agent starts speaking"

Multi-language without forking the role definition

Ultravox handles language detection at the audio layer. The system prompt asks the model to respond in the candidate's language. The goals list is stored once in English and translated server-side per language at session start (cached). Adding a new language is a translation task, not a prompt-engineering one.

What we measured

  • Coverage rate (all goals hit per call): 96.8% in production
  • Average call length: 8-12 minutes (vs. 30-45 minutes for human screen)
  • Candidate sentiment tracked by post-interview survey across 12 languages
  • Cost per screen: ~$15 (Ultravox + LLM) vs. $850 average human screen at the orgs we benchmarked

Share this article

The work behind this series

Multilingual voice agents, from pilot on one number to a full rollout.

Mudassir Marwat

Mudassir Marwat

Founder & CEO, Cognilium AI

Mudassir Marwat's argument is that ERP systems record decisions they never optimise.

Founder & CEO of Cognilium AI; 37 AI agents in production across four products; 4 production AI products built and operated; three clouds in production (AWSGCPAzure)
Agentic AIRAG → GraphRAG retrievalVoice AIMulti-Agent Orchestration

Frequently Asked Questions

Find answers to common questions about the topics covered in this article.

A small classifier on the response transcript classifies the answer as {complete, vague, off-topic}. Complete → next planned question. Vague → one follow-up at most. Off-topic → gentle redirect. Hard cap of 1 follow-up per planned question prevents conversational drift.
The system prompt has a goals list (the topics that must be covered before ending) and a soft-redirect phrase library. The agent tracks coverage and redirects with phrases like "interesting — coming back to your experience with X…" rather than hard transitions.
Ultravox handles language detection on the audio side. The system prompt includes "respond in the candidate's language" and the goals list is translated server-side per language. We keep a single goals list per role, generated translations cached.
Sub-1.5 second response after candidate stops speaking. Breakdown: ~150ms VAD detection of end-of-speech, ~300ms transcription, ~600ms LLM, ~250ms TTS first-chunk, ~150ms network. Tight but achievable on Ultravox.
Two metrics. Coverage: did the agent hit all goals before ending? (target >95%). Candidate sentiment via post-call survey: would you do this again? (target >4.2/5). Both surface in the ops dashboard within 24 hours of each call.

Still have questions?

Get in touch with our team for personalized assistance.

Contact Us

Still have a question this did not answer?

The person who wrote this article answers these. Describe your setup and what you are stuck on — you will get a straight answer, including where we think the approach is wrong.

Related Articles

Continue exploring related topics and insights from our content library.

Enterprise Voice AI: Real Latency, Real Compliance, Real Money
11 min
1
Mudassir Marwat
May 4, 2026

Enterprise Voice AI: Real Latency, Real Compliance, Real Money

Sub-1.5s p95 voice AI on Twilio + ElevenLabs + Whisper, designed for HIPAA and SOC2. The decisions that mattered, and the ones we got wrong twice.

words
Read Article
Voice AI Latency Budget Deep Dive: Where the 1.5 Seconds Goes
7 min
2
Mudassir Marwat
May 5, 2026

Voice AI Latency Budget Deep Dive: Where the 1.5 Seconds Goes

A line-by-line breakdown of the sub-1.5-second p95 latency budget — VAD, streaming STT, first-token LLM, streaming TTS, network — and the optimizations that buy each milestone.

words
Read Article
Sentiment-Driven Escalation in a 22-Language Voice Support Agent
7 min
3
Mudassir Marwat
May 5, 2026

Sentiment-Driven Escalation in a 22-Language Voice Support Agent

Real-time sentiment scoring drives the human handoff; full conversation context, transcript, and detected intent travel with it. Resolution starts immediately.

words
Read Article

Explore More Insights

Discover more expert articles on AI, engineering, and technology trends.

Personalized for You

Curated content recommendations based on your current reading and interests.

Voice AI architecture diagram showing Twilio call routing into Whisper STT, an LLM, and ElevenLabs TTS with the per-stage latency budget.
Trending
116%

Enterprise Voice AI: Real Latency, Real Compliance, Real Money

Same topic cluster: Enterprise Voice AI
Same author: Mudassir Marwat

Sub-1.5s p95 voice AI on Twilio + ElevenLabs + Whisper, designed for HIPAA and SOC2. The decisions that mattered, and the ones we got wrong twice.

Mudassir Marwat
11 min read
Enterprise Voice AI
Read Article
A spiral staircase seen from directly above
Recommended
37%

What is agentic RAG, and when is the extra loop worth it?

High priority content
Related topic cluster: Enterprise GraphRAG & Knowledge Systems

Classic RAG retrieves once and answers. Agentic RAG lets the model decide whether to retrieve, what to ask for, and when to stop. Here is what that costs.

Ali Ahmed
6 min read
Enterprise GraphRAG & Knowledge Systems
Read Article
Sentiment-Driven Escalation in a 22-Language Voice Support Agent — Cognilium AI
For You
109%

Sentiment-Driven Escalation in a 22-Language Voice Support Agent

Same topic cluster: Enterprise Voice AI
Same author: Mudassir Marwat

Real-time sentiment scoring drives the human handoff; full conversation context, transcript, and detected intent travel with it. Resolution starts immediately.

Mudassir Marwat
7 min read
Enterprise Voice AI
Read Article
Voice AI Latency Budget Deep Dive: Where the 1.5 Seconds Goes — Cognilium AI
For You
109%

Voice AI Latency Budget Deep Dive: Where the 1.5 Seconds Goes

Same topic cluster: Enterprise Voice AI
Same author: Mudassir Marwat

A line-by-line breakdown of the sub-1.5-second p95 latency budget — VAD, streaming STT, first-token LLM, streaming TTS, network — and the optimizations that buy each milestone.

Mudassir Marwat
7 min read
Enterprise Voice AI
Read Article
Zero-Trust Multi-Tenant Firestore: Middleware, Claims, and 60+ Wildcard Permissions — Cognilium AI
Trending
79%

Zero-Trust Multi-Tenant Firestore: Middleware, Claims, and 60+ Wildcard Permissions

Same author: Mudassir Marwat
Related topic cluster: Enterprise Document AI

Hard tenant isolation on Firestore: middleware, immutable claims, wildcard permissions. The architecture that makes leakage structurally impossible.

Mudassir Marwat
9 min read
Enterprise Document AI
Read Article
The 8-Stage Document Intelligence Pipeline — Cognilium AI
Trending
71%

The 8-Stage Document Intelligence Pipeline

Same author: Mudassir Marwat
Related topic cluster: Enterprise Document AI

Parse, classify, evidence-map, extract, validate, score, graph, link. The eight-stage pipeline for legal/financial document AI.

Mudassir Marwat
11 min read
Enterprise Document AI
Read Article

Smart Recommendations

Our AI analyzes topic clusters, author expertise, and content relationships to surface the most relevant articles for you.

Topic Matching
Author Expertise
Content Quality
Personal Interests

Questions on this?

Talk to an engineer

Schedule a call