Skip to content

How to build an agent that uses websites

Some systems only have a website: a supplier portal, a carrier's tracking page, a government form. Give the agent a browser as a tool, and keep writes behind approval.

Last reviewed November 2026

App, built with Tray Helix

The short answer

A Tray Helix agent can use a website with no API through a third-party browser service, such as Browserbase, called as a tool. The tool opens the site in a remote browser, signs in with credentials held by Tray, and reads or fills pages as the agent directs. Reading runs on its own. Anything that submits a form is a separate tool marked for approval, so a person sees the exact values first.

supplier-portal-agent.helix-app.ai

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
A sketch of a morning's portal checks. The agent read the portal; any change to the ERP waits for a person.

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. 1

    A scheduled run starts

    Each morning, the agent gets the list of open orders with that supplier.

  2. 2

    It opens the portal

    The browser tool starts a session in the browser service and signs in with credentials held by Tray.

  3. 3

    It reads each order

    Status, ship date and tracking number, from the page.

  4. 4

    It compares and proposes

    Where the portal and the ERP disagree, it proposes the update.

  5. 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.

1

The checks app

What the agent checks and what it found.

Claude Code, Codex or Cursor

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.

2

The agent and its browser tools

Read the site, propose, wait.

Claude Code, Codex or Cursor

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.

Websites change without notice. Asking the agent to record an unfamiliar page instead of guessing keeps a redesign from becoming a wrong update.
3

Run it every morning

The check nobody has to remember.

Claude Code, Codex or Cursor

Run the agent every weekday at 7:00. Post the buyer a Slack summary: orders checked, delays found, and updates waiting for approval.

4

Connect it to real systems

The browser service, the portal login, the ERP.

Claude Code, Codex or Cursor

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.

Tray holds the browser service key and the portal login as workspace authentications, so the app references names and never the secrets.
5

Ship it

A URL, and the buyers on it.

Claude Code, Codex or Cursor

Deploy my app.

Your assistant runs helix deploy and the app comes back as a URL.

What it connects to

The browser service reaches the website. Everything else goes through Tray.

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. 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. 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. 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. 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. 5

    Know what the checks cost

    AI usage shows per app, so the agent's cost sits next to the checks it ran.

Questions people ask

Can a Tray Helix agent use a website?

Yes, through a third-party browser service, such as Browserbase, that the agent calls as a tool. It sits behind the same limits and logs as any other tool, and you can mark it for approval.

When should an agent use a website instead of an API?

Only when there is no API. Tray connects to 12,000+ apps, databases, APIs, and services, and an API call is faster and steadier than a page.

How are website logins kept safe?

The login is held by Tray as a workspace authentication and passed to the browser session. It never appears in the prompt or the code.

What happens when the website changes?

The read tool returns what it sees. If the page looks unfamiliar, the agent records that and moves on, and writes still wait for approval.

Build it, then run it properly

Helix is the governed runtime for AI-built apps and agents. Deploy what you build, put SSO in front of it, connect it to your systems with managed credentials, and give it a named owner.