Skip to content
Built in-house

Pitou: an AI agent for portal work, within hard limits

Web portals with no API leave staff re-keying data. Pitou is our own answer: a browser agent that completes multi-step tasks inside limits set in code, and logs its reasoning for review.

The problem

Supplier portals, regulator sites, registries, and government forms rarely offer an API. Staff re-key data and copy between screens, and scripts written against those pages break when a page changes. An unconstrained AI agent copes with change, but it goes wherever the page leads, spends without limit, and leaves no usable record. A controlled environment cannot accept that.

Design patterns

The decisions that make the system work, and that carry to other settings.

  1. 1Three roles per step

    A link mapper charts the page, a reader takes in its text, and a navigator chooses the next action. Running the mapper and the reader in parallel keeps steps quick and gives the navigator the page's full context.

  2. 2Limits in code, not the prompt

    Allowed domains, URL patterns, and budgets for steps, cost, and tokens are enforced by the engine. An action outside them is blocked, whatever the model proposes.

  3. 3A replayable run log

    The agent records its reasoning and its action at each step. A reviewer can replay a run to see why the agent acted as it did and where it went.

  4. 4Fallbacks recorded in the log

    When a click fails, the agent falls back to opening the link's address and notes that it did. A reviewer can see which runs needed a fallback and which sites need attention.

  5. 5New sites by configuration

    Workflows are defined as named steps, with site-specific logic kept apart from the engine. Adding a site means writing configuration. A recorder can watch someone do the task once and seed the workflow from it.

The result

Portal work that a small firm would otherwise hire operations or data-entry staff for goes to an agent that stays inside approved sites and budgets. A reviewer can replay any run step by step. When a site changes, we update its configuration and the engine carries on.

Applied

The same pattern in a regulated firm

Illustrations of how we would apply the pattern. They describe what we would build, not past client work.

Setting What it would do
Insurance claims A claims team would have the agent collect documents from repairer and supplier portals, staying within approved sites and leaving a log for the claims file.
Public sector We would build it to prepare repetitive forms on government portals for a caseworker to check and submit, seeded by recording the caseworker doing the task once.
Energy and utilities At an energy supplier, the agent would gather connection notices from network operators' portals, with a replayable record of each portal the agent visited.

You may need something like this if

  • Staff re-key data between web portals that offer no API.
  • Your scripts break whenever a supplier changes its website.
  • You want an AI agent, but only inside limits you can prove.
  • An auditor needs to see exactly what an automated process did.