RPA, APIs or process redesign: an architecture decision for the full lifecycle

An API is not always available, and a robot operating an interface is not inherently a poor solution. The choice should reflect the integration's expected lifetime, system stability and maintenance cost. A weak decision selects the convenient technology without identifying who will detect and repair failures.

Start with a business contract

Describe the operation independently of technology: create an order with a specific identifier, record its lines and confirm the final state. Then establish how it can be executed and how the result can be read back. Evaluate command reliability separately from confirmation quality. A successful click on Save does not prove the ERP accepted a correct transaction.

If an operation exists only as an organisational workaround, process redesign may be the least expensive architecture. Automating an unnecessary step makes it faster while preserving an avoidable integration obligation.

Where an API helps

APIs support explicit schemas, error handling and contract tests. They do not automatically provide idempotency, appropriate permissions or usable documentation. Check limits, versioning, partial writes and reconciliation after timeouts. Those properties matter more than the mere existence of an endpoint.

For event-driven integration, avoid separating a database update from message publication without recovery arrangements. An outbox can address consistency between a local update and downstream work, but the consumer still needs duplicate detection.

When RPA is justified

RPA can bridge a stable application without an accessible integration interface. Treat it as an operated product: a dedicated bot identity, a test environment, versioned selectors, monitoring and an agreed manual fallback. Interface changes should enter the same change-management process as integration code.

Record an exit condition, such as an available API, replacement of the underlying application or an unacceptable robot maintenance cost. Without one, a temporary bridge can become unplanned permanent technical debt.

The decision matrix

CriterionEvidence to establish
StabilityHow often does the contract or screen change?
ConfirmationCan the outcome be read after a lost response?
ControlCan the bot's permissions be narrowed?
MaintenanceWho reruns tests after system changes?

Test before approving the architecture

Exercise difficult cases as well as the normal path: interruption after a write, repeated execution and data changing between reading and approval. Compare recovery effort across the options. Include business users in the test because they can distinguish a technically valid record from an operationally correct one.

If no option supports safe completion, narrow automation to preparing information for human action. That may deliver useful improvement without creating uncontrolled transaction risk.

An illustrative integration without an API

Consider an ERP where a robot can create orders only through the interface. Before saving, the integration records a business identifier and the intended values. Afterwards, it checks that exactly one matching ERP record exists. Following an interrupted session, the next execution begins with reconciliation rather than another creation attempt.

If the ERP cannot store or search a stable identifier, the design has a material limitation. Similar customer names and amounts may assist an operator, but they are not a robust automatic deduplication contract. Restrict automation to data preparation or require manual review of uncertain writes instead of claiming reliability the source system cannot support.

Reading before creation and checking afterwards do not prevent two concurrent workers from creating duplicates. Prefer target-enforced identifier uniqueness. Otherwise, use atomic task claiming and a controlled single-writer policy, and do not automatically take over an operation with an unresolved external outcome. Without reconciliation, those controls do not justify an exactly-once claim.

Account for organisational change

An API option may require vendor development and a longer initial agreement while reducing later interface-maintenance effort. RPA may produce an earlier result but increase dependence on application release schedules. Compare the expected operating lifetime, test-environment availability and responsibility for each change.

Record who grants bot access, who authorises data changes and who contacts the application supplier during an incident. Missing ownership can outweigh technology costs. These dependencies belong to the architecture even when absent from an integration diagram. If the organisation cannot support them, narrow the implementation or change the sequence of work.

Give the decision a review date and a triggering event. Reassess when the source system, transaction volume or operating organisation changes.

Design the integration with Geekforce

We help match RPA, APIs and custom software to the actual constraints of your systems. Let's discuss the process you want to improve and who will operate it after implementation.

Sources and further reading

Don't just take our word for it — read what our clients say on independent platforms.