Skip to content

That's just a taste — their profile full of gems!

Visit profile
User avatar
Kenneth Mendoza
September 29435

Browser Agents That Actually Work

I’m seeing more people talk about AI agents, but what gets interesting is when the agent can actually use the web instead of just talking about it.

I built a browser agent in n8n + Airtop that can spin up a live browser, click, type, query pages, load URLs, and then close the session when it’s done. No code. Just a clean workflow, a solid prompt, and the right tools wired in.

What I like about this setup is that it feels practical fast.

You give the agent a goal in natural language, and it handles the browser like a human would:

  • open a browser
  • go to the right site
  • type into search bars
  • click buttons or links
  • read the page
  • return the answer
  • shut everything down cleanly

That last part matters more than people think. If you don’t explicitly end sessions, you end up wasting active browser capacity and credits.

The build itself is pretty elegant.

At the center, I’ve got an AI agent in n8n with a simple system prompt: you are a web agent, your job is to fulfill the user’s request, and you have access to browser tools. Then I give it a few very specific actions:

start browser
Always first. It returns the session ID and window ID, which everything else depends on.

load URL
Useful when the agent already knows where it wants to go or needs to recover from a failed click.

type
Great for search boxes and inputs. In my setup it types and submits.

click
For buttons, links, and visible elements.

query
This is the underrated one. It lets the agent inspect what’s actually on the page and extract the useful bits.

end session
Always last. Non-negotiable.

I also like giving the agent a think tool so it can reflect when it gets stuck instead of just failing silently.

A couple things stood out while building it.

First, the flow is much simpler than it sounds. The hard part isn’t “browser automation.” The hard part is giving the agent a small set of tools and being clear about when to use them.

Second, the live browser link is a killer UX detail. When the session starts, I send the live view URL into Slack so I can watch the agent move around the browser in real time. That makes demos way better, but it also makes debugging way easier. If the agent misses something, I can actually see where it got confused.

I tested it on a few real examples.

One was searching X for posts about Google V3. The agent opened a browser, used a saved authenticated profile, typed the query, scanned the results, summarized what it found, and ended the session.

Another was finding laptop deals on Best Buy. That one was more interesting because the agent had to adapt. It searched, queried the page, realized it didn’t get enough useful information, tried a click, that failed, then switched to loading a more direct URL and queried again. That kind of recovery loop is where these agents start becoming useful instead of just flashy.

That’s also why I’m bullish on browser agents for real ops work.

Not because “AI clicked a button.”
Because you can now build workflows that operate on websites with the same messy interfaces humans deal with every day.

Things like:

  • research tasks
  • authenticated site actions
  • scraping behind login walls
  • monitoring prices or listings
  • pulling structured info from ugly web pages

One practical detail I ran into: I had better reliability using an HTTP request for click actions instead of the native click node in one part of the flow. The native node worked, but I was hitting timeout issues. Swapping that piece out gave me more control and made the workflow more stable.

That’s usually my rule with automations: use native where it’s clean, go custom where it breaks.

Another nice piece here is profiles in Airtop.

If I need the agent to work inside logged-in environments like X, LinkedIn, or other authenticated apps, I can store credentials in a profile once and pass that profile name when the browser starts. If I don’t need auth, I just leave the profile blank and the same browser agent still works on public sites like Google or Best Buy.

So the pattern is basically:

same agent, same workflow, optional authentication layer

That’s a strong foundation if you’re building reusable automations for clients.

Model choice matters too. I found stronger models handled browser reasoning better, especially when the page changed unexpectedly or the first tool call didn’t work. The agent doesn’t need to be “smart” in a philosophical sense. It just needs to make solid next-step decisions.

That’s really the whole game with agents: not magic, just good tool selection + clean state management + enough reasoning to recover when the first move fails.

If I were building on top of this next, I’d take the same skeleton and point it at more operational use cases: lead research, account monitoring, marketplace checks, internal QA, repetitive admin work.

This is one of those builds that looks flashy on the surface, but underneath it’s actually a very usable pattern.

And I’m always a fan of those.

Not more complexity.
Just better interfaces between language, workflows, and the browser.

#workflowautomation#nocode#aiautomation#aiagents#n8n#browseragent#airtop#openrouter
Like
Dislike

42

13

Add a comment...