Create Scenario
Create a simulation scenario from a dataset, script, or conversation graph. Supports AI graph generation, persona assignment, and custom columns. Returns 202 Accepted.
https://api.futureagi.com/simulate/scenarios/create/ Authentication
Request body
Name for the scenario. Max 255 characters. Cannot be blank or whitespace-only.
Scenario type: "dataset" (default), "script", or "graph".
Source for AI-powered generation: "agent_definition" (default) or "prompt".
When "prompt", both prompt_template_id and prompt_version_id are required.
Optional description of the scenario.
UUID of the source dataset. Required when kind is "dataset".
URL of the call script file. Required when kind is "script".
UUID of the agent definition to test. Required when generate_graph is true and source_type is "agent_definition".
UUID of a specific agent version. Defaults to the latest version.
Auto-generate a conversation graph from the agent definition or prompt template. Default: false.
Conversation graph data. Required when kind is "graph" and generate_graph is false.
Number of test case rows to generate. Range: 10–20000. Default: 20.
Automatically assign diverse personas to generated test cases. Default: false.
List of persona UUIDs to include in the scenario.
Custom column definitions (max 10). No duplicate names allowed. Each column must have:
name(string, max 50 chars)data_type(one of:text,boolean,integer,float,json,array,image,images,datetime,audio,document,others,persona)description(string, max 200 chars)
UUID of the prompt template. Required when source_type is "prompt".
UUID of the prompt version. Required when source_type is "prompt". Must belong to prompt_template_id.
Additional instruction to steer AI scenario generation.
Voice provider for simulator agent. Default: "elevenlabs".
Voice name for simulator agent. Default: "marissa".
LLM model for simulator agent. Default: "gpt-4".
Response
202 Accepted"Dataset scenario creation started"). ScenarioSchema — see List Scenarios for field reference). "processing" on initial response. Poll Get Scenario for the final status. Errors
Validation error. The response includes an error message and a details object with per-field errors.
{
"error": "Invalid data",
"details": {
"dataset_id": ["dataset_id is required for dataset kind."],
"custom_columns": ["Duplicate column name(s): col_name"]
}
}Common causes:
nameis blank or whitespace-onlydataset_idmissing whenkind="dataset"script_urlmissing whenkind="script"graphandgenerate_graphboth absent whenkind="graph"prompt_template_idorprompt_version_idmissing whensource_type="prompt"- Duplicate column names in
custom_columns - Persona column in source dataset has wrong
data_type
Invalid or missing API credentials.
Unexpected server error.
{"error": "Failed to create scenario: <message>"}