Skip to main content
A scenario defines the persona, the mission, and the success criteria of a simulated conversation. Simulations use scenarios to test how an agent responds to different users.

Limitations

  • The maximum number of scenarios per Project is 100. You can change this limit as follows:
    • For SaaS installations, contact Cognigy technical support.
    • For on-premises installations, add the MAX_SIMULATIONS_PER_PROJECT environment variable with the new limit under cognigyEnv in values.yaml.
  • The maximum number of success criteria per scenario is 10.
  • The maximum length of the scenario name and the persona name is 200 characters. The maximum length of the persona description and the mission is 10,000 characters.
  • The maximum number of CSV transcripts per upload is 10. The maximum file size is 10 MB. The maximum total size of all files is 50 MB.
  • An upload request for transcripts expires after 10 minutes. To continue, start a new upload.

Create a scenario

In the Simulator, you can create a scenario automatically, manually, or from transcripts. Alternatively, you can create a scenario from a transcript in the Conversations Explorer. To start, go to Test > Simulator > Scenarios and click Create scenario. The page asks how you want to create the scenario and shows three cards: Generate from agent, Generate from transcripts, and Create manually. The Generate from agent card has the Recommended badge.
A card is unavailable if its feature isn’t enabled in your environment.
Select the card for the method that you want to use:
  1. On the Generate from agent card, click Generate. The Generate scenario with AI window opens.
  2. In the Target type field, select the agent or flow for your scenario. The list shows agents and flows. To search the list, enter a name in the search field. To narrow the list, select All, AI Agents, or Flows at the top of the list. If agent targets aren’t available in your environment, the list shows only flows and has no filter.
  3. If you selected a flow, select the AI Agent Node to analyze in the AI Agent Node field. The flow must contain a configured AI Agent Node.
  4. Click Generate. Cognigy generates persona and mission options based on the configuration of the agent or Node.
  5. Select a persona and a mission. Cognigy applies your selection to the form immediately. The Success criteria list shows criteria that match the selected mission.
  6. Review the generated scenario and adjust it if necessary. To generate new text for a field, click the Regenerate with AI icon next to it.
Click Create. After you create a scenario, the Interaction Panel opens in simulation mode with the new scenario selected. To run it, see Simulation mode. To create scenarios through the API, use the Cognigy Simulator API.

Example

This example shows how to create scenarios for a flow with an agent. We’ll work with Sophie, the Restaurant Guide. Sophie assists users with dinner planning and restaurant recommendations.
  1. Set up a flow that uses Sophie as the agent.
  2. Create three scenarios with different personas to test various use cases:
To run simulations with these scenarios, see the example on the Simulations page.

More information

Last modified on November 11, 2026