Keep RPA where the rules are complete and the inputs are clean. Put AI agents on the steps that need reading and interpretation within policy, and expect most processes worth automating to need both. The question a COO should ask is narrower than "which technology?" It is which steps of one process are rule-complete, and which are not.
What each is built for
Robotic process automation (RPA) is software that performs a scripted sequence of actions in other applications, often through the same screens a person would use: open the record, copy the field, paste it into another system, submit. The script is written in advance. Given the same input, a bot does the same thing every time. That determinism is the whole point, and it is also the limit: when an input arrives in an unexpected shape, or a screen changes, the bot stops or fails.
An AI agent is a system that uses a language model to work toward a goal, deciding which step to take and which tool to call as it goes. OpenAI's practical guide to building agents puts it as "systems that independently accomplish tasks on your behalf," and adds that applications which use a model without letting it control the workflow, such as a simple chatbot or a sentiment classifier, are not agents. An agent can read an email, a scanned form or a free-text note and work out what is being asked. It also brings a new failure mode: it can be wrong with confidence. Systems built from agents like this are what vendors now market as agentic AI.
Side by side
| Dimension | RPA | AI agents |
|---|---|---|
| What it follows | A script written in advance | A goal, a set of tools and limits; it picks the next step |
| Inputs it handles well | Structured fields, fixed forms, stable screens | Emails, documents, free text, inconsistent records |
| Response to variation | Stops or fails at anything unscripted | Reasons about variation, and must be told where to stop |
| Same input, same output | Yes, by design | Not by default; consistency is engineered with tests and constraints |
| Typical failure | Breaks loudly when a screen or field changes | Produces a plausible wrong answer, which is quieter |
| Audit trail | A log of fixed steps | A log of decisions, sources and tool calls, which has to be designed in |
| How it is tested | Exercise each scripted path | Evaluate against sets of real past cases, including hostile inputs |
| Upkeep | Script fixes when applications change | Prompt, tool and evaluation upkeep when the process or model changes |
| Specific security concern | Bot credentials and access | Credentials plus excessive agency and prompt injection |
| Best fit | High-volume, stable, rule-complete steps | Language-heavy, interpretation-heavy, exception-heavy steps |
Products blur these lines: many RPA platforms now add AI steps, and many agent frameworks include fixed paths, so read each row as the category in its typical form. The distinction that survives the marketing is deterministic execution versus model-directed decisions, the same line between written rules and learned judgment drawn in AI vs automation.
When RPA wins
Choose RPA, or plain integration code, when these hold:
- Every case can be handled by a rule you can write down. If the exception queue is small and the rules are settled, a model adds cost and uncertainty for no gain.
- Inputs are structured and stable. Fixed forms, system-generated files and screens that rarely change are what bots handle best.
- The output must be exactly reproducible. Reconciliations and regulated reports often need the same result from the same input, every time, with a step log to prove it.
- The legacy system has no API. A bot that drives a stable green-screen application is still a sound answer.
- A bot already works. Replacing a reliable bot with an agent to modernize the stack trades a known cost for an unknown one.
Two of the model developers say as much. OpenAI's guide tells teams to confirm that a use case needs an agent and notes that "otherwise, a deterministic solution may suffice." Anthropic's engineering guidance recommends "finding the simplest solution possible, and only increasing complexity when needed."
When AI agents win
OpenAI's guide names three kinds of work where agents earn their place: complex decision-making with "nuanced judgment, exceptions, or context-sensitive decisions," rule sets that have become too intricate to maintain, and heavy reliance on unstructured data. Anthropic adds open-ended problems "where it's difficult or impossible to predict the required number of steps."
In operations, a simpler signal points the same way. If the bot's exception queue has become the real job, with people spending their day on the cases the script could not read, an agent belongs on those cases. Requests that arrive as emails, attachments and phone notes are agent work. So is any step where a capable new hire would need to read, compare and decide before acting.
Agents need more around them than bots do. The OWASP GenAI Security Project lists "Excessive Agency" among the top risks for LLM applications, traced to excessive functionality, permissions and autonomy. Agent work therefore comes with guardrails, a defined agent workflow, and a human in the loop for high-impact actions.
Where bots and agents share a process
The pattern that holds up in production splits the work by what each does well: the agent decides, deterministic automation executes, and a person owns the exceptions.
Consider a utility that receives account-change requests by email, web form and scanned letter. An agent reads each request, identifies the account, works out what is being asked and checks it against the account's history. Where the change is routine and verified, a bot or an API call applies it in the billing system, exactly the same way every time. Where the identity does not match, or the request implies a move-out with an open balance, the case goes to a named person with the agent's reading of it attached. Neither technology fits that process alone.
That split also tells you where to spend. Bolting a model onto existing bots, the approach described in AI-powered RPA, helps when the process is sound and only the inputs are messy. When the process itself is the problem, redesign it first. The broader picture of where rules-based automation stops is in RPA vs intelligent automation, and the case for treating the whole process as the unit of automation is made in the business process automation guide.
How to decide for one process
Walk the process step by step and ask five questions of each step:
- Can every case be handled by a rule someone can write down today?
- Do the inputs arrive in a fixed structure, or as language and documents?
- If the step goes wrong, can the result be undone cheaply?
- How much of the current workload sits in the exception queue?
- Who owns the cases the automation cannot settle, and what do they need to see?
Steps with clean answers to the first two questions go to RPA or integration code. Steps that need reading and interpretation within policy go to an agent, with irreversible actions behind an approval. Steps that need the authority to make an exception go to a person. The fifth question applies to both and is the one most projects skip. The guide to AI agents for business works through that question for a whole operation, and AI agent vs AI assistant covers the other boundary buyers often blur.
