# Test multi-turn agents

For a conversational agent, a simulated user talks to it and the judge gives the whole conversation its verdicts.

**Diagram: One multi-turn dataset item**

```text
Simulated user to Your agent: First message, from its plan
Your agent to Simulated user: Reply
Simulated user to Your agent: Next turn, until done or 20 turns
Your agent to Zhanla: Spans for the whole conversation
Zhanla: Simulated-user check, then the judge
```

Each multi-turn dataset item gives the simulated user a goal, a turn-by-turn plan, a style and a stopping point. It shares shown facts freely and holds back hidden ones until the plan calls for them, which tests whether your agent asks. Conversations stop at 20 user turns.

![A simulated customer catches a demo agent sharing booking details too early.](https://zhanla.vercel.app/docs-media/demo/overview-conversation.png)

Before judging, a simulated-user check confirms the simulated user followed its plan. If the check fails, Zhanla reruns the conversation once. A second failure records the dataset item as an error that doesn't count against your agent.

Scores vary between runs: three runs of one unchanged agent differed by 0.11. Don't read much into small changes.

---

Source: https://zhanla.vercel.app/docs/test/multi-turn
Updated 2026-11-24. Checked against release candidate b60cdc94.
