Skip to main content

Voice Agent Quality Index (VAQI)

A voice AI agent lives or dies on conversational feel — how fast it answers, how smoothly the turn passes between caller and agent, and whether the caller can interrupt it and be heard. The Voice Agent Quality Index (VAQI) measures exactly those three axes per session and rolls them up over a day window, so you can grade an agent’s real-time behavior instead of inferring it from call counts. VAQI is read-only analytics. It records metrics for sessions your voice AI agents handle (an active voice agent is required) and never touches the outbound call path.

Why a quality agent needs VAQI

VAQI answers one question: is the conversation mechanically healthy? Fast to answer, evenly paced turns, interruptions that land. It does not grade what the agent said. That job belongs to the evaluation layer, which scores transcripts for correctness, tone, and policy adherence. The two systems share a subject (your voice agents) and nothing else: different collectors, different cadence, different fix. Keep the split in mind when you configure alerts:
  • A VAQI regression is an infrastructure signal. Latency and barge-in health move when a provider, model endpoint, or network leg moves, usually before callers describe the symptom.
  • An evaluation regression is a content signal. The agent said the wrong thing at normal speed.
If both move on the same day, start from a model or prompt change that could shift behavior and latency together. If only VAQI moves, work through the stage columns in Reading p50 vs p95 and the pairings in Alerts and sentinel hooks.

What VAQI measures

Every completed voice-agent session contributes one metrics record with three families of numbers:
  • Latency. Time-to-first-byte (TTFB) per turn — the gap from the caller finishing their utterance to the agent’s audio starting — plus the cumulative time the pipeline spent in speech-to-text (STT), language-model (LLM), and text-to-speech (TTS) stages.
  • Turn-taking. How long the session lasted, how many caller↔agent turns it contained, and the per-turn gap statistics (average, minimum, and maximum) that tell you whether the agent consistently answers briskly or occasionally stalls.
  • Barge-in. How often the caller talked over the agent, and how often that interruption actually succeeded — the caller’s speech was captured and the agent yielded. A high barge-in count with a low success rate means the agent is steamrolling callers instead of listening.
Those three axes decompose into five metric families, each kept separate because it fails differently:

Time-to-first-byte

avg_ttfb_ms is the mean per-turn gap between the caller finishing an utterance and the agent’s audio starting. It is the number closest to how responsive the agent feels, and the first one callers notice when it slips. TTFB is also the aggregate your alerts should key on, because it absorbs every downstream stage into a single caller-facing figure.

Cumulative pipeline stages

total_stt_ms, total_llm_ms, and total_tts_ms accumulate the time each session spent transcribing, reasoning, and synthesizing. They exist to decompose a TTFB regression: a rising TTFB with a flat STT column points at the model or synthesis leg, not at telephony. Without the stage columns, a latency regression is a guess; with them, it is a pointer.

Turn-taking gaps

turns plus avg_turn_gap_ms, min_turn_gap_ms, and max_turn_gap_ms describe pacing rather than speed. The spread between average and maximum tells you whether the agent answers consistently briskly or stalls on particular turns; a wide spread with a modest average is the signature of a specific trigger phrase or tool call, not of a slow pipeline.

Barge-in

barge_in_count and barge_in_success_count measure whether the agent listens. The threshold at which an interruption yields the agent is configured per agent, in milliseconds, on the agent’s voice settings; a change to that threshold shows up here as a step change in barge_in_success_count within a day. Because barge-in success depends on the agent stopping its own audio quickly, it also moves when the TTS leg changes, which makes it an early sensor for provider swaps.

Session-level stats

duration_ms and turns anchor the rates. Barge-in rate is per turn and averages are per session, so a day whose mean session length halves while counts hold is itself a signal: callers hanging up earlier. Read the rates against these denominators before trusting them.

The session payload

Each session writes one JSON record with these fields: Records are kept per day per tenant, so the dashboard can window a rollup over recent days without scanning unrelated history. VAQI does not sample: every session that completes inside a day appends one record, and sessions land on the UTC day they complete. A record that is missing any numeric field above (or carries a non-finite value) is dropped from rollups rather than polluting the averages, and the drop is logged so a producer-side shape change surfaces as an event instead of a quiet drift.

