← Back

Engineering

Third-party portal automation: API, RPA, or browser agent?

By Boardy · 5 min read · Published · Updated

A cream key, a plain black bar, and a small green window frame.

How do we automate supplier portals that don't have an API?

Check what each portal permits and what the job actually needs to do. Use the API for supported operations, a script for stable screens and a supervised browser only for permitted gaps that justify extra maintenance.

Use a supported API when it covers the required operation, scripted browser automation when the interface is stable, and a browser agent when interpreting variable screens genuinely adds value.

That is a preference order, not a guarantee. The hardest question is not whether software can click the button. It is whether you can trust the resulting operation after a timeout, a login challenge, or an unexpected page.

1. API

An official API can expose explicit inputs, machine-readable results, and predictable errors. Ask whether it covers the entire business operation. An API that reads account data but cannot submit the required document is not a complete replacement for the portal.

API cons:

Best for: repeatable, high-volume operations covered by an authorized integration. Record the requested action and reconcile the destination state before you retry an uncertain write.

2. Scripted RPA

A browser script can follow a known sequence of screens when no suitable API exists and the portal permits the automation. Prefer explicit page checks and meaningful element identifiers over screen coordinates. Confirm the account and the page before proceeding.

Script cons:

Best for: consistent forms, known fields, and an operator who will maintain the journey when the portal changes.

3. Browser agent

A browser agent can interpret page content and choose the next action. That flexibility helps with variable layouts. It also adds a new error: the agent can misunderstand the interface or infer permission that was never given. Page content is untrusted input.

Agent cons:

Best for: controlled workflows where screen variation is real, results are inspectable, and ambiguous steps can be escalated. Keep consequential actions behind a separate check.

Compare the exception path first

Give each approach the same authorized test: an expired session, an unavailable page, a changed field, invalid input, and an uncertain submission. An operator needs the account, the intended action, the last confirmed state, and evidence of any completed submission.

Sometimes the right answer is an API for most steps and a supervised browser step for the remaining gap. Sometimes the portal's rules make automation unsuitable. Both are better than an unsupported dependency.

Compare the interfaces before picking one

Interface Where it fits What to verify
API Supported reads or writes with a documented contract. Permission scope and confirmation IDs.
Scripted browser steps Predictable screens and known fields. Stable selectors, required checks and the stop condition when a field moves.
Supervised browser agent Permitted work where layouts vary and a person can handle exceptions. Approval before writes, limited permissions and evidence of the actual result.

Walk through one carrier update

Pull current shipment records from permitted APIs. For a portal-only confirmation, have the browser collect the record ID and proposed change, with sensitive data redacted from captured evidence. Send the diff to an operator for approval. After the update, record the timestamp and confirmation. If the result is unclear, stop and ask the operator to verify it instead of clicking again.

Frequently asked questions

What should an operator test before rollout?

An expired session, a moved field, an invalid record, and a submission that times out. Each case should stop safely or route to a named reviewer.

How should we handle MFA?

Leave MFA to the authorized person. Follow the portal's session policy and keep read and write credentials or permissions separate where supported.

Read next: Which AI workflow should you automate first?.

If you are evaluating portal automation, tell me the portal, the authorized operation, and the exception that currently sends the work back to a person.

Message me