When the Agent Needs a Human

Our agents audit public websites. When one hits a CAPTCHA, it doesn't fake an answer: it sends one link to its live browser and waits for a person.

'The agent stops. A person helps.' beside a flow: a verify-you-are-human page, one alert with one link, a person solves it, the agent carries on.
One alert, one link, ten minutes to answer.

A message lands in our team's chat channel: an agent has hit a CAPTCHA on one of the websites it checks. It will wait ten minutes for someone to solve it. There is one link.

Whoever on the team sees it first clicks the link. The agent's own browser opens in a web page, frozen on the "verify you are human" screen. They solve the challenge, and the real page loads. Within fifteen seconds the agent notices, reads the page and carries on. Nobody has to restart anything.

I've done it myself. This is the part of the system where the agent knows it should stop.

The job, and the wall it hits

We run agents that audit our customers' websites and check public websites against our own records. The agents visit page after page, read what is there and compare it with what we expect.

Sooner or later, an agent doing this meets a page that asks "are you human?". A CAPTCHA is exactly what it sounds like: the site owner asking for a person.

There are three ways to answer it:

  • Skip the site. For us, this was not an option.
  • Pay a CAPTCHA-solving service to answer it for the machine. I consider them unethical.
  • Ask a person. The site asked for a human, so a human answers.

We picked the third one. The interesting part is not the decision. It is everything you have to design so that "ask a person" works for a team that has other jobs.

Five design choices behind the hand-off

The hand-off in five steps: the agent spots a challenge and looks again; it sends one alert with one link; a person opens the agent's live browser and solves it; the agent checks every 15 seconds and carries on; if nobody comes within 10 minutes, it pauses that site and moves on.
The hand-off in five steps. The agent never clicks the challenge itself.

1. Be a polite visitor first

The cheapest hand-off is the one you never need. The agents read pages in a real, visible browser, one page at a time per site. They wait at least 30 seconds between two pages of the same site, or longer if the site's own rules ask for it. They take sites in turn instead of hammering one. They read each site's robots.txt (the file where a site says what automated visitors may read) and leave alone any page it rules out.

This is about being a good guest on someone else's website, and it comes before any question of what to do when the guest gets stopped at the door.

2. Only call a person for a real stop

Alerts that ask for nothing get ignored, so the agent filters hard before it asks anyone:

  • A second look. Some challenge pages clear on their own. The agent waits ten seconds and looks again before it treats any page as a real stop.
  • No alert the first time. The first challenge on a site is quietly retried about an hour later, during working hours. The alert only goes out if the same site challenges again.
  • Only in working hours. A CAPTCHA at 2 a.m. has nobody to solve it, so the agent never sends that alert. It puts the site in a queue and retries it at 8 a.m. on the next working day. So alerts only arrive during working hours.
  • Only for what a person can fix. A CAPTCHA can be solved by a person. A flat "access denied" page cannot. For that one, the agent sends no alert at all; it pauses the site for 24 hours and resumes during working hours.

3. Hand over the real thing, not a description of it

The alert does not say "please go to this site and solve the CAPTCHA". That would be useless: a CAPTCHA solved in your own browser does nothing for the agent's browser.

Instead, the link opens the agent's actual browser, live, inside a web page. It is reachable only from our company network. The person sees exactly what the agent sees, on the same tab, and solves it there.

The agent never clicks a challenge itself. It only waits.

Mockup of the alert in a team chat channel: the agent names the website, says it will wait 10 minutes, and gives one link that opens its live browser. Made-up data.
What the team sees: one message, one link to the agent's live browser. Mockup, made-up data.

4. Wait, but not forever

Once the alert is out, the agent keeps the challenge tab open and brings it to the front. Every fifteen seconds it checks whether the page has changed. As soon as the real page is there, it reads it and carries on as if nothing happened.

While a person is solving, the agent's second reader (it normally works on two sites at once) stops starting new pages.

The wait is ten minutes. After that, the agent stops waiting.

5. Plan for nobody coming

Sometimes nobody answers in time. That is normal: the people on the team have their own work.

So the hand-off has a defined end. After ten minutes without an answer, the agent marks that page as blocked, pauses that one site for 24 hours (and only resumes it during working hours), and goes back to the other sites. The page is recorded as blocked, never as a match or a mismatch.

This is the part that makes the whole thing safe to run. The wait has a hard limit, and a page the agent couldn't read is never reported as if it had been.

What it looks like day to day

My rough estimate: a few alerts a day. Whoever on the team sees it first takes it. Sometimes nobody answers within ten minutes, and then the fallback does its job.

We can also rehearse it. One command shows the agent a fake "verify you are human" page that clears itself after 30 seconds, so we can check the whole loop (alert, live browser, wait, resume) without waiting for a real website to challenge us.

It's not really about CAPTCHAs

The CAPTCHA was simply the first thing that stopped our agents. What we really built is a shared live browser. An agent runs for hours, hits something it can't or shouldn't handle alone, and sends one link. A person acts in that same browser, and the agent picks up where it stopped.

The same pattern could fit other places where a browser agent gets stuck:

  • A sign-in or a one-time code. A long job gets sent back to a login page, or asked for a code sent to someone's phone. The agent can't reach the phone, and it shouldn't hold a person's password. The owner signs in, and the job continues.
  • The final click that can't be undone. "Place order", "Pay", "Delete", "Publish". The agent prepares everything up to that button. A person checks the screen and clicks, because spending money or deleting data needs someone accountable.
  • Consent. New terms of service, or an "I certify this is accurate" box. Agreeing is a decision made by a person on behalf of the company. A bot ticking the box isn't real consent. This is the closest relative of the CAPTCHA: the site is asking for a person.

Some things are bad fits. Cookie banners should be handled by a fixed rule, not by a person. Anything that takes more than a few minutes, like reading a contract, belongs in a normal review step and shouldn't hold a live browser open.

There is one important difference. "Whoever sees it first" works for a CAPTCHA because anyone on the team can solve one. A sign-in, a payment or a consent needs a specific, named person. Once the browser is signed in as someone, the link to it is as sensitive as a password. Only that person should be able to open it, and every action they take should be logged with their name.

Where people fit

There is a lot of talk about how far to push automation. I think the better question is where it should stop, and what happens at that point.

For us, the answer was a short list:

  • Decide the stop points up front. Write down the moments where the agent must not continue on its own. A CAPTCHA was an easy one: the site literally asked for a person.
  • Know who should answer. For some stops anyone on the team will do. For others, it has to be one named person.
  • Make the hand-off cheap for the person. One message, one link, the exact screen the agent is stuck on. The cheaper the hand-off, the more likely someone takes it.
  • Don't ask people for things they can't fix. Filter out the noise before it reaches anyone, or the real alerts get ignored with the rest.
  • Put a clock on it. A hand-off without a deadline is just a stuck job.
  • Design the "nobody came" path. It will happen. The system should end up in a known, honest state when it does.

Good automation knows when to stop and hand over to a person. Then it makes that hand-off as easy as clicking one link.