The rollup

GET /api/v1/voice/vaqi reads up to days days of session records and reduces them to a dashboard-shaped aggregate. days is an integer between 1 and 30 (default 7).

The daily rollup contract

  • One row per UTC day, including empty days. The daily series emits a row for every day in the window even when that day recorded zero sessions, so a gap day stays visible in the table instead of vanishing.
  • The dashboard window is a subset of the API window. The endpoint accepts 1 to 30 days; the page’s picker offers 24 h / 7 d / 30 d.
  • Zero-valued gaps and TTFBs are excluded from the gap and TTFB aggregates. A turn that recorded no measurable silence would otherwise masquerade as an instant answer and drag the mean down.
  • P95 is computed at the true 95% rank on the sorted per-session values, so a small number of very slow turns shows up as a long P95 tail instead of being masked by a hard worst-case ceiling.
  • The rollup degrades to zeros, not to an error. If the metrics store is unreachable, the endpoint returns a zero-valued rollup with an empty daily series so the dashboard renders an empty state you can retry. Troubleshooting covers how to tell that apart from a genuinely quiet tenant.

Reading p50 vs p95

An average describes the typical session; the P95 describes the caller near the bad end. Regressions usually hit the tail first, because retries, congested regions, and slow synthesis edge cases pile up at the top of the distribution while the typical call stays fine. Reading only the average is how a one-caller-in-twenty bad experience ships for a week while the stat card stays green. A worked example. On Monday the page shows avg_ttfb_ms 620 and p95_ttfb_ms 950. On Tuesday, after a TTS provider change, it shows avg_ttfb_ms 700 and p95_ttfb_ms 2,100. The average says “13% slower,” which reads as noise; the P95 says one caller in twenty waited over two seconds, and the TTFB card is now past its 1,200 ms warn threshold. The stage averages localize it: avg_stt_ms 240 on both days, avg_llm_ms 310 on both days, avg_tts_ms 380 on Monday and 940 on Tuesday. The tail lives in the synthesis leg. The fix belongs at the provider configuration, not at the model and not at telephony. Two patterns to memorize:
  • P95 moves, average holds: a tail regression. One stage’s worst cases got worse (a synthesis tail, a retry storm, one congested region). Compare the stage averages to find the leg.
  • Average and P95 move together: a uniform shift, such as a slower model variant or an added network hop. Every call got slower by roughly the same amount.
And when max_turn_gap_ms is far above the P95 while the average holds, you are looking at a single outlier turn, typically one trigger phrase or tool call, not a systemic regression.

The dashboard page

Open Voice → VAQI in the dashboard (visible to owner, admin, and developer roles). The page offers a 24 h / 7 d / 30 d window picker, shows the aggregates above as stat cards, and renders the daily series so you can spot a regression day rather than a slow-moving drift. The window selection is carried in the URL as a days parameter (?days=1, ?days=7, or ?days=30; any other value falls back to 7), so a deep link reproduces the exact view, and the query refetches every 30 seconds while the page is open. Two cards carry warn thresholds: the TTFB card turns amber when p95_ttfb_ms crosses 1,200 ms, and the turn-gap card when p95_turn_gap_ms crosses 1,500 ms. Treat an amber card as “read the stage columns and the daily table now,” not as an incident by itself: a single 24 h window with few sessions can wobble past a threshold on a handful of calls. The rollup is tenant-wide. The page has no per-agent filter and does not retain per-session identifiers; to inspect one session, open that call under Voice → Calls, where the same signals appear for the individual call and the per-call intelligence endpoints complement the aggregate.

Alerts and sentinel hooks

Pair each VAQI field with the threshold that should fire on it: The same discipline as the messaging side applies. Operational sentinels defines the statuses your delivery-rate math must exclude; on the VAQI side the exclusions are the ones above (malformed records dropped, zero gaps excluded). Mirror that discipline in combined alerts: a day with sessions = 0 carries no quality signal at all, so never let an empty day count as “quality was fine,” and never average across it. For wiring these into KPI alerting with small-sample filtering, follow the guide’s alerting walkthrough.

