Supplier Portal Agent
42
Orders checked today
5
Delayed
2
Updates awaiting approval
| Order | Portal status | Our ERP | Proposed |
|---|---|---|---|
| PO-7741 | Shipped 28 Nov | Open | Mark shipped |
| PO-7756 | Delayed to 9 Dec | Due 2 Dec | Update due date, needs approval |
| PO-7760 | Awaiting stock | Due 4 Dec | Flag to buyer |
What matters here
- A Tray Helix agent can work in websites with no API through a third-party browser service, such as Browserbase, called as a tool.
- The browser tool sits behind the same limits and logs as any other tool.
- Split reading and submitting into separate tools, and mark the submit tool for approval.
- Site credentials are held by Tray and passed to the browser session, never written into the prompt.
- Use a website only where there is no API. An API, or one of the 12,000+ apps, databases, APIs, and services Tray connects to, is faster and steadier.
Who this is for
You have a job that still means someone logging in to a portal every day to check a status or copy numbers out. The site has no API, and you want an agent to do the clicking.
How it works in practice
A daily check of a portal nobody wants to open.
- 1
A scheduled run starts
Each morning, the agent gets the list of open orders with that supplier.
- 2
It opens the portal
The browser tool starts a session in the browser service and signs in with credentials held by Tray.
- 3
It reads each order
Status, ship date and tracking number, from the page.
- 4
It compares and proposes
Where the portal and the ERP disagree, it proposes the update.
- 5
Writes wait for approval
Updating the ERP or submitting anything on the portal is a tool marked for approval.
What a website agent is made of
A browser tool for reading, a separate one for submitting, and the usual guardrails.
A read tool
Opens the site in the browser service, signs in, and returns what the page shows. No clicks that change anything.
A submit tool, gated
Fills and submits a form with given values. Marked for approval.
Held credentials
The portal login is held by Tray and passed to the session, never placed in the prompt.
Limits and logs
The browser tools count toward the run's step and tool-call limits, and every call is logged.
The prompts
Paste these into Claude Code, Codex or Cursor in order. Each one leaves you with something that runs, so you can stop after any step.
These prompts start from a Helix project, which is what handles sign-in, credentials and hosting. Start with Helix.
The checks app
What the agent checks and what it found.
Create a Helix app: a supplier portal agent for our buyers.
Store each check: the order, what the portal showed (status, ship date, tracking number), what our ERP shows, the proposed change, and the outcome. Show today's checks, delays first.
The agent and its browser tools
Read the site, propose, wait.
Add an agent to the app that checks open orders on our supplier's portal.
Give it these tools:
- read_portal_order: start a Browserbase session, sign in to the portal
with the held credentials, open the order page and return the status,
ship date and tracking number. Read only.
- get_open_orders: read open orders for this supplier from the ERP.
- update_due_date: change an order's due date in the ERP.
Mark update_due_date as needing approval every time.
For each open order, read the portal, compare it with the ERP, and propose an update where they disagree. If the page doesn't load or looks different from usual, record that and move on rather than guessing.
Run it every morning
The check nobody has to remember.
Run the agent every weekday at 7:00. Post the buyer a Slack summary: orders checked, delays found, and updates waiting for approval.
Connect it to real systems
The browser service, the portal login, the ERP.
Now connect it to the systems we actually run.
Anything in angle brackets is a placeholder. Swap it for whatever we use.
<Browserbase>. The remote browser for read_portal_order.
<Supplier portal login>. Held in the workspace and passed to the browser session.
<NetSuite>. Read open orders, and update due dates after approval.
Only write through update_due_date.
Ship it
A URL, and the buyers on it.
Deploy my app.
What it connects to
The browser service reaches the website. Everything else goes through Tray.
-
Browserbase Run the remote browser session the agent reads and fills pages in. Reads and writes - Supplier portal Read order status, ship dates and tracking numbers. Reads
-
NetSuite Read open orders, and update due dates after approval. Reads and writes -
Slack Tell the buyer about delays and waiting updates. Writes
Named systems are the ones most teams actually run, not a list of the only ones that work. Swap in whatever you use.
Running it for real
The build gets you an agent that can use a website. Running it means the login stays safe and every page it touched is on record.
- 1
Deploy the app and its agent together
One command, or Deploy from CI on every merge, takes the app to a live URL. The agent ships with its app, so you can roll back any deployment.
- 2
Approval on every submit
Any tool that changes data, in the ERP or on the site, waits for a person who sees the exact values.
- 3
Portal logins held by Tray
The site credentials and the browser service key are held in Tray, not in the code or the prompt.
- 4
A named owner and every step logged
Each browser call and its result is logged under the run, and Tray streams the logs to your SIEM.
- 5
Know what the checks cost
AI usage shows per app, so the agent's cost sits next to the checks it ran.