13 min read

Where Evals Belong in an AI Agent Workflow

By submitting, you consent to our use of your data. Privacy Policy.

Category

AI Agents

Share the article

Why we score every step against its own criteria, inside the step, and rerun it there when it falls short, while the workflow stays a process the business can read.

📌 Key takeaways

  • The workflow is what the business reads, so it should show the process. The step is where an output is produced, so that is where it is judged, scored and rerun.

  • Drawing evals on the canvas turns a five-step invoice workflow into eleven nodes, and the finance lead is now debugging an agent.

  • A task score of 97% can hide a step that cleared its 85% threshold only on its second rerun. The step view says which prompt to fix; the task score says nothing needs doing.

  • Five steps that each pass 90% of the time run clean 59% of the time. With up to three reruns per step, the ceiling is 99.95%, if every attempt were independent and the eval judged every output correctly.

  • In Beam, evaluation lives in the step's sidebar: criteria, an accuracy threshold and Auto-run. The canvas shows the five steps.

An agent's evaluation belongs inside each step, not on the workflow. The workflow is what the business reads, so it should show the process and nothing else. The step is where an output is produced, so that is where the output should be judged, scored and, when it falls short, rerun.

The reasons come from three seats. The business user who reads the workflow needs a process, not plumbing. The builder who maintains it needs signals that point at one step. And a run recovers best at the step that failed. So instead of adding a judge after the workflow, we put a step-level eval, or step eval for short, on each step: a set of plain-language criteria attached to one step, scored every time that step runs, against an accuracy threshold of its own.

This piece covers where evals sit in an agent workflow and what that placement changes for the business user, the builder and the run itself: the canvas, the step scorecard, failure localisation, swapping a model in one step and rerunning a step. It does not cover how to write the criteria, which is in How to Write Eval Criteria for an LLM Judge, or the full arithmetic and economics of a gate on every step, which is in How Quality Gates Make AI Agents Reliable in Production. Figures as of 15 November 2026; values in the examples are illustrative.

Why should the workflow hide its evals?

The workflow is the product's face to the business, so it should read like the process the team already runs. Take an invoice workflow with five steps: read the invoice, extract the fields, match it to the purchase order, check the approval rules, post it to the ERP. A finance lead can read that, recognise it and sign it off.

The obvious way to add evals is to draw them on the canvas. After each of the three AI steps (extracting, matching and checking approval rules) you add a judge node and a threshold branch, with a loop back for reruns. Five steps become eleven nodes, and the finance lead is now being asked to debug an agent.

The same five-step invoice workflow drawn two ways. Top, process: five steps on the canvas, each step's evaluation inside the step. Bottom, plumbing: the same workflow with a judge node, a threshold branch and a rerun loop drawn after each AI step, eleven nodes for five steps.

Same five steps. With evaluation drawn on the canvas, the business user is reading rerun logic (illustrative).

Accuracy tuning and rerun logic are real work. They belong to the person who builds the step, not the person who owns the process. Kept inside the step, each of them reads the view meant for them.

🧭 How we see it at Beam

Evaluation lives in the step's sidebar, on an Evaluation tab next to its parameters. The canvas shows the five steps. Open a step and you find its criteria, its accuracy threshold and its rerun setting.

Why does judging each step match how good teams already work?

People judge each action as they take it, not the whole project at the end. An accounts payable clerk checks the extracted total against the invoice before matching it to the purchase order. Nobody waits for month-end close to find out that a date was misread.

Manufacturing made this a principle. Toyota's jidoka means stopping immediately when an abnormality is detected, which keeps defects from flowing downstream and builds quality into each process (Toyota Production System). Anthropic's guidance on building agents says the same about multi-step workflows: add programmatic checks on any intermediate steps to ensure the process is still on track (Anthropic, Building effective agents).

The reason is the distance between cause and symptom. A check at the end sees the symptom. Anthropic's eval guidance notes that in agents, mistakes can propagate and compound (Anthropic, Demystifying evals for AI agents), so by the time the end result looks wrong, the cause sits several steps upstream.

🧭 How we see it at Beam

