RPA or integration: choosing how to automate a process
Published · By National Front Corp.
Automate through an API or another supported integration whenever the systems involved offer one: it is faster, more reliable and easier to secure. Use robotic process automation (RPA), which drives a system’s screens the way a person would, when a system has no usable interface for other software and replacing it is not realistic, or when the need will only last a few months. Whichever you choose, the automation needs an owner, monitoring and a plan for the day something changes.
The rest of this article explains how each approach works, where RPA earns its place and how to decide for a specific process.
How do the two approaches work?
Integration connects systems through the interfaces their vendors publish for other software. The most common is an API: one system sends a structured request, and the other answers with data or confirms the change. Other supported routes include webhooks that announce events as they happen, scheduled file exchanges in an agreed format, and the import and export functions built into many business applications. The contract is explicit and documented, and it is often versioned, so changes tend to be announced rather than discovered.
RPA uses a software robot, or bot, that works through the user interface. It signs in, opens screens, reads fields, types values and clicks buttons, following a script. Some bots run unattended on a server, on a schedule. Others run attended, on an employee’s computer, when that person starts them. The bot needs nothing from the target system except the screens a person already uses, which is both its strength and its weakness.
A simple way to see the difference: integration talks to the system, while RPA talks to the screen.
When is RPA the better option?
RPA earns its place in a few specific situations:
- Legacy systems with no API. Older desktop applications, terminal-based systems and some vendor portals offer no supported way in other than the screen.
- An API that does not cover the task. Some interfaces allow reading but not writing, or leave out the one function the process needs.
- Short-lived needs. Bridging two systems during a migration, working through a one-time backlog or covering the months before a replacement goes live. A full integration would outlast its purpose.
- Systems you do not control. A partner or government portal where you cannot request an interface and must use the same screens as everyone else.
In each case, write down why RPA was chosen and what would allow the bot to be retired, such as the vendor releasing an API or the old system being switched off. That note keeps a temporary bridge from becoming permanent by default.
RPA is a poor fit when a supported API exists, when the screens change often, when volume is high enough that speed and reliability matter more than convenience, or when the process itself is unclear. A bot that copies a confusing process only makes the confusion run faster.
What does it take to keep a bot running?
A bot depends on details nobody promised to keep stable: the position and label of each field, the order of screens, the login page and the time each screen takes to load. A vendor update, a new browser version, a different screen resolution or an unexpected pop-up window can stop it. The worse failure is the quiet one, where the bot keeps running but enters values in the wrong field.
Build bots so that failures are loud and contained:
- Check before each step that the screen shows what the bot expects.
- Validate the result, for example by reading back the saved record, rather than assuming the click worked.
- Send exceptions to a named queue with enough context for a person to finish the item.
- Monitor runs and alert on failures, and track the exception rate over time.
- Retest after every change to the underlying application, ideally in a test environment before production is updated.
Plan maintenance time from the start. Integrations need upkeep too, but a published API usually changes with notice and a transition period. Screens change whenever the vendor redesigns them.
How do you keep bots secure and governed?
A bot is an account that acts inside your systems without a person watching each step, so treat it with the care you would give a privileged user.
- One identity per bot. Each bot gets its own service account, so every action can be traced to it.
- Least privilege. Grant only the access the task requires, and review it when the task changes.
- Credentials in a vault. Keep passwords and keys out of scripts and configuration files, and rotate them on a schedule.
- Protected logs. Record what each bot did, to which records and when, and keep those logs where the bot cannot alter them.
- Separation of duties. A bot that can both create and approve a payment breaks the same control a person would.
If an application requires multi-factor authentication, agree on a documented approach for the bot account with your security team rather than weakening sign-in for everyone.
Governance also means knowing what exists. Keep an inventory of bots and integrations with their purpose, owner, systems touched, schedule and retirement condition. Changes to a bot should go through the same review and release steps as other changes to production, and a bot nobody owns should be switched off.
Where do workflow platforms fit?
Between hand-built integrations and screen-driven bots sit workflow and integration platforms. They offer ready-made connectors to common business applications, a visual way to define steps and conditions, queues for exceptions and built-in monitoring. Many RPA products now include API connectors as well, and many integration platforms can call a bot for the one step that has no API.
These platforms can shorten delivery and let a technically minded business team maintain simple workflows. Weigh three questions before committing:
- Do the connectors cover your actual systems and the specific functions you need?
- Who will maintain the workflows once the project team steps back?
- How hard would it be to move the logic elsewhere if licensing or support terms change?
When no connector exists, a small custom integration built by a software development team is often simpler to run than a bot, and it belongs to you.
How do you decide for a given process?
Work through the process one connection at a time. For each system it touches, ask:
- Is there a supported API or import function that covers the task? If yes, use it.
- Can one be obtained? Vendors sometimes offer an interface as an add-on or in a newer version, and a replacement may already be planned.
- How long will the need last? Months favour a bridge; years favour an integration.
- How stable are the screens? Frequent redesigns make a bot expensive to keep.
- What volume and speed are required? A bot works at roughly the pace of the screens it drives.
- Who will own it? Pick the approach your team can actually monitor and repair.
The answer is often mixed: integrations for most of the process, a bot for the one legacy system with no other way in, and a person handling the exceptions. That combination is normal. What matters is that each piece was chosen on purpose, has an owner and can be changed without surprises.
For how automation fits with logistics, resources and support, see Operations, Automation and Optimization.
If you are weighing RPA against integration for a specific process, our process automation team can review the systems involved with you in an exploratory meeting and help you choose an approach your team can maintain.
Questions we hear often
- What is the difference between RPA and API integration?
- API integration connects systems through interfaces their vendors publish for other software, so structured data passes directly from one system to the other. Robotic process automation (RPA) uses a software robot that works through the same screens a person uses: it signs in, reads fields, types values and clicks buttons. Integration is usually faster, more reliable and easier to secure. RPA can reach systems that offer no other way in, at the cost of depending on screens that can change.
- When is RPA the right choice for automating a process?
- RPA fits when a system has no API or other supported interface, when replacing or upgrading that system is not realistic in the near term, and when the steps are stable enough to script. It also fits short-lived needs, such as bridging two systems during a migration, where a full integration would outlast its purpose. In each case, write down the condition that will let the bot be retired.
- Why do RPA bots break, and how do you reduce the risk?
- A bot depends on the user interface: field positions, labels, screen order, login pages and pop-up windows. A vendor update, a new browser version or an unexpected message can stop it, or make it enter data in the wrong place. Checks before and after each step, a queue for exceptions, monitoring with alerts, a named owner and a test run after every change to the underlying application keep failures visible and contained.
- How should the credentials used by RPA bots be protected?
- Give each bot its own service account, never a shared login or an employee's personal credentials, with only the access its task requires. Store passwords and keys in a secrets manager or the platform's credential store, not in scripts or spreadsheets, and rotate them on a schedule. Log what each bot does so its actions can be traced, and remove its access when the bot is retired.