Why test the design before the build
Agent workflows usually fail for ordinary reasons. A tool times out. A step is retried until it gives up. A check sends work round the same loop. Or the whole thing waits for hours while a person approves it. These are design questions, and they are much cheaper to answer before anyone writes code.
This guide shows how to answer them with the Agent Simulator, a free tool in Digital Campaign Labs. You build a workflow from steps, give each one rough timings and failure rates, and run it once or thousands of times. It runs in your browser and never calls an AI model, so it is quick, free and safe to experiment with. The tool opens with a template you can follow along with, and every run uses a seed, so you will see the same results as this guide.
A worked example: a market research workflow
- Look at the template. The page opens with Market research. It has eight steps: Objective, then an Orchestrator agent, which starts a Research agent and an Analysis agent at the same time. The Research agent calls a Web search tool. Both paths meet at a Validation gate, then a Human approval, then the Final output. The checks above the list say No problems found, and the diagram draws the steps from left to right, with dashed lines where work can be sent back.
- Run it once. On the Run once step, with the seed at 1, select Run to the end. The run completes after 33 minutes and costs $0.25 over 5 attempts. The event log shows all 16 events. Select Reset, then use Step to go one event at a time. On the third event the Orchestrator's first attempt fails and it retries five seconds later, which is how the template expects a real agent to behave.
- Break something on purpose. Under Inject a failure at, choose Research agent and set Failure to Fail its first attempt. Run to the end: the agent retries and the run still completes, after 47 minutes. Now choose Make it unavailable. The run fails after 8 minutes, at a cost of $0.48 over 6 attempts, and the diagram marks the Research agent as stopped. Set Inject a failure at back to No injected failure.
- Check the permissions. In the Research agent's card, untick Web search under Tools it may use. A warning appears straight away: the agent is not allowed to use the tool, so the call will be refused. Run it, and the run fails after 4 minutes at the Web search step. Tick the box again.
- Run it many times. On the Run many step, choose 1,000 and select Run the simulation. In this example 98.7% of runs complete. The median time is 78 minutes and the 90th percentile is 1 hour 57 minutes. The average cost is $0.316 a run. The most striking line is Share of time waiting for people: 94%.
- Read where runs stop. The table of where runs stopped lists the 13 runs that did not complete: 9 rejected at Human approval, 2 that failed the Validation gate after two rounds of rework, and one each at the Research and Analysis agents after their retries ran out.
- Make approval faster. In the Human approval card, change the waiting time from 15 to 120 minutes to between 5 and 30 minutes, and run 1,000 times again. The success rate stays at 98.7%, but the median time falls from 78 minutes to 23 minutes. Put the waiting time back.
- Take away the safety nets. Set the Research agent's retries to 0 and run 1,000 times: success falls to 90.3%, with 88 runs stopping at the Research agent. Put its retries back to 2. Then set the Validation gate's most times to send work back to 0: success falls to 82.3%, with 171 runs failing at the gate. Put it back to 2.
- Download the results. Download report (Markdown) gives the workflow, the single run and the many-run results in one document. Download event log (CSV) gives every event from the single run, and Download workflow (JSON) saves the design to import later.
The lesson in this example is clear from the numbers. The agents finish in minutes. The person approving the work sets the pace, and the retries and rework loops are what keep the success rate high.
Using it on your own workflow
Start from the template closest to your idea. Support ticket triage shows a decision that routes work down one of two paths, and Blank starts from a Start and an End. Add steps by kind: agent, tool, memory, decision, validation gate or human approval. For each step, choose its next steps in its card, or drag on the diagram: drag a step to move it, or drag from the dot on its right edge to another step to link them. Everything on the diagram can also be done from the list of steps, which works fully with a keyboard.
The timings and failure rates come from you. Start with rough guesses and replace them with figures from logs or tests when you have them. Then change one assumption at a time and run 1,000 simulations after each change, as in the example. The comparison between runs is where the insight is.
Use the seed when you share a result. The same workflow with the same seed always gives the same run, so a colleague can see exactly what you saw.
What you gain from simulating first
The benefit is better design decisions before anything is built, while they are still cheap to change.
Technology leaders and architects can see whether a design is reliable enough, and which step to improve first. In the example, adding retries matters more than making agents faster.
Product owners and operations managers can see where people sit in the process and what that does to the time. Shortening an approval from up to two hours to half an hour cut the typical run by more than two thirds. That is a process and staffing decision, and it is easy to miss when the discussion is all about models.
Risk and compliance teams can test what happens when a step goes down, and check that tools are only used by the agents allowed to use them. Our article on designing accountability for autonomous systems looks at who should own those approval decisions.
Budget holders get a cost per run that includes retries and rework, which is what the bill will reflect.
When it is not the right tool
- Predicting real performance. Every figure comes from the settings you enter. The simulator shows how a design behaves under your assumptions. Measure the real system once it exists.
- Judging the quality of answers. It models whether a step succeeds or fails. Whether a real agent's research is any good needs testing with real models and real tasks.
- Building the workflow. It does not run agents or export code. The report and the workflow file are a brief for the people who will build it.
- Very large systems. A workflow can have up to 40 steps. Beyond that, simulate the parts that matter most one at a time.
For more on why agent projects fail and how to avoid it, read why agentic AI breaks most enterprises before it ships. If you are designing agent systems for your organisation, our AI and automation strategy service can help.
Try it with your own design
Run the market research example first, then sketch your own workflow with rough numbers. Open the Agent Simulator and find out where your design will wait, fail and cost, before you build it.



