Automation · Perspective
RPA is the deterministic half of the agent stack
Bots handle the steps that must be exact; LLMs handle judgment. Designing the handoff between them is the real work.
By Asif Hussain2 min readEvery few months someone declares RPA dead, usually in a post about AI agents. Having spent a large part of my career building automation programs with UiPath and Automation Anywhere, I see it differently. Agents do not replace bots. They finally give bots the thing they always lacked.
Large language models are good at reading messy input and making judgment calls: understanding an email, classifying a document, deciding which policy applies. They are not good at doing exactly the same thing ten thousand times in a row. Bots are the opposite. They are precise, repeatable, and auditable, and they fall over the moment the input stops looking the way they expect. Put the two together and each covers the other’s weakness.
Where each one fits
Take invoice processing, a process I have automated many times. Invoices arrive in every format imaginable. An AI step reads the document, extracts the supplier, amounts, and line items, and flags anything unusual. Then deterministic automation takes over: validate the data against business rules, perform the two-way match against the purchase order, and post the result to the ERP. Cases that do not match go to a person, with an explanation of why.
The AI handles variety. The bot handles the transaction. Neither could do the whole job well alone.
Design the handoff as a contract
The seam between the two is where projects succeed or fail. Never let free text from a model drive a transaction directly. The AI step should produce structured output that matches a defined schema, with a confidence score, and that output should pass validation rules before any bot acts on it. Low confidence or failed validation goes to a human. This one design choice removes most of the risk people worry about when they hear “AI in finance”.
Never let free text from a model drive a transaction directly.
Better exception handling
Exceptions have always been the expensive part of RPA. A bot stops, a ticket is raised, and someone has to work out what went wrong. AI helps here too. It can summarize why a case failed, suggest the likely fix, and prepare the correction for a person to approve. The human stays in control, but the investigation that used to take twenty minutes takes two.
What to do with your existing bots
- Leave stable bots alone: if a bot runs reliably on structured input, there is nothing to fix.
- Find the fragile ones: bots that break on unstructured or variable input are the best candidates for an AI front end.
- Expose bots as tools: modern RPA platforms let you call a bot like an API, which means an agent can use it as a tool for the steps that must be exact.
- Keep the controls: audit trails, credentials management, and work queues from your RPA program are exactly what agents need too.
The organizations that will move fastest with agents are often the ones with mature automation programs. They already know how to run software that does work on behalf of people. The interesting work now is the seam between deterministic automation and AI reasoning.
- RPA
- Agentic AI
- Intelligent automation