KodDeltaGuides

AI workflow automation vs RPA: choosing the right layer

~11 min read

RPA imitates a person clicking through fixed screens and is best where rules never change and volume is high. LLM-based automation reads unstructured documents and text, judges ambiguity and flags exceptions. If the input is structured, use RPA or an API; if the input is messy, use AI. Most real processes need both, with the boundary written down.

What changed in automation proposals over the last two years is vocabulary more than technology. The same vendors sold the same work first as robotic process automation, then as AI-powered workflow. The two are genuinely different tools, and they are good at different things.

This article covers the mechanical difference, a decision table you can apply to your own processes, why the cost structures diverge, and what to do with the bots you are already running.

The mechanical difference

RPA makes a software robot behave like a person at a keyboard. It opens the screen, clicks the field, pastes the value, saves. Rules are written as “in this condition, click there”. The system does not understand what it is doing; it repeats steps.

LLM-based automation interprets text and documents. It can answer questions like “is this email an order”, “which catalogue item does this invoice line correspond to”, “does this specification contain a non-standard clause”. In exchange, its output is probabilistic: usually right, never guaranteed.

Industry comparisons frame this as RPA repeating rules on fixed interfaces while AI-based automation interprets unstructured data and adapts to change. The practical consequence is that their failure modes differ. RPA fails by clicking the wrong place. AI fails by misunderstanding. The countermeasures differ too: verification steps for one, confidence scores and human approval for the other.

Decision table

SituationRPALLM-basedRecommended
Fixed-format input, fields always in the same placeExcellentWorks, unnecessary costRPA or direct integration
Layout differs every timeNo rule can be writtenExcellentAI
Free text in an email bodyDoes not workExcellentAI
Target system has no APIOnly practical pathCannot writeRPA or file-based transfer
Rules never change, volume very highCheapestPer-transaction cost accumulatesRPA
High exception rateA new rule per exceptionFlags the exceptionAI plus a human queue
Source application UI changes oftenBreaks silentlyUnaffectedAPI or AI
Audit trail requiredSteps are readableReasoning and sources must be loggedA design item in both
Arithmetic and reconciliationReliableUnreliableCode — neither of them

One sentence summarises the table: if the input’s shape is uncertain, use AI; if the destination has no interface, use RPA. Most real processes contain both conditions, which is why most correct architectures are hybrid.

Why the cost structures diverge

In RPA the money goes into build and maintenance. Every screen, every field, every exception is a rule. Running costs are negligible. But rule count grows over time, and maintenance grows with it — the single most common failure pattern in mature RPA estates.

In LLM-based automation the money goes into running. The build is shorter, but every document and every question costs something. The largest lever here is the amount of text sent to the model per transaction: reducing it lowers cost and raises accuracy at the same time.

Three numbers make the comparison honest:

  1. Monthly transaction volume.
  2. Per-transaction model cost (the AI side).
  3. Annual rule-maintenance effort in days (the RPA side).

Comparing build prices without these three compares the smallest part of the total. Our delivery bands are on the pricing page.

A worked scenario: both layers in one process

The process. Supplier shipment notifications entered into an old warehouse management application.

The input. 80 notifications a day. Half arrive as structured EDI messages, half as PDFs attached to email, in a different layout per supplier.

The target. A warehouse application built in 2011 with no API. Data enters through the screen or not at all.

The layers.

  1. Structured EDI messages are processed directly and never touch a model. That single routing decision removes half the running cost before anything else happens.
  2. PDF notifications go through the AI layer: supplier, shipment reference, line items, quantities, expected arrival. Fields it is unsure about are flagged rather than guessed.
  3. Validation happens in deterministic code: do the quantities total correctly, has this shipment reference already been processed, is the supplier known? No language model is involved, because comparison and arithmetic belong in code.
  4. Writing is done by RPA: the bot opens the warehouse screen, fills the fields, saves.
  5. Verification — the bot reads the record back and compares it against what it entered. Without this step, silent RPA failure is a matter of time.

Where the human approves. Flagged fields and anything failing validation land in an exception queue owned by the warehouse supervisor. A daily summary covers every record with a stock effect.

Why one layer is not enough. RPA alone would need a rule set per supplier layout and would break silently when layouts changed. AI alone would have no way to write into an application with no interface.

Drawing the boundaries in a hybrid design

Hybrid architectures only stay simple if the boundaries are explicit. Three are enough.

Understanding belongs to the AI layer. Reading a document, determining intent, matching a line item, flagging a non-standard clause. Every output carries a confidence signal.

Validation and writing belong to deterministic code. Do totals reconcile, has this been processed before, are mandatory fields present? Results are reproducible. The same layer performs the write — through an API where one exists, through RPA where it does not.

