AI Engineer Code Summit 2026
Your Automation Is Overthinking It — Chibi Vikram & Kevin Bernstein, UiPath
Loading slides…
Read the talk
Your Automation Is Overthinking It
UiPath’s Chibi Vikram and Kevin Bernstein show where a fast Jev decision can replace a general-purpose LLM call, when a fraud investigation needs a more capable agent, and how an overnight search found a better way to rank passages from retrieved documents.
From a talk by Chibi Vikram and Kevin Bernstein
At a glance
Ideas worth remembering
A fast model can decide when a slower agent is worth calling. In the fraud demo, Jev’s initial evidence check triggered a bank lookup, and the same check reached a different conclusion once the new information arrived.
Existing evaluation sets can help search for better ways to use a model. UiPath’s 14-hour search improved Jev’s reranking score from 0.866 to 0.889 by changing how candidate passages competed.
Count sequential dependencies as well as calls when estimating latency. UiPath’s tournament could compare independent groups in parallel and reportedly completed thousands of Jev calls in under a second.
An LLM’s most useful output can be something the workflow reuses. Refining a mailbox-specific category list against historical email let UiPath route new messages with Jev and ordinary workflow rules alone.
Which steps actually need an agent?
A traditional robotic process automation (RPA) workflow has a useful property. You can follow the if and else branches and know what the software will do next. When large language models arrived, it became tempting to give one agent a task, a collection of tools and the freedom to work out the whole procedure as it went.
UiPath got mixed results from that approach. Evaluations helped improve the agents, but Chibi Vikram and Kevin Bernstein settled on a different division of labor for processes that can run for days or weeks and involve robots, software agents and people. Keep the known sequence of operations in the workflow. Wherever the next step depends on judgment, ask a model a specific question and use its answer to choose the branch. 1:12
That leaves room for a model like Jev. In UiPath’s early comparisons, Jev had less general reasoning ability than a full LLM, but it was fast and could handle many calls in parallel. Those properties matter when a workflow has hundreds of small judgments to make.
UiPath Maestro Flow puts these different kinds of work on one canvas. Bernstein borrows two names for the kinds of reasoning that can happen inside it.
- System 1 makes a quick judgment from the information at hand. Does this transaction look fraudulent?
- System 2 can spend longer investigating, call tools and bring back information the workflow didn’t have when it started.
The interesting implementation question is how to decide when to hand work from the first system to the second. It turns out that this decision can itself be a System 1 task.
A $48,000 transaction triggers two parallel checks
An unexpected $48,000 transaction appears in a bank portal. Bernstein reports it as fraudulent, which triggers the Maestro Flow investigation. 4:14
Two branches start work in parallel, and they ask Jev different questions.
- Screen recent purchases. The flow retrieves 60 recent credit card transactions. Jev judges each one individually in fractions of a second and flags about four as potentially fraudulent.
- Check whether the evidence is sufficient. The other branch considers the account as a whole, with particular attention to the reported $48,000 transaction. Can the workflow already determine whether this is fraud? Jev’s initial assessment is that it needs more information.
That second answer starts the slower System 2 agent. It calls a bank API and discovers that the payee associated with the $48,000 transaction had created a new account on a phone earlier that same day. The timing gives the investigation a strong additional indicator of fraud. The flow now asks Jev the same evidence question with the new information included.
What changes after the lookup? Jev now considers the evidence sufficient and reports 100% suspicious activity. A separate grading model combines the flagged transactions with the case data and returns a fraud score of 4.97 on a scale of 1 to 5. These are two distinct model outputs in the demonstration. Neither score establishes the system’s accuracy across fraud cases.
The usual next step, Bernstein explains, would be for a person to review the logs from both systems and decide whether to freeze the account. The demonstration stops short of that action. The workflow has assembled the evidence and a recommendation for the reviewer.
The placement of the bank lookup explains where the savings can come from. The workflow can screen a batch of transactions quickly and reserve the longer investigation for a case that needs it. Across customer workflows replacing conventional LLM calls with Jev, Bernstein reports roughly 50× the speed at about one-seventh the cost (a factor of 7.1). Those figures describe the call substitutions. An entire investigation still takes time for API calls and human review.
When does the fraud workflow call the bank?
Read the diagram as text
- Customer reports a transaction. The $48,000 dispute starts the flow.
- Screen recent purchases. Transaction screening — Jev checks 60 transactions individually and flags about four.
- Is there enough evidence?. Case investigation — Jev assesses the disputed transaction in its account context. Its answer changes after the lookup.
- Investigate through the bank API. Case investigation — A System 2 agent discovers that the payee’s account was created earlier that day.
- Grade the case. A separate model combines the findings and scores the case 4.97 out of 5.
- Human review. The usual follow-up is to inspect both logs and decide whether to freeze the account.
- Customer reports a transaction → Screen recent purchases: Start screening.
- Customer reports a transaction → Is there enough evidence?: Assess the dispute in parallel.
- Is there enough evidence? → Investigate through the bank API: No, start investigation.
- Investigate through the bank API → Is there enough evidence?: Return the new account information.
- Is there enough evidence? → Grade the case: Yes, pass the case assessment.
- Screen recent purchases → Grade the case: Supply flagged transactions.
- Grade the case → Human review: Usual next step.
An overnight search for a better reranker
UiPath then turned the question inward. Could Jev do some of the work inside the company’s own agents? One candidate was reranking, the step in retrieval-augmented generation that decides which passages an answering LLM gets to read. 7:44
Retrieval finds documents that appear relevant to a question. A relevant document can still contain a lot of material that won’t help answer it. UiPath typically used an LLM to select the most useful chunks from those documents and pass them along as context. Replacing that selection step gave the team a well-defined problem and, crucially, a way to tell whether a proposed solution was any good.
The team already maintained reranking evaluation sets to check the effects of switching models. During its first week with Jev, it reused those sets to build a hill-climbing harness. An automated search got the score achieved by the existing LLM, access to three Jev APIs and a goal of finding a strategy that could reach that score. It could propose different ways of calling Jev, run them against the evaluations and use the scores to guide further experiments.
The search ran overnight for 14 hours. Plenty of strategies went nowhere. Roughly every couple of hours, Vikram recalls, one would do a little better. How much could the calling strategy alone change the result? A direct use of Jev scored 0.866. The strategy that emerged from the search, called tournament, reached 0.889.
That is a gain of 0.023 on UiPath’s reranking evaluation with the same underlying Jev model. The metric and the original LLM’s target score aren’t specified, so the useful comparison is between the two ways of using Jev. Whether the search reached parity with the original LLM remains open.
Make the chunks compete
The straightforward way to rerank is to ask how relevant each chunk is to the question, then use those judgments to pick the best chunks. The tournament changes the question Jev has to answer. Given a group of candidates, which passages in this group are the most useful? 9:59
The important thing to follow through the tournament is which chunks get compared with one another.
- Divide the retrieved chunks into groups. Use Jev to compare candidates for relevance to the same question within each group.
- Promote the leaders from each group. The next round puts those winners into competition with winners from elsewhere in the candidate list.
- Repeat the selection among the survivors until the top passages emerge. Supply those passages to the answering LLM.
This lets the reranker make a series of local choices without relying on independently assigned relevance scores to order the entire list. It also gives an early choice consequences. A passage eliminated in its group never gets a chance to compete in a later round. How to form the groups and how many leaders to advance are therefore meaningful design choices.
The obvious objection is the call count. The tournament made thousands of Jev calls. But comparisons in independent groups can run in parallel, and only the later rounds need to wait for the earlier winners. Vikram reports that the calls still finished in under a second in UiPath’s tests. The team also tried the approach on live indexes and reported about a 15× speedup for reranking, a separate result from the customer workflow comparison.
The surprising part of the experiment is what the evaluation let the team search over. A model comparison using one direct call would have stopped at 0.866. By letting the search change how candidates met, how often Jev ran and which results fed the next call, the team found a better reranker using the model it already had.
Let the LLM design the categories, then route mail without it
A support inbox with millions of messages presents a different problem. Before a team can analyze what customers are writing about or decide who should follow up, it needs useful categories. Choosing those categories without reading the mail is hard, and the right set can differ substantially from one mailbox to the next. 11:59
UiPath previously fine-tuned a classification model, which could take hours or even a day. Another hill-climbing experiment suggested a different place to spend that effort. Make the list of categories the thing that improves with each pass through the mailbox.
An LLM proposes an initial list, say 15 categories. Jev then classifies the entire historical mailbox against that list. Running a million messages through the proposed categories gives the team something much more informative than the category names alone. It can see which categories attract few or no messages, which appear too narrowly tailored and where the assignments fit poorly.
The LLM uses those results to revise the categories. Jev then classifies the whole mailbox again under the revised list. That second full pass matters because changing the choices can change where previously classified messages belong. Jev was cheap enough for UiPath to repeat this several times and arrive at categories suited to that particular inbox. The distribution of assignments helps diagnose a bad category scheme, although it cannot by itself tell you whether each message went to the right place.
What has to survive from all that work when the next email arrives? Just the resulting category list and the rules for what to do with each match. Maestro Flow gives Jev the incoming message and the categories. Once Jev chooses a category, an ordinary workflow branch can notify the corresponding person or team.
The general-purpose LLM has finished its job before the new email arrives. Vikram describes notifications arriving almost in real time. The team had effectively saved the LLM’s judgment about how to organize a mailbox in a form that a much faster model could reuse on every message.
These experiments leave a useful question for anyone trying the same approach. If a direct model call scores poorly, what else could the evaluation let you change? In reranking, UiPath changed which passages competed. In email mining, it changed the choices available to the classifier and moved the expensive work out of the incoming mail workflow altogether.
After three months of UiPath teams swapping discoveries in Slack, Vikram invited others to share the strategies they find. Bernstein pointed builders to Maestro Flow, which UiPath was offering to try for free at the time of the talk. Developers interested in building their first automation with a coding agent can also explore the UiPath skills repository. 15:11
Which work repeats for every incoming email?
Read the diagram as text
- Propose or revise categories. Fit the categories to the mailbox — The LLM starts with a candidate list, such as 15 categories, and revises it using the previous pass.
- Historical support mail. Fit the categories to the mailbox — The full mailbox can contain millions of messages.
- Classify the full mailbox. Fit the categories to the mailbox — Jev assigns messages to the proposed categories, revealing unused or poorly fitting categories.
- Mailbox-specific category list. Reusable result — Keep the categories that emerge from repeated passes.
- New email. Process incoming mail — Each arriving message starts the routing workflow.
- Choose a category. Process incoming mail — Jev matches the message against the saved list.
- Notify the responsible team. Process incoming mail — Maestro Flow follows the rule associated with the selected category.
- Propose or revise categories → Classify the full mailbox: Candidate categories.
- Historical support mail → Classify the full mailbox: All messages on each pass.
- Classify the full mailbox → Propose or revise categories: How the categories filled up.
- Propose or revise categories → Mailbox-specific category list: Retain the refined list.
- Mailbox-specific category list → Choose a category: Available choices.
- New email → Choose a category: Message to classify.
- Choose a category → Notify the responsible team: Matched category selects the route.
Resources
From the talk
Explore the workflow canvas used in the fraud demonstration and the options for building a flow in a browser, an IDE or with a coding agent.
Further reading
The repository includes a Maestro Flow skill for authoring workflows, connecting nodes, validating flows and running evaluations from a coding agent.
Full transcript
Loading transcript…