Overview
A scripted conversation is an ordered sequence of User turn and Agent turn elements. You write the user’s message; the agent generates its response when the test runs.
When to use it
Check behavior at a specific point in a known message sequence.
Use scripted turns for a known regression, a required phrase, or a sequence whose routing or tool use must be checked at a specific point.
How it works
Pair exact user messages with checks on generated agent turns.
The editor preserves the sequence you arrange. Checks belong to an agent turn, not to the preceding user message. Scripted and simulated segments can appear in the same saved test.
Use the editor’s bottom controls to add a User turn, Agent turn, or Simulation to the conversation.
Example
Check returns routing and tool use at the relevant turns.
A scripted return conversation can send “I want to return my order,” then check the next agent turn for the returns route. A second user turn can supply the order number and a later agent turn can check the lookup tool. Each check is placed where its expected behavior belongs.