Overview
A plan is a reusable test suite. It bundles everything a simulation run needs (the agents to test, the customer flows to exercise, the metrics and Pass/Fail checks to grade against, and the run settings) so you can execute the same suite repeatedly and compare results over time. Every run starts from a plan. When you configure a run without saving it, Roark still creates a plan behind the scenes: it just stays hidden as a one-off run. Check Save as plan and the configuration becomes a named plan you can re-run anytime, schedule, and edit. Define a plan in code (recommended), or build it in the dashboard.Plans live under Simulate → Runs in the sidebar. The runs hub has an All runs / Plans / Groups view toggle: the Plans view shows one card per saved plan, plus a pinned One-off runs card for runs that weren’t saved as a plan.
Creating a plan
Build it in the dashboard
Click New Run on the runs hub (Simulate → Runs), or New simulation at the top of the sidebar (shortcut N), to open the create page. It’s a single long-form page with four numbered sections:
1
01 · Agents to test
Pick the agents and how to reach each one. Select agents & endpoints opens a picker; each target is one agent reached on one specific endpoint (Phone, Web RTC, LiveKit, WebSocket, ElevenLabs, Google CES, or Kore) with its direction shown as Inbound, Outbound, or In + out.
2
02 · Template
Start from a goal. Each template ships with preset metrics, Pass/Fail checks, and a starter configuration. Pick from the card grid (Blank is the default) or open Browse all templates for the full library. See Templates for what each one does.
3
03 · Template configuration
The template’s own controls: for example, Load testing shows a Volume panel with concurrent calls and total iterations, and Multilingual asks which languages to test. Every template also surfaces a Flows panel where you attach the customer flows the run exercises (see below).
4
04 · Advanced
Metrics and run settings: the metric picker with Pass/Fail thresholds, the option to collect metrics from your agent’s side of the call, run settings, end conditions, and custom variables.
Save as plan, or run one-off
The footer bar has a Save as plan checkbox: “Saves this configuration as a plan you can re-run anytime.” Checking it prompts you to name the plan.- Checked: the plan appears in the Plans view with its own detail page, and every execution is recorded in its run history.
- Unchecked: the run executes as a one-off. It’s grouped under the One-off runs card in the Plans view and the One-off lens in All runs. You can promote a one-off to a named plan later from the run header.
Run now, or later
The primary button is a split button. Its face reads Run simulation (or Schedule when a schedule mode is selected), and the menu offers:
Choosing a schedule mode reveals the Schedule section: frequency, time, timezone, days, and an end condition (never, on a date, or after N runs). See Schedules for details.
Direction is derived
You don’t choose inbound or outbound. Roark derives it from the endpoints you selected in Agents to test. A run is outbound only when every selected endpoint is outgoing-only; otherwise it’s inbound. Outbound runs are forced to a single iteration because your agent initiates each call. Learn more in the Inbound vs Outbound guide.Attaching flows
The Attach flows dialog lists your customer flow library. Pick the flows this run exercises, and expand one to choose its variants. Each attachment carries three things:
Variant selection mode
Variant selection mode
Per attached flow, choose which variants run:
- All variants: the happy path plus every edge case
- Default variant: just the happy path
- Specific variants: an explicit selection of variants
Persona override
Persona override
Optionally override the persona the flow’s variants would normally use, just for this plan. The Multilingual template uses this to fan the same flow across language personas, one attachment per language.
Variable overrides
Variable overrides
Set per-attachment values for the flow’s
{{variable}} tokens. Overrides set here win over the values stored on the variant at run time. See Variables.Success criteria
What makes a run of this plan pass or fail. Advanced → Success criteria lists one row per check, with the minimum it has to clear. A check is a metric that produces a pass/fail result: a yes/no metric, or a threshold you added to another metric the plan collects. Numeric and classification metrics are still collected and reported, they just have no verdict to judge, so they don’t appear here.
Every check starts at 80% and keeps following that default until you type a number of its own (the revert arrow puts it back). The Metrics block above is where a metric becomes a check; this table is where it gets its minimum.
Each check is judged on its own
There is no plan-wide bar and no per-metric weight. Set silence duration to 40% and word count to 80%, and the run fails unless 40% of simulations clear silence and 80% clear word count. A check that falls short fails the run however well the others did. That is deliberate: one number for a whole plan is either too strict for the loose checks or too loose for the strict ones, and a pooled average would let a check at 0% hide behind checks at 100%.Criteria are pinned to a run when it starts. Editing the plan changes what future runs are judged against and never rewrites a verdict that already happened.
Setting minimums over the API
Criteria live on the metric references, so a plan carries them wherever it is created or updated:minPassRate is 0-100 and applies to that check alone. Omit it (or send null) for the 80% default. The verdict comes back on GET /v1/simulation/plan/job/{jobId} once a run has ended, which is what the CI gate turns into an exit code.
Run settings
The Advanced section exposes the run’s execution and end-condition settings:
The sequential execution modes run calls one at a time (scoped either to this plan’s runs or to every plan in the project), which is useful when your agent can’t handle parallel traffic.
Pacing calls
By default a run starts its calls as fast as its concurrency allows: as many at once as Calls at the same time permits, and a new one each time a slot frees up. A traffic spike like that is a test of its own, but it is not how calls reach a phone line. To spread them out, set a dial rate in the run settings card’s Rate row (“How fast new calls start”):
The rate runs from 0.01 calls per second (one every 100 seconds) to 10, and fractions are fine: 0.2 starts one call every 5 seconds. The slider stops at the most your concurrency limit can hold for the call length you pick, shown as “Up to … on your plan”.
The concurrency limit still applies on top of the rate. A rate only holds while calls end fast enough to free their slots: at 0.5 calls per second, calls that last two minutes keep about 60 running at once. Calls last about tells the card how long your calls usually run, so it can warn you before the run when your concurrency or phone capacity will hold the rate back, and offer to allow the calls needed. It is only an estimate for the card and isn’t saved with the plan.
Once a paced run is going, the run view shows the rate it achieved against the target, such as “0.42 of 0.5 calls per second”. The achieved rate is measured after the ramp, so the slower start doesn’t count against it.
Over the API and in config, set
callsPerSecond (0.01 to 10) and optionally rampUpSeconds (0 to 3600) on the plan. Leaving callsPerSecond out, or null, starts calls as fast as maxConcurrentJobs allows; leaving rampUpSeconds out, null or 0 starts at the full rate. A rate above your project’s concurrency limit divided by 30 is refused with a 400, because the limit could only hold it with calls shorter than 30 seconds. GET /v1/simulation/plan/job/{jobId} returns a paced run’s dialRate: targetCallsPerSecond, rampUpSeconds and achievedCallsPerSecond, which is null until two calls have started.
Run-plan variables
Plans can define their own variables (a name, a value type, and an optional default), referenced as{{name}} in flow prompts and settings. Variables without a default are collected in a modal each time the plan runs, which makes them handy for values that change per run, like a booking date or a ticket number.
The plan detail page
Every saved plan has a detail page with the plan name, its template badge, the agents it targets, and its run count, plus two header actions: Edit (reopens the create form pre-filled; the template is read-only) and Run now.
- Automation panel. If the plan is scheduled: an Active/Paused badge, the cadence description, next-run and last-run times, and controls to pause/resume, edit the cadence, or delete the schedule. Unscheduled plans show a Runs on demand card with a Schedule this plan button instead.
- Report delivery: where each run’s report goes once it is ready. Click Set up (or Edit) to email it to every project member or to specific addresses (they do not need a Roark account), and to post it to up to 10 Slack channels. The email attaches the report PDF and each Slack message carries it in its thread. Each run sends its report once, as soon as it is ready. Duplicating a plan copies its report delivery to the copy. A plan managed by config as code shows its settings read-only; change them in the plan’s
notifyblock. - Run history: every execution of the plan, newest first. Runs are labelled
SR-{n}and show one of five statuses: Running, Queued, Completed, Failed, or Cancelled, plus a trigger chip (Manual, Schedule, Re-run, or System). Click a run to open its report. See Running Simulations.
Creating plans via API
You can create and trigger plans programmatically:notifications to the body (or to PUT /v1/simulation/plan/{planId}, where null turns delivery off):
recipients list emails every project member. Slack channels need Slack connected to the project, or the request returns 400.
Required fields: name, direction, maxSimulationDurationSeconds, scenarios, personas, agentEndpoints, and metrics. The same flow ID can appear in scenarios multiple times with different variables, and autoRun: true triggers a run immediately after creation. Trigger an existing plan with POST /v1/simulation/run, passing the plan id in the body: { "planId": "<plan-id>" }.
The REST API keeps the older names: customer flows are attached via the
scenarios array, and direction is set explicitly rather than derived from endpoints as it is in the UI.Next steps
Customer Flows
Author the conversations your plans exercise
Templates
Start plans from a goal with preset metrics and checks
Schedules
Put plans on a cadence and catch regressions automatically
Running Simulations
Watch runs live and read the report when they settle