We write criteria the way a team lead would describe a good handover from that step. Some are format checks, like "The invoice_date field must contain a date string in format YYYY-MM-DD", which is an example from our docs (Evaluation Framework). Others are judgment calls a schema can't make, such as whether the matched purchase order belongs to the same supplier and covers the same goods. You can write criteria by hand or have Beam generate a first set from the step's configuration.

What does a step eval tell you that a workflow score can't?

A step eval tells you which step was weak, how it scored against its own criteria, and whether it passed on the first attempt or only after reruns. A score on the whole run blends all of that into one number. It tells you the task finished and roughly how well.

In the example below, the task completed with a score of 97%, which looks healthy. Underneath, step 03 cleared its 85% threshold only on its second rerun, while the other four steps passed on the first attempt.

A step scorecard for one task. The task score reads 97 percent. Underneath, five steps with their own scores: four passed on the first attempt, and step 03, match to purchase order, cleared its 85 percent threshold only on its second rerun.

The task score says nothing needs doing. The step view says the matching step's prompt or input data needs work (illustrative).

The two views lead to different actions. The task score says nothing needs doing. The step view says the matching step's prompt or its input data needs work, and the other four steps don't. Anthropic recommends the same split for grading: a separate judge for each dimension of a task, rather than one judge for everything (Anthropic, Demystifying evals for AI agents).

🧭 How we see it at Beam

Each step in a task carries its own evaluation results, and analytics track the average evaluation score over time. A monitoring rule can watch a single step's score and alert your team in Slack, Teams or email when it drifts (Monitoring). Our docs give a rule of thumb: if a step needs reruns on more than 30% of tasks, fix its prompt rather than adding reruns.

Where do you look when a run goes wrong?

You look at one step, because the eval that failed is attached to it. Without step evals, a failure shows up wherever it finally breaks something. In the invoice case, that is the ERP rejecting the posting in step 05, two steps after the wrong purchase order match in step 03.

Software teams learned this a long time ago. Google's testing team wrote that finding the root cause of a failing end-to-end test is painful and can take a long time, while if a unit test fails you only need to search that small unit to find the bug (Google Testing Blog, 2015). A step eval plays the same role for one step of an agent.

Failure localised to a step. Without step evals, a wrong purchase-order match in step 03 surfaces two steps later as an ERP rejection in step 05. With step evals, the failed criterion is recorded on step 03 at the moment it happens.

Without step evals the failure surfaces two steps downstream. With them, it is recorded on the step that caused it (illustrative).

Hamel Husain and Shreya Shankar advise recording the first upstream failure when you analyse agent errors (Evals FAQ). Step evals record it on every run, at the moment it happens, so nobody has to trace it back by hand.

🧭 How we see it at Beam

Open the task, select the step and read its input, output, reasoning and evaluation in one panel. Fix the step, try it on sample input with Configure & test, then rerun the original task to confirm.

What happens when you swap a model in one step?

You re-check that step against its own criteria, and the other steps keep their own checks. The criteria are the step's contract with the steps that follow. If the new model meets the contract, the next step gets the input it expects.

Without step evals, the only test is the final outcome. Any change, however small, means re-validating the whole workflow, because nothing tells you which part moved. That makes every small improvement expensive.

Swapping the model in one step. The step's criteria are its contract with the steps that follow. The new model is checked against that contract; the other steps keep their own checks and keep scoring on every run.

Change one step, re-check one step. The other steps keep scoring, so a knock-on effect shows up in their scores (illustrative).

The limit is coverage. If the new model changes something the criteria don't check, the step passes and a later step absorbs the difference. The other steps keep scoring on every run for that reason, so a knock-on effect shows up in their scores rather than later in a reconciliation.

🧭 How we see it at Beam

The model is a field on each step, and changing it changes only that step. Test mode replays data from past tasks with your connected systems sandboxed, so no live records change. Version history lets you restore the previous workflow if the new one underperforms. We wrote about choosing the model per step in How to Assign AI Models to Your Agents, Per Step.

What happens when a step fails its eval?

The platform reruns that step, and only that step, up to three times. Nothing gets drawn or wired on the canvas, because rerunning is a setting on the step: an accuracy threshold and how many times to rerun.

The step is the place to rerun because errors multiply across steps. Take five steps that each pass 90% of the time. Without reruns, 0.9⁵ means 59% of runs come through clean. With up to three reruns per step, each step fails only 0.1⁴ of the time and the workflow clears 99.95%, if every attempt were independent and the eval judged every output correctly. The full model, with realistic catch and fix rates, is in How Quality Gates Make AI Agents Reliable in Production.

