Explainer 02 · 9 scenes · about 7 min

RPA vs scripts vs AI agents: which one do you need?

Three kinds of helper can take a boring job off your desk. Watch the same five invoices handled three ways, change the screen under the bot, and then answer six questions about your own job.

Hands on Run one invoice job three ways, break the bot, and use the chooser on your own job.

Example

Script code that talks to systems directly: files, APIs, databases

RPA bot software that uses the screens like a person: clicks, copies, types

AI agent a language model with tools: reads anything, drafts, explains

  1. 01/ 09

    Three kinds of helper

    A script is code that talks to systems directly: it reads files, calls an API, writes to a database. Fast and exact, but only for inputs it was written for.

    An RPA bot (robotic process automation) uses the screens the way a person does: it clicks, copies and types, following steps someone recorded. An AI agent is a language model with tools: it can read messy input and decide what to do, and it can be wrong.

  2. 02/ 09

    The job: five invoices

    An example business gets five supplier invoices this morning, and each one has to go into the accounts app.

    Three are routine. One comes from a new supplier with a different layout. One is a phone photo of a paper bill, and its numbers don't add up.

  3. 03/ 09

    Way 1: a script

    The script reads the data export and the two PDFs in the usual layout, and posts them through the accounts app's API in about a second.

    The new layout and the photo stop it, and it says so. A loud stop is a good failure: nothing wrong got in.

  4. 04/ 09

    Way 2: a bot that uses the screens

    The bot needs no API: it opens each invoice and copies from the spot where the total usually is. Useful when the only way into a system is its screens.

    Watch invoice 4. The new layout has a different number in that spot, and the bot types it in without a word. A quiet wrong answer is the worst kind.

  5. 05/ 09

    Then the screen changes

    The accounts app ships an update and moves its Save button. The bot's recorded clicks now point at nothing, and every invoice gets stuck.

    The script and the agent don't notice: they talk to the app through its API, which didn't change.

  6. 06/ 09

    Way 3: an AI agent

    The agent reads all five, including the new layout and the photo. It notices that the photo's items add to ₹1,890 while the total says ₹1,980, and asks.

    It is slower than the script, it costs something per use, and it can misread. So it drafts each entry and a person approves it.

  7. 07/ 09

    Side by side

    The script: fastest and exact, but strict. The bot: works without an API, but brittle when screens change, and it can be quietly wrong. The agent: handles the messy ones, but needs a person's yes.

  8. 08/ 09

    Which one do you need?

    Answer six questions about your own job on the stage. It starts with the answers for this invoice job.

    The chooser is a rule of thumb, not a verdict. The habit behind it is to try the simplest thing that works first, and add an AI model only where a step needs reading or judgement.

  9. 09/ 09

    Most real jobs are a mix

    The best answer to the invoice job uses all three ideas: a script takes the regular invoices, an agent reads the odd ones, and a person approves the agent's drafts. The script does the plumbing; the agent does the reading; the person keeps the yes.

    Every post, stop and approval leaves a receipt, so you can see later what happened to each invoice.

01In plain words

The short version.

  1. A script talks to systems directly. It is fast and exact, and it stops on anything it wasn't written for.

  2. An RPA bot uses the screens like a person. It helps when there is no API, but it breaks when screens change and can be wrong without saying so.

  3. An AI agent can read messy input and explain what it sees, but it is slower, costs per use and can be wrong, so a person approves its drafts.

  4. Pick the simplest that works: a script where you can, a bot only where screens are the only way in, an agent only for the steps that need reading or judgement.

  5. Most real jobs are a mix, with a person keeping the final yes and a receipt for every step.

02Sources

Where the facts come from.

  1. Robotic Process Automation

    Wil M. P. van der Aalst, Martin Bichler, Armin Heinzl, Business & Information Systems Engineering 60 · 2018 · what RPA is, and where it fits next to traditional automation

  2. Building effective agents

    Anthropic · December 2024 · workflows versus agents; start with the simplest solution

  3. IEEE 2755-2017: Guide for Terms and Concepts in Intelligent Process Automation

    IEEE Standards Association · 2017

Example

The business, invoices and timings are examples that show the typical behaviour of each kind of helper; they are not measurements. Everything runs in your browser and nothing is sent anywhere.

Want this working in your business?

Tell us the job. A person reads every request and replies by email.