Decisions belong to a person. Approval at every irreversible step. Where those points sit is covered in human-in-the-loop AI approval design.

With these written down, debugging becomes tractable: a wrong outcome came from understanding, validation or approval, and the logs say which. In single-layer designs, “the system got it wrong” has no meaningful answer.

What to do with RPA you already run

Most organisations face this choice with bots already in production. Three scenarios cover nearly all of them.

The bot works and the input is structured. Leave it alone. Adding AI adds cost and no benefit.

The bot works but exceptions are growing. Keep the bot and put a reading layer in front of it. The bot continues to write; AI takes over understanding. This is the lowest-risk migration available.

The bot breaks constantly. The cause is almost always UI change in the target application. Check first whether an API or file-based path exists; if it does, retire the bot. If it does not, keep it and add read-back verification after every write.

The common thread: throwing away the existing investment is rarely the right answer. Adding a layer is cheaper and less risky than replacing one.

Why these projects get cancelled

Gartner’s prediction that over 40% of agentic AI projects will be cancelled by the end of 2027 cites escalating costs, unclear business value and inadequate risk controls. An MIT-affiliated study found that most enterprise generative AI pilots delivered no measurable P&L impact.

The parallel with RPA’s own history is striking. That wave went the same way: the easy processes were automated, exceptions accumulated, rule maintenance became unmanageable, and bots were quietly switched off. The technology changed; the failure pattern did not.

The one thing that breaks the pattern is writing the process down before choosing a tool. Which step, which input, which output, who approves. Answer those four and the tool choice makes itself.

When to do neither

When the process is undocumented. Automating an undescribed task accelerates three different ways of doing it.

When the target system is being replaced. If an ERP migration is coming, do not build RPA against screens that will disappear.

When the source system has an API. Screen automation is always a last resort. Choosing RPA when an API exists is buying fragility on purpose.

For arithmetic and reconciliation. Calculation belongs in code. A language model is not a calculator and cannot be held accountable as one.

When volume is low. Neither a bot nor a model is worth building for a task performed a few times a month. The practical threshold is work repeated several times a week and taking more than twenty minutes each time.

When the goal is to look modern. The most common stated origin of a cancelled project.

Measure your own situation

Five numbers decide the architecture for you.

  1. What share of input is structured? EDI, portal submissions and standard spreadsheets count; PDFs, free text and scans do not. Above 70% structured, you need less AI than you think.
  2. Does the target system have an API? Yes, partially, or no. “No” puts RPA or file transfer back on the table.
  3. Monthly transaction volume. The multiplier that determines running cost.
  4. Exception rate. Of your last 200 transactions, how many were non-standard? Above 20%, a purely rule-based design will collapse under maintenance.
  5. How many times has the source application’s UI changed in two years? Frequent changes mean RPA maintenance belongs in the budget.

Put the five answers side by side and the layer boundaries fall out of them. It also stops a vendor from fitting their preferred tool to your process rather than the reverse.

Next step

Our approach to operational automation is on the AI process automation page, the organisations we build for on who we build for, and the delivery bands on the pricing page. Two worked examples are in invoice matching automation and sales order entry automation. Send the five numbers above through the quote form and we will tell you which layer your process actually needs.

Frequently asked questions

Is RPA dead?

No. For legacy systems with no API and for high-volume tasks whose rules genuinely never change, RPA remains the cheapest path. What died is selling RPA as a general-purpose automation method. It was always the wrong tool for reading variable documents or exercising judgement.

Can AI replace our bots entirely?

In some steps yes, in others no. A language model will not type into the screen of a legacy application that exposes no interface — that still needs RPA or an integration layer. The common architecture is AI for understanding, a deterministic layer for validation, and RPA or an API for writing.

Which is cheaper?

It depends on where the cost sits. RPA concentrates cost in build and rule maintenance and has near-zero running cost. AI is quicker to build and charges per transaction. Without your monthly volume and a per-transaction figure, the two cannot be compared honestly.

Why do RPA bots break so often?

Because they are bound to screen layout. When the application updates, the button moves and the bot clicks the wrong place — usually without raising an error. The silence is the real problem: it keeps running and the damage is discovered days later. Any RPA build needs a read-back verification step for exactly this reason.

Doesn't running both add complexity?

Only if the boundaries are vague. Write three rules: understanding belongs to the AI layer, validation and writing belong to deterministic code, decisions belong to a person. With those written down, hybrid systems are easier to debug than single-layer ones, because every failure has an obvious home.

Where should we start?

With one process, and with its messiest input. Messy input is where AI genuinely changes the outcome; if it fails there, you have learned something cheaply. Starting with structured input produces a flattering result that tells you nothing.

Related guides

Service page: Package vs custom

Let's talk about what you need.

The 30-minute discovery call is free and carries no commitment.