Generate Scenario from Call
Agent Testing
Generate Scenario from Call
Generate a test scenario from a historical call transcript using AI analysis.
POST
Generate Scenario from Call
Headers
string
required
Your API key for authentication.
Body
string
required
The ID of the historical call to generate a scenario from. The call transcript will be analyzed by AI to extract a realistic test scenario.
string
The pathway to bind the generated scenario to. Either
pathway_id or persona_id is required.string
The persona to bind the generated scenario to. Either
pathway_id or persona_id is required.Response
The response contains the generated scenario data. This data is not yet saved — it is returned so you can review and use it to create a scenario.Sensitive data such as phone numbers, webhook URLs, and API keys is automatically stripped from the generated
request_data.string
An AI-generated name summarizing the scenario.
string
An AI-generated description of what the scenario tests based on the call transcript.
string
The inferred category for the scenario (e.g.,
HAPPY_PATH, EDGE_CASE, ANGRY_CALLER).string
An AI-generated prompt that instructs the simulated caller to replicate the behavior observed in the original call.
string
A name for the simulated caller persona derived from the call.
string
The pathway the scenario is bound to (if provided).
string
The persona the scenario is bound to (if provided).
object
Request data extracted from the call with sensitive fields automatically removed.
Docs for agents: llms.txt