Topic 3 of 5 · 5 min read
Scoring task success in voice conversations
Goal: Score a set of voice test calls for task success using tool logs and a rubric, and attribute each failure to transcription, reasoning or speech.
Score a voice call by what happened in the world, read from tool logs, and use a transcript rubric only for what the logs cannot show. Then label each failure as a transcription, reasoning or speech error, because each has a different fix.
Check yourself · 1 of 3
A call ends with the agent saying "You are all set for Friday". What is the most reliable way to score task success?
Why it matters
A friendly call can still fail. The agent says "You are booked for Friday" while the booking tool was never called, or was called with the wrong date. Judging by how the transcript reads rewards confidence. The tool log shows the outcome.
How to do it
- Define success per scenario, before the run. For a booking: one
create_bookingcall, with the right date, time and name, and no duplicate calls. - Check the outcome with code. Compare the logged arguments to the expected values. Code graders are cheap, repeatable and exact.
- Grade the rest with a rubric. Did the agent read details back? Did it hand over when asked? A rubric with yes/no criteria and a second LLM as judge works, as long as you check the judge against some human labels.
- Attribute each failure. Compare what the caller said (known in a simulation) with the transcript, and the transcript with the agent's action:
- Transcript differs from what was said: a transcription error. Word error rate, from tools such as JiWER, measures it overall.
- Transcript is right but the action is wrong: a reasoning error.
- Action is right but the caller heard something else, such as a date read as "fifteen" and then "fifty": a speech error.
- Report per scenario and per cause. A pass rate alone says little.
Before and after
Before: "92 of 100 calls sounded good."
After, from the logs of one test run:
{
"scenario": "reschedule-to-15th",
"expected": { "tool": "move_booking", "date": "2026-03-15", "calls": 1 },
"actual": { "tool": "move_booking", "date": "2026-03-50", "calls": 1 },
"caller_said": "the fifteenth",
"agent_transcript": "the fiftieth",
"verdict": "fail",
"cause": "transcription"
}
The agent acted on exactly what the transcript said, so the fix is in speech recognition (a better model or custom vocabulary), not in the prompt. A date check in the tool would also have rejected the impossible day 50.
What goes wrong
- Trusting the agent's last sentence. It may claim success without calling the tool.
- An LLM judge with no check. Judges favour fluent answers. Compare with human labels on a sample.
- One bucket called "failed". Without a cause you cannot tell which stage to change.
Examples
Rubric for a booking call
create_bookingcalled once with the expected date, time and name (code check).- The agent read the details back before confirming (judge, yes/no).
- The agent did not promise anything the tool did not do (judge, yes/no).
- The call ended with the caller's question answered (judge, yes/no).
Attributing three failures
Call 7: caller said "Okafor", transcript says "Oh car for", booking has the wrong name: transcription. Call 12: transcript correct, agent booked Friday after the caller said Thursday: reasoning. Call 19: agent's text says "15th", caller test log shows the audio rendered as "50th": speech.
Key points
- Task success is read from tool logs and system state, not from how the conversation sounded.
- Define pass rules per scenario before the run, including the number of tool calls expected.
- Use code graders for exact outcomes and a rubric judge for behaviour such as read-backs and handover.
- Failure causes fall into transcription, reasoning and speech, and each needs a different fix.
- Check any LLM judge against human labels on a sample before trusting its scores.
Common mistakes
- Treating a confident closing sentence as proof the task was done.
- Scoring every call as simply pass or fail with no cause.
- Using an LLM judge without comparing it to human labels.
- Not checking for duplicate tool calls.
Check yourself · 2 of 3
The caller said "the fifteenth", the transcript reads "the fiftieth", and the agent booked day 50. Which cause fits?
Check yourself · 3 of 3
Why check an LLM judge against human labels on a sample of calls?
Practice items, not counted towards your mastery.
Start here
- Debugging and testing overview (LiveKit docs) (opens in a new tab)DocsFree
How to write automated tests and evals for a voice agent, with scripted turns and tool-call checks.
- JiWER: word error rate and related metrics in Python (opens in a new tab)ToolFree
A small library for scoring transcripts with word error rate, to measure the transcription stage.
- Open ASR Leaderboard (Hugging Face) (opens in a new tab)ToolFree
Public word-error-rate comparisons of speech recognition models, and a model for reporting them.