The AI agents vs. RPA question has a shorter answer than the vendor content suggests. RPA replays a scripted sequence of clicks and keystrokes, so it excels at stable, deterministic tasks and breaks the moment a screen changes. AI agents read and reason about their inputs, so they tolerate variation but occasionally produce confident wrong answers, which means they need review gates. Use RPA, or better yet a plain API integration, where the rules are fixed and the systems are stable; use an agent with human review where the inputs vary. Most real back offices end up needing both, wired together deliberately.
What RPA Actually Is, and Why It Breaks
RPA, robotic process automation, is software that drives other software the way a person would: open the browser, log into the portal, click the third tab, paste the value from column D into the field, hit submit. Tools like UiPath, Automation Anywhere, and Power Automate let you record or script these sequences, and through the late 2010s this was the fastest way to automate anything that lacked an API. Insurance and banking back offices ran thousands of bots this way. It genuinely worked.
It worked until something moved. A bot identifies screen elements by selectors: DOM paths, element IDs, window titles, sometimes literal pixel coordinates on a Citrix session. When a vendor redesigns their customer portal, when an ERP upgrade renames a field, when a browser update shifts the layout by a dozen pixels, the bot does not adapt. It either throws an error at 2 a.m. and stops, which is the good outcome, or it keeps clicking and types the freight amount into the quantity field, which is the outcome that generates a cleanup project. Organizations that ran large bot fleets learned to staff a permanent maintenance function, and the maintenance bill quietly consumed a real share of the savings the bots were bought to produce.
The second limit is stricter: a script only handles inputs it was written for. If your customers send purchase orders in forty different formats, a template-based bot needs something close to forty templates, and format forty-one arrives next Tuesday. RPA never handled variation. It handled the happy path, quickly and cheaply, and pushed everything else back onto people.
None of this makes RPA useless. Against a stable internal system with no API, where the screens have not changed since 2013 and will not, a scripted bot is cheap, fast, and perfectly predictable. The industry's mistake was treating screen automation as a universal adapter for inputs that vary. That job has changed hands.
What Changed: Agents That Read Instead of Replay
An AI agent, in the practical sense that matters for a back office, is a language model wired to tools, such as a database lookup, an ERP API, or an email sender, and run in a loop: read the input, decide what to do, act, check the result, repeat. We wrote a plain-English introduction in AI agents for small business; the one-line version is that the model contributes something scripts never had, which is the ability to read.
That single capability moves the boundary. A scripted bot cannot process an emailed purchase order unless the layout matches its template. A language model reads the PO roughly the way a person does: it finds the part numbers whether they sit in a table, a paragraph, or a scanned fax with a coffee ring through the quantity column. Layout drift, the thing that broke RPA bots weekly, mostly does not register. When a supplier redesigns their invoice, the agent shrugs and keeps extracting.
The price of that flexibility is determinism. A script does the same thing every time, including the wrong thing, which at least makes failures reproducible. A model does approximately the right thing nearly every time, and its failures are not crashes but plausible wrong answers: a transposed digit from a blurry scan, a unit price pulled from the wrong column, an address completed from memory rather than from the page. Nothing turns red. Accuracy on well-built document pipelines is high, but high is not one hundred, and the gap between 96 percent and 100 percent is exactly the part of the system you have to design on purpose.
AI Agents vs. RPA: Which Should You Use?
Start with the rule that outranks both technologies: if the target system has an API, use it and skip the debate. Straight integration code is cheaper to run, faster, and more reliable than a bot pretending to be a user or a model reasoning about what a user would do. RPA and agents are both workarounds for missing structure. When the structure exists, take it.
When there is no API, sort the task along two axes: how much the inputs vary, and how much judgment the task requires.
- Fixed inputs, stable target, no API: script it. Classic RPA, or a maintained browser automation, is still the right tool for pulling the nightly report out of a legacy MRP that offers no export.
- Variable inputs, mechanical decisions: agent territory. Reading emailed POs, classifying inbound documents, matching invoices to receipts, drafting status replies from data you already hold.
- Variable inputs, consequential judgment: the agent drafts, a human decides. Credit terms, disputed claims, anything where a mistake costs a customer.
- Low volume, any shape: automate nothing. A twice-a-month chore rarely pays back a build; use a checklist.
The architecture that actually ships well pairs the two philosophies instead of picking a side. Put the language model at the messy edge, where documents and emails arrive, and put deterministic code everywhere consequences live. The agent extracts and normalizes; plain validation code checks that part numbers exist, quantities are plausible, and totals add up; then an API call, or as a last resort a scripted bot, writes the clean record into the system of record. The model never types into your ERP directly. Deciding which workflows deserve this treatment first is its own exercise, and our scoring method for what to automate first walks through it.
Review Gates: The Design That Makes Agents Safe
A review gate is a routing decision applied to every item the agent touches, and it is the difference between an automation you trust and one you quietly stop using. Each extraction gets a disposition. Items where the model is confident and every deterministic check passes post automatically. Items where confidence dips, or a validation fails softly, say a part number that exists but has not been ordered in three years, land in a human review queue. Items that fail hard validation get rejected back to the sender or escalated to a person.
The queue is a real interface, not a forwarded email. The reviewer sees the source document on one side and the extracted fields on the other, corrects what is wrong in seconds, and approves. Two things make this compound over time. First, every correction is labeled evaluation data that tells you precisely where the system errs, by field, by document type, by sender. Second, the acceptance threshold becomes a dial: start conservative, with most items reviewed, and widen autonomy as the measured error rate earns it. Skipping this step and going straight to full autonomy on day one is among the most common wrecks we cataloged in why AI automation projects fail.
Log everything regardless of disposition: input, model output, validation results, who approved. When a bad record eventually gets through, and one will, the log turns a mystery into a ten-minute diagnosis instead of a week of distrust.
Cost and Maintenance, Honestly
RPA's costs are licenses and fragility. Commercial bot licenses commonly run thousands to low tens of thousands of dollars per bot per year, and the maintenance tail scales with how often the target screens change: hours per week for a fleet pointed at actively updated SaaS portals, near zero against a frozen legacy application.
An agent's inference cost is usually the smallest line in its budget. Reading and extracting a purchase order costs cents; a thousand documents a month often totals less than one software seat. The real money is the build, meaning the pipeline, the validations, the review interface, and an evaluation set of real documents, plus ongoing ownership: someone watches the accuracy numbers, updates prompts when a model version is retired, and owns the exception queue. Neither technology is fire-and-forget. The practical difference is failure style. RPA fails loudly when screens change; agents fail quietly when accuracy drifts; your monitoring has to match the failure you will actually get.
FAQ
Is RPA obsolete now that AI agents exist?
No. For high-volume, deterministic tasks against stable systems with no API, a scripted bot is still cheaper per run and perfectly predictable. What is obsolete is stretching RPA across variable inputs with ever-growing template libraries; that work has moved to language models, which absorb variation natively.
Can an AI agent replace the bots we already run?
Replace them in order of pain, not all at once. A stable bot that has not broken in a year should be left alone. The candidates are the bots that need a template per document format and the ones that break every time a portal updates, because both are symptoms of variation, which is the one thing a model handles better than a script.
How do we stop an agent from writing bad data into our ERP?
Never let the model write directly. Route every extraction through deterministic validation, auto-post only above a confidence threshold, and send everything else to a human review queue. Then sample-audit a slice of the auto-posted items so accuracy drift shows up in a weekly report before it shows up in your books.
What does an agent cost to run compared to RPA licenses?
At typical SMB volumes, inference runs tens of dollars a month, well under per-bot license fees. The spend concentrates in the initial engineering and in ongoing ownership rather than in per-run or per-seat charges, which is a friendlier cost structure as your volume grows.
If you have a bot that keeps breaking or a shared inbox full of documents someone re-types, this hybrid pattern, with the model at the edge, code at the core, and humans on the gate, is what Willowark's AI and automation practice builds. Contact us and bring a sample of your ugliest inbound documents; that is usually where the answer starts.
Relevant for Manufacturing, SaaS & Software Products, Local Service Businesses · AI & Intelligent Automation
Engineering notes, monthly
One article like this a month. No pitch.
What we're building across the digital/physical boundary, what we learned, and one thing you can use. Double opt-in, one-click unsubscribe.


