AI and automation
What is the difference between AI agents and RPA?
Robotic process automation follows steps a person designed, exactly and repeatably. An AI agent receives a goal and decides the steps itself, using a language model to read screens and choose actions.
The short answer
RPA is a recorded or scripted procedure: click here, copy that field, paste it there, for screens that do not change much. It is predictable, auditable and cheap to run, but it breaks when a screen changes. An AI agent is a loop around a language model that looks at the current state, picks the next action from a set of tools, and repeats until the goal is met. It handles variation and new pages, at the cost of predictability, speed and per-run model costs.
Side by side
| RPA | AI agent | |
|---|---|---|
| Input | a fixed procedure | a goal in natural language |
| Decides steps | the designer, in advance | the model, at run time |
| Handles layout changes | poorly; selectors break | often, by reading the page anew |
| Same input, same output | yes | not guaranteed |
| Cost per run | low compute | model calls on every step |
| Audit trail | the script itself | logs of model decisions |
| Best for | high volume, stable processes | varied tasks, long-tail sites |
Where RPA wins
Back-office work with stable screens: moving invoices from a portal into accounting, reconciling reports, filling the same government form every month. Here you want the same result every time, clear logs for compliance, and no surprises. A well-built RPA flow on a stable system can run for long periods with little attention, and its failures are easy to understand because every step is written down.
Where agents win
Tasks with variety: researching information across many different websites, handling an inbox where every message needs a different action, or navigating sites you have never scripted. An agent can read an unfamiliar page and figure out where the search box is. This flexibility is why agent frameworks such as LangChain and browser agents are attractive for long-tail work.
Weak points of each
- RPA breaks on redesigns, pop-ups and unexpected dialogs, and needs a developer to update selectors.
- Agents can choose wrong actions, loop, or act on instructions hidden in a web page (prompt injection). They are slower, cost more per run and are harder to test.
The hybrid that most teams end up with
In practice, many systems combine the two. Deterministic code handles the parts that must be exact (logins, payments, data writes, CAPTCHA handling), while an agent handles the parts that vary (finding the right page, interpreting free text). The agent calls well-defined tools instead of improvising risky steps. That keeps behavior predictable where it matters and flexible where it helps.
CAPTCHAs in both worlds
Both RPA bots and agents run into CAPTCHAs on portals and public sites. Neither should try to "see" and click through a challenge by itself: RPA cannot adapt, and agents spend many model calls and usually fail. The reliable approach is the same in both: detect the widget, send its parameters to a solving API, and insert the answer with code. For RPA, this is one more scripted step; see RPA and CAPTCHAs. For agents, wrap it as a tool the model can call, as described in building an agent tool for CAPTCHAs. Keep use within what the site allows: automating your own workflows, QA, accessibility and public data collection, not account abuse.
Choosing
Ask three questions. Is the process stable and high volume? Prefer RPA or plain scripts. Does every run look different? Consider an agent, with guardrails. Does a mistake cost money or data? Keep that step deterministic regardless. The article on why AI agents get blocked by CAPTCHAs covers one of the most common points where agents stall.
Common questions
Is RPA a kind of AI?
Classic RPA is not; it replays designed steps. Newer RPA products add AI features for reading documents or screens.
Can an AI agent replace an RPA bot?
Sometimes, but for stable, high-volume processes RPA is usually cheaper, faster and easier to audit.
Why do agents fail on CAPTCHAs?
They are not built to pass bot checks by looking at them. Giving them a solving tool that returns a token works better.
What is a hybrid automation?
Deterministic code for exact, risky steps combined with an agent for steps that vary from run to run.
Which is easier to test?
RPA. The same input gives the same steps, while agent behavior can differ between runs.
Keep reading
- Robotic process automation (RPA)Software robots that repeat rule based office work across web apps and desktop tools, and the CAPTCHAs they meet on the way.
- AI browser agentLanguage model driven programs that open pages, click and type in a real browser, and what happens when they reach a CAPTCHA.
- How do RPA bots deal with CAPTCHAs?RPA bots detect the challenge, call a solving API through an HTTP step, insert the answer and carry on with the process.
- Agentic browsers explainedWhat agentic browsers are, how they differ from scripted automation, why they meet CAPTCHAs, and where a solving API fits into them.