Step retry. Five steps that each pass 90 percent of the time run clean 59 percent of the time without reruns. With up to three reruns per step, the ceiling is 99.95 percent, assuming independent attempts and a perfect eval.

Rerunning at the step turns 59% into a 99.95% ceiling. Neither condition fully holds, so it is a ceiling, not a forecast (illustrative).

Neither condition fully holds, so 99.95% is a ceiling rather than a forecast. A rerun on the same input fixes variance in the model's output. It does not fix a wrong prompt, a missing field or an error from a connected system, which fail the same way every time. Each rerun also adds execution time and cost.

🧭 How we see it at Beam

This is called Auto-run, and it is configured in the step's Evaluation tab. You set the accuracy threshold and the number of reruns, up to three. If the step still falls short after the last rerun, the workflow continues with the best output it produced, so we pair Auto-run with a monitoring rule on that step's score. Our docs recommend it for AI extraction and classification, and not for fixed-logic steps, integration calls or steps failing on missing data (Evaluation Framework).

Where do step evals stop being enough?

Step evals tell you every handover was good, but not that the business outcome was right. You still need a check on the outcome of the whole task and human feedback on a sample.

The strongest objection comes from the evals field itself. Hamel Husain and Shreya Shankar recommend starting with end-to-end task success and moving to step-level diagnostics once error analysis shows where workflows fail. Anthropic warns that checking the exact path an agent took is brittle, and advises grading what the agent produced rather than the path it took.

I agree with both for open-ended agents that choose their own path. A business workflow is different, since its steps are fixed and each one has a defined output. Grading that output is grading what was produced, at the point it was produced. We keep the outcome check as well, at the task level, beside the step scores.

🧭 How we see it at Beam

A monitoring rule can watch the task-level evaluation score as well as a single step's, and analytics track human feedback next to evaluation scores.

How do you put an eval inside a step?

Start with the steps whose output varies, and give each one a short contract. Six moves cover most workflows.

  1. Pick the AI steps: extraction, classification, decisions. Skip fixed-logic steps and integration calls.

  2. Write two to four criteria per step, each a plain sentence about a specific field or judgment.

  3. Set the accuracy threshold the step must meet.

  4. Turn on reruns and start at two or three.

  5. Add a monitoring rule on the step's score, for the runs that still fall short.

  6. Keep a check on the task outcome, and read failing tasks step by step.

Watch the rerun rate after the first week. A step that needs reruns on more than 30% of tasks is telling you its prompt or its input data needs work, and more reruns would only hide that.

What changes when evals live in the step?

The conversation with the business stays about the process, and the conversation with the builder becomes about one step at a time. A weak step gets found when it runs, fixed where it lives, and swapped without touching the rest. That is what lets a workflow keep improving after it goes live.

If you are moving an agent from pilot to production, start with the step you trust least, and give it criteria.

FAQ

What is a step-level eval?

A step-level eval is a set of plain-language criteria attached to one step of an agent workflow. It is scored every time the step runs, against an accuracy threshold of its own. When the score falls short, the step can be rerun before the workflow moves on, and the result is recorded on that step.

Should I still evaluate the whole workflow?

Yes. Step evals check every handover, and a task-level check confirms the business outcome. Use step scores to find and fix problems, and the task score to track the result. Human feedback on a sample of finished tasks closes the gap between the two.

Do reruns make an agent reliable on their own?

No. A rerun helps when the model's output varies between attempts. It does not fix a wrong prompt or missing data, which fail the same way every time, and a step that needs reruns on more than 30% of tasks needs its prompt fixed rather than more retries.

How many reruns should a step get?

Beam allows up to three reruns per step. Start with two or three, and watch how often they trigger, since each rerun adds execution time and cost. Pair the setting with a monitoring rule on the step's score for the runs that still fall short.

Figures as of 15 November 2026. Values in the examples are illustrative.

Start Today

Start building AI agents to automate processes

Join our platform and start building AI agents for various types of automations.

Start Today

Start building AI agents to automate processes

Join our platform and start building AI agents for various types of automations.