Scenario

What a scenario is

A scenario defines the goal and context for a conversation test. Where a persona says who is calling, the scenario says why they are calling and what a good outcome looks like.

The scenario feeds two places at once: it shapes the simulation prompt that drives the caller, and its required_info gives the metric engine concrete expectations to validate against. That is what keeps scoring consistent across repeated runs while the conversation itself still flows naturally.

Configure a scenario

Creation paths

  • Generate from agent prompt
  • Generate from call data
  • Create manually

Scenario structure

FieldDescription
nameScenario title.
descriptionConversation intent, flow, and success expectation.
required_infoStructured key/value expectations for validation.
agent_idOptional linked agent for context and filtering.
  1. Write or generate scenario descriptions.
  2. Add required success information where needed.
  3. Link scenarios to target agents.
  4. Use scenarios in evaluation suites.

See also: How It Works for how scenarios expand into run combinations.

How to create a scenario

  1. Go to Simulations > Scenarios.
  2. Click Create Scenario on the top-right.

Creating a scenario

EfficientAI supports three creation paths:

A) Generate from test agent

  1. Select the target agent.
  2. Choose how many scenarios to generate.
  3. Select AI provider.
  4. Select model.
  5. Click Generate.

B) Generate from calls

This path is currently in beta.

C) Generate manually

  1. Enter scenario name.
  2. Link the scenario to an agent.
  3. Enter manual description or paste the agent prompt.

Community & contact

  1. Found a bug or have a feature request? Open a GitHub issue.
  2. Join our Discord for faster replies!