The RPA versus API debate produces bad decisions when it is framed as a preference. The right choice depends on what the target system exposes, how often its interface changes, and how much maintenance the business can absorb.
A documented decision for each system in the workflow, with the reason, the maintenance owner, and a fallback if the interface changes.
Step-by-step
-
Inventory every system in the path
List each application the workflow touches, including the ones people forget: the ERP, the CRM, the shared drive, the legacy desktop tool, and the email client. For each, note whether it is cloud or on-premise and who owns it.
Tip: Include systems that only receive a copy of the data. They often hide the hardest integration.
-
Check for a usable API, not just an API
A vendor may advertise an API that lacks the endpoints you need, requires an expensive tier, or is poorly documented. Confirm that the specific read and write operations exist, that authentication is practical, and that rate limits fit your volume.
Tip: Ask for sandbox access and test the exact calls before deciding. A demo is not a contract.
-
Assess interface stability
If the only option is the user interface, judge how often it changes. A stable internal desktop app with predictable screens is a reasonable RPA target. A consumer web app that redesigns quarterly is a maintenance trap.
Tip: Ask the vendor about release cadence and whether they support UI automation.
-
Compare total cost over two years
Direct integration usually costs more upfront and less to maintain. RPA usually costs less to start and more to keep running as screens, credentials, and browsers change. Compare build cost, licence cost, and expected maintenance hours.
Tip: Include the cost of the person who will fix the bot at 9am when a button moves.
-
Consider a hybrid path
Many workflows use APIs for the systems that have them and RPA only for the one legacy gap. This keeps most of the flow stable and confines UI automation to the smallest possible surface.
Tip: Isolate the RPA step behind a clear interface so it can be replaced later without rewriting the whole workflow.
-
Score the options against risk
Use a simple table: API availability, data sensitivity, volume, UI stability, maintenance owner, and fallback. Score each system and choose the approach with the fewest unresolved risks, not the one that is most fashionable.
Tip: If the only blocker is cost, revisit in six months. Vendors add APIs regularly.
-
Document the decision and the fallback
Write one paragraph per system explaining the choice, the assumptions, and what would cause a revisit. Include the manual fallback if the automation fails. Future maintainers need the reasoning, not only the code.
Tip: Keep the decision record next to the workflow documentation, not in a chat thread.
Common questions
Is RPA always worse than an API?
No. When no usable API exists and the interface is stable, RPA is the pragmatic option. It is worse when it is used to avoid a conversation with a vendor who does have an API.
Can RPA and APIs be mixed?
Yes, and they often should be. Use APIs wherever they exist and confine RPA to the legacy gap.
Who should maintain an RPA bot?
Name an owner before launch. Unowned bots fail silently and get blamed on the vendor or the tool.