VAQI vs conversation-level evaluations

VAQI and the evaluation layer are deliberately separate programs, and configuring one will not move the other: The evaluation pipeline that grades content has its own queue and its own failure modes; see Agent eval queue for how it processes sessions. Scorecards for human agents are a third, separate program: see Quality Management API. An agent can hold a perfect TTFB and still fail evaluations, and an agent with a degraded TTS tail can still answer correctly; grade both, alert on both, fix them in different places.

Walkthrough: the page top to bottom

Reading the page in the order it renders:
  1. Header and window picker. The title row carries the 24 h / 7 d / 30 d picker at the right. The picker state is in the URL, so what you see is what a teammate sees when you share the link.
  2. First stat row, four cards. Sessions (with average turns per session as the sub-line), average duration, TTFB as avg / p95, and turn gap as avg / p95. The two latency cards are the ones with warn states: amber border and value once p95_ttfb_ms crosses 1,200 ms or p95_turn_gap_ms crosses 1,500 ms.
  3. Stage row, three cards. Average STT, LLM, and TTS latency per session. This is the row that localizes a latency regression to a leg, as in the worked example above.
  4. Barge-in row, two cards. Barge-in rate (percentage of turns interrupted) and barge-in success (percentage of interruptions where the agent yielded cleanly). Read them as a pair: high rate with low success means callers are trying to interrupt and not getting through.
  5. Daily breakdown table. One row per UTC day, oldest first: sessions, average turn gap, average TTFB. This is where a regression day shows up as a step between otherwise similar rows, and where a collector gap shows up as a zero-sessions row between two reporting days.
Two non-data states matter. A tenant with no completed sessions in the window gets an empty state (“No voice AI sessions yet for this period.”), which is the honest “nothing to grade yet.” A failed rollup fetch gets a distinct error card with a Retry action and the note that sessions are still being recorded while the dashboard itself cannot load; if you see that card, the recording path is fine and only the read failed.

Troubleshooting

sessions = 0 on a day that had traffic

The daily table shows a zero-sessions row for a date you know carried completed calls. VAQI records land when a session completes, so first check that the calls in question actually finished (abandoned or in-flight sessions contribute nothing). If they finished, the collection path missed that window: the zero row stays visible by design so the gap is never papered over, and days after the gap report normally. There is nothing to reconfigure; completed sessions from then on repopulate the series, and the gap day remains distinguishable from a genuinely quiet day only by comparing against the call log, which is exactly the comparison to make before trusting any average that spans the gap.

Sudden barge-in success drop after a TTS provider change

barge_in_success_rate fell step-wise right after you swapped TTS providers or edited the per-agent barge-in threshold. Barge-in success requires the agent to stop its own audio quickly, so a provider whose synthesis tail is slower or whose streams cancel less cleanly lowers the success rate even when callers interrupt at the same rate. Read the step in barge_in_success_rate next to the step in avg_tts_ms in the daily table; if both moved on the same date, the provider change is the cause. Before rolling a threshold change out, run the voice simulation with a p95 barge-in latency cap so the regression is caught pre-production instead of in the rollup.

Every card reads zero although calls are happening

The rollup degrades to a zero-valued response when the metrics store is unreachable, and the page then shows the empty state rather than an error. If you are certain sessions completed inside the window, refetch after a minute and check the status page; the distinct error card with Retry only appears when the API call itself fails, so the empty state plus confirmed traffic is the signature of a degraded metrics read, not of missing data.

See also

  • Voice API — the full voice surface, including the per-call intelligence endpoints VAQI aggregates complement
  • Quality Management API — human-agent scorecards and calibration, which is a separate program from AI-agent VAQI
  • Voice call lifecycle — the session lifecycle these metrics instrument
  • Operational sentinels — the messaging-side exclusion discipline these alerting rules mirror
  • VAQI guide — picking windows, setting thresholds, and wiring a regression into KPI alerts
  • Agent eval queue — the content-grading pipeline that VAQI complements