{{orderNumber}} or {{appointmentDate}} that get replaced with real values at runtime.
Variables follow a three-stage lifecycle:
- Define: Add
{{variableName}}placeholders to your scenario steps - Pre-set (optional): Configure default values when building a run plan
- Provide at runtime: Pass final values when triggering a simulation job
1. Defining Variables in a Scenario
Variables are defined by typing{{variableName}} directly into scenario step content. Any text wrapped in double curly braces is treated as a template variable.
In the UI
When editing a scenario step, you can add variables in two ways:- Type
{{in the step content to trigger the autocomplete dropdown, then select an existing variable or create a new one - Click the “Add variable” button on the step card to insert a variable at the cursor position
- Select an existing variable from the dropdown list
- Create a new variable by typing a name and selecting a type (STRING, NUMBER, BOOLEAN, or DATE)

Via the API
Variables are defined in scenario content. When you create or update a scenario via the API, include{{variableName}} placeholders in your step content. The system automatically detects and registers them as variable definitions.
Reserved variables
Some variable names are reserved for system use and are automatically resolved:{{persona.*}}: Allpersona.prefixed variables are reserved for persona properties (e.g.{{persona.name}},{{persona.backstoryPrompt}}){{phoneNumberToDial}}: The phone number for outbound simulations{{simulationJobId}}: The current simulation job ID
2. Pre-setting Variables on a Run Plan
When configuring a run plan, you can optionally pre-set default values for variables. This is useful when you want the same scenario to run multiple times with different data, for example testing with different appointment types or insurance providers.In the UI
When selecting scenarios in the run plan creation wizard, any scenario that contains variables will show a Pre-set variables section inline. You can enter default values for each variable directly on the scenario card. Variables left blank will show as “Not set (required at runtime)”. If you want to add multiple instances of the same scenario, each with a different set of variables, click Add instance with different variables + below the scenario card. This step is optional. If you don’t pre-set variables at the run plan level, you will be prompted to provide them when running the plan.
Via the API
Pre-set variables when creating or updating a run plan by adding avariables object to each scenario entry:
Create a run plan with pre-set variables
3. Passing Variables at Runtime
When triggering a simulation job, you must provide values for any variables that were not pre-set at the run plan level.In the UI
When you click Run on a run plan that has variables, a modal appears showing:- Variables that already have defaults (marked with a green badge)
- Variables that still need values (highlighted as required)
- Global mode: Enter each variable value once, applied to all scenarios
- Per-scenario mode: Enter different values for each scenario
