Test changes safely
Before you publish a change to a workflow — a new prompt, a different model, an extra step — replay real past runs against your edited draft and see what it fixes and what it breaks. Replays happen in a sandbox: nothing is emailed, texted, posted or written anywhere.
How it works in one minute
- Turn on Record step data for the workflow, so each run keeps what every step received and returned.
- As real runs come in, pin the interesting ones — failures you want fixed and successes you must not break. Together they are the workflow's regression set.
- Edit the draft in the editor. Production keeps running the published version.
- On the Regression set page, choose Run against draft. Every pinned run is replayed with its original input: AI and logic steps run for real on your edited draft; steps that send or write reuse the result they got the first time.
- Read the results — Fixed, Pass, Regressed, Still failing — and publish when you're happy.
1. Turn on Record step data
In the editor, open Workflow Settings (the gear icon) and turn on Record step data. From then on, each run of that workflow keeps every step's input and output. You can see them in the run's step-by-step view, and sandbox replays use them in place of real calls.
- Off by default, per workflow. Only runs made after you turn it on are recorded, so turn it on before you need it.
- Kept for 30 days, then deleted automatically — except recordings of runs pinned to a regression set, which are kept as long as they stay pinned.
- Very large values are cut to about 32 KB per step, and a step inside a loop is recorded at most 50 times per run.
- Recordings can contain personal data from your runs. Turn this on only for workflows where you need it. If your workspace handles health data, see below.
2. Pin runs to the regression set
On the workflow's Executions page, choose Pin on any finished run. Pinned runs show a Pinned badge, and the Regression set button at the top of the page opens the set. A workflow can have up to 50 pinned runs.
Good regression sets have:
- Real failures you want fixed — the run that sent a wrong answer, the message the agent misunderstood.
- Typical successes you must not break — one or two of each common kind of request.
- Edge cases — empty fields, long messages, other languages, unusual formats.
Pin runs made while Record step data was on. A pinned run without recordings still replays, but its outside steps return placeholders (see reading the results).
3. Run the set
- Run against draft — “if I publish my edits, how would these real runs turn out?” Use it after every change.
- Run against live — how the published version handles the same runs today. Run it once as a baseline, so you can tell whether the draft is actually better.
Each replay appears in the Executions list with a Sandbox badge, and the results page refreshes while they run. Every past run of the set stays in the Results dropdown, so you can compare attempts.
To replay a single run instead of the whole set, use Sandbox replay on that run in the Executions list. It replays the input against the current draft.
4. Read the results
| Outcome | Original run | Replay | What it means |
|---|---|---|---|
| Fixed | Failed | Completed | Your change solves this case. |
| Pass | Completed | Completed | Still works. |
| Regressed | Completed | Failed | Your change broke a case that used to work — look before you publish. |
| Still failing | Failed | Failed | Not fixed yet. Open the replay to see why. |
Outcomes compare whether runs completed or failed. A run that completes with a worse answer still counts as a pass — so make the quality you care about fail the run: add an AI Judge step that scores the answer against your criteria, and route its fail branch to a step that stops the run (for example a Code step that throws an error with the judge's reasoning). Open any replay to compare its answer with the original.
“Without a recording” next to a case means one or more outside steps had nothing recorded to replay — the original run never reached them, recording was off, or the value was too large to keep — so they returned a placeholder instead. Results after those steps are less reliable.
Let Wingman fix failing runs
AI Wingman can work through the regression set for you, and every fix it proposes can be tested on your pinned runs before it touches your workflow.
- On the Regression set page, choose Fix failing runs with Wingman (shown when a pinned run fails). The editor opens with Wingman already looking at the failing runs — their errors and each step's inputs and outputs — and it proposes the smallest change it can find.
- Under the proposal, choose Test on regression set. Your current workflow plus the proposed changes is replayed against every pinned run in the sandbox. Your draft is not changed and nothing is sent. Results appear in the chat as they come in: fixed, pass, regressed, still failing.
- If something regressed or still fails, choose Ask Wingman to refine. Wingman reads the per-run results and revises its proposal; test again.
- When the results are good, Apply the changes, then publish as usual. A person always makes that call — Wingman never applies or publishes on its own.
You can also test any proposal Wingman makes in normal chat or when diagnosing a failed run, as long as the workflow has pinned runs. Tests are listed on the Regression set page as runs against “a Wingman proposal”. Testing uses executions and AI credits like any regression run (up to three tests per workflow per minute); Wingman's own replies use Wingman credits as usual.
Auto-improve: Wingman works on it for you
Turn on Auto-improve with Wingman in Workflow Settings (the gear icon), daily or weekly. On each cycle Wingman:
- pins up to five recent failed runs that have step recordings;
- skips the cycle if no pinned run fails — no cost when there's nothing to fix;
- proposes the smallest fix to the saved draft, the same way it does in chat;
- tests it: the pinned runs are replayed against the fix and against the draft as it is, at the same time, and compared run by run;
- keeps the proposal only if it makes at least one more run pass and breaks none — and then notifies the workspace's owners and admins.
Proposals appear under Wingman proposals on the Regression set page with Wingman's explanation, the exact changes, and links to both sets of results. Apply to draft writes the change to the draft (refused if the draft has since changed so the change no longer applies); Dismiss discards it. Nothing is ever published automatically, and a workflow never has more than one proposal waiting.
Each cycle that runs uses two executions per pinned run (the fix and the draft) plus Wingman credits. Turn on Record step data as well, so failed runs can be pinned and replayed faithfully. Auto-improve is available on paid plans.
Auto-publish low-risk fixes
Workspace owners and admins can go one step further: under Auto-improve, turn on Auto-publish low-risk fixes. A fix is published without a review only when all of these hold — otherwise it waits for a person as usual, with the reason shown:
- It only edits prompt text — the system or user prompt of AI Prompt and Agent Loop steps; at most 3 edits and about 2,000 characters, without adding or removing
{{variables}}. Never quality checks (AI Judge, Guardrails), routing, outside steps, code, connections, models or settings. - The evidence is strong — at least 5 pinned runs, at least 2 of them already passing; it fixes at least one run and breaks none, and a second, independent test agrees; no replay relied on placeholders.
- Nothing unreviewed rides along — the draft has no unpublished changes, the workflow wasn't auto-published in the last 7 days, and the workspace doesn't handle health data.
Then:
- Owners and admins are notified that it will publish in 24 hours. Anyone who can edit the workflow can Cancel auto-publish on the Regression set page — the fix stays there to apply by hand.
- It is published as a new version, marked “Auto-published by Wingman” in version history, and everyone is notified with a Roll back now button.
- Live results are watched against the previous version's last 7 days. Once there are 20 runs (or 48 hours with at least 5), it rolls back automatically if the failure rate rose by more than 10 points or more than 1.5×, or a new kind of error appeared. With fewer than 5 runs in 48 hours you're asked to check it by hand instead.
- A rollback puts production back on the previous version (and the draft too, unless someone edited it since) and pauses auto-publish for that workflow until an owner or admin turns it on again.
What runs for real in a sandbox, and what doesn't
| Runs for real | Reuses the recorded result (nothing is sent) |
|---|---|
| AI Prompt, Agent Loop, AI Judge, AI Decision, Guardrails, knowledge-base search, Code, Set, Condition, Switch, Loop, Parallel, Log, Webhook Response, Call Workflow (the called workflow is also replayed in the sandbox) | Email, SMS, WhatsApp, HTTP Request, MCP Tool, databases (Postgres, MySQL, SQL Server, MongoDB), S3, Tables, Gmail, Google Sheets / Drive / Calendar, Microsoft Outlook / Excel / SharePoint / OneDrive, Slack, HubSpot, Salesforce, HighLevel, ClickUp, Airtable, Zoom, ElevenLabs, Meeting Bot, Falcon Interface, Human Approval, Delay |
- A replayed step returns exactly what it returned in the original run, takes the same branch (an approval that was rejected is rejected again), and fails again if it failed the first time.
- The replay's log has a Sandbox: line for each step it didn't run, with what the step would have sent — for example the email your edited prompt would have written.
- Agents: an Agent Loop's tool calls (connected steps and MCP tools) are not executed; the agent is told the call was recorded and continues. Sub-agents still run.
- Conversation memory is read but never written, so replays don't change real conversations.
- Sandbox runs never send failure notifications, never retry and never start the agent's error workflow.
- Delays don't wait, and approvals don't pause.
- New step types that Falcon Builder doesn't recognise are treated as outside steps — never run — by default.
Workspaces that handle health data
If your workflows process patient or other health information, workspace owners and admins should turn on This workspace handles health data in Settings → Privacy. Recording is then allowed only for workflows whose agent removes personal data automatically after every run (the agent's PII redaction set to After every run, available on Enterprise plans).
- Turning on Record step data for any other workflow in that workspace is refused, with the reason.
- The rule is checked on every run, so if the workspace setting is turned on later, or an agent's redaction is switched off, recording pauses immediately (the run's log says why). The Privacy page shows how many workflows are paused.
- Recordings are covered by the same redaction as the rest of the run, and regression sets only point at runs — they don't copy their data.
Cost
Every replay counts as an execution toward your plan's monthly limit, and AI steps use AI credits as they normally would. Steps that are replayed from recordings cost nothing extra. Running a set of 20 pinned runs uses 20 executions.
From Claude, Cursor and other MCP clients
The same features are available through the Falcon Builder MCP server, so an AI assistant can test its own edits before suggesting you publish:
rerun_executionswithsandbox: true— replay chosen runs (or a workflow's recent runs) without side effects, usually withwhich: "draft".list_regression_cases,add_regression_cases,remove_regression_cases— manage the set.run_regression_set(againstdraft,liveor a version number) andget_regression_runfor per-case outcomes.
Limits to know
- Replays read conversation memory and knowledge bases as they are now, not as they were when the original run happened.
- Steps your draft adds have nothing recorded yet, so if they are outside steps they return a placeholder.
- Outside steps replay their old results, so a replay can't tell you whether an external system has changed since — for that, test the step itself with Test Node.
- AI answers vary from run to run; for important changes, run the set more than once.
Self-hosting
Recording also needs CAPTURE_NODE_IO=1 on both the web app and the worker (it is the platform-wide switch; workflows still opt in individually). NODE_IO_RETENTION_DAYS sets how long recordings are kept (default 30; 0 keeps them forever) and is applied by the daily /api/cron/cleanup-old-logs job. See Self-hosting.