Why 99% Accurate Browser Agents Still Fail — Derek Meegan, Browserbase — Transcript
Full transcript
- 0:00All
- 0:01>> [music]
- 0:12>> right.
- 0:16Deploying browser agents.
- 0:19Uh running a browser agent demo once is
- 0:23easy. Uh it's on one site. It's one run
- 0:27on a good day with you watching and your
- 0:29fingers crossed. Uh, but we know
- 0:32production is vastly different.
- 0:34Thousands of runs unattended while the
- 0:38site can change or your model can just
- 0:39have an off day. So that's why we're
- 0:42here.
- 0:44What separates a demo from production?
- 0:48My name is Derek Megan. I'm a software
- 0:50engineer at Browserbase. And today we'll
- 0:52break up this talk into four parts.
- 0:55First, we'll bring order to chaos, and
- 0:58we'll understand concretely how agents
- 1:00interact with the web. Second, we'll
- 1:03define the impossible and explore why
- 1:06running them at scale is so hard. Third,
- 1:09we'll take a step back. We'll think
- 1:11about what's important and the value
- 1:13proposition that agents propose. And
- 1:16then last, which is hopefully the reason
- 1:18why we're all here, we'll generate some
- 1:21shareholder value.
- 1:23So first how agents interact with the
- 1:26web.
- 1:28I like to think about the output of a
- 1:29model as a probability distribution. You
- 1:32receive input tokens. They represent the
- 1:35page state, the overarching goal or the
- 1:37steps that have already been taken. Then
- 1:40the model explores a distribution of
- 1:42possible actions proposing the most
- 1:44likely one.
- 1:46Then that action is transposed into a
- 1:48structured tool call and
- 1:49deterministically executed to interact
- 1:51with the browser.
- 1:54But the interface of the browser is
- 1:56complicated. You have several distinct
- 1:59layers. You have requests flowing in and
- 2:02out of the browser. You have the
- 2:03document object model or the HTML
- 2:05representation of the page. You can
- 2:07screenshot the browser. the
- 2:09accessibility tree which is a semantic
- 2:11textual representation of the page and
- 2:14the browser state storage cookies
- 2:18console URL tabs etc. Underneath all of
- 2:22this, you have a dynamic code execution
- 2:24runtime where you can interact with the
- 2:27browser by writing arbitrary do
- 2:28JavaScript or CDP.
- 2:32How do you wire these together?
- 2:34Typically in industry, there's three
- 2:36main strategies. Number one is creating
- 2:39a textual representation of the browser.
- 2:41This typically involves taking the HTML
- 2:44state of the page in the accessibility
- 2:45tree and creating a hybrid
- 2:47representation.
- 2:49Number two is computer use where you
- 2:51represent the browser in a series of
- 2:52screenshots of the page. And finally,
- 2:55and becoming increasingly popular, is
- 2:58deharing your agent, removing tailor
- 3:00made tools in favor of dynamic execution
- 3:03environments where the agent can write
- 3:05arbitrary code against the browser.
- 3:08In practice, most production systems
- 3:11lean on the first, the second, or a
- 3:13combination of the first and the second
- 3:15two strategies.
- 3:18Now let's think about the type of
- 3:19agentic trajectories on the browser. And
- 3:22here I define three spanning across a
- 3:25spectrum of agenticness.
- 3:27From least agentic, we have purposebuilt
- 3:30browser trajectories that are specially
- 3:33made to complete a single task.
- 3:36To the most agentic, we have just in
- 3:38time browser automations where we don't
- 3:41know what the task is beforehand and the
- 3:43user provides us an arbitrary task to
- 3:45complete. In the middle, we have
- 3:48something sort of between both. We're
- 3:50using the browser as an implementation
- 3:52detail to serve a larger goal, such as
- 3:55performing deep research or competitor
- 3:57analysis.
- 3:59At scale, I really want to hone in on
- 4:02these transactional workflows. Not
- 4:04because it makes things easy, but that's
- 4:06because we typically see at scale. These
- 4:08workflows are transactional by nature
- 4:11where we want to complete a unit of work
- 4:13end to end. On the other side, browser
- 4:16agents provide us a flexible execution
- 4:18environment to handle ambiguity in
- 4:20production.
- 4:22So, we know how agents interact with the
- 4:25web and the different types of
- 4:27trajectories we may see and we're honing
- 4:29in specifically on transactional
- 4:31workflows. Why is it so hard in
- 4:34production? And I think it comes down to
- 4:38a key interaction.
- 4:41Cost accumulation is continuous while
- 4:43value realization is terminal. Each step
- 4:47in your trajectory, you're incurring
- 4:48some incremental cost. Additionally,
- 4:51you're incurring some incremental risk
- 4:53of failure. Yet, I only receive value
- 4:56from this browser trajectory when all
- 4:58steps of the task have been completed.
- 5:01That's all to say that with browser
- 5:03agents, there is no partial credit. And
- 5:05the vast majority of web automations
- 5:07fall into this category.
- 5:10So you say, "Okay, well each step
- 5:13there's more risk and there's more cost.
- 5:15If I use a highly capable model, I can
- 5:17sidestep this conundrum."
- 5:20Take this thought experiment for an
- 5:21example. You have a browser agent where
- 5:24each step has an independent success
- 5:26rate of 99%.
- 5:28If your browser trajectory spans 100
- 5:31steps, the overall success rate at scale
- 5:34starts to look like 36%.
- 5:37only about a third of the time. That's
- 5:40not super great and it's certainly not
- 5:42how we deliver reliable outcomes for
- 5:44customers in production. And so you say,
- 5:48okay, well, we're continuously
- 5:50accumulating costs, we're continuously
- 5:52accumulating risk, and the percentage
- 5:55chance of value realization is very low.
- 5:58That would suggest to never use a
- 6:00browser agent. Uh, thankfully, that's
- 6:03not the subject of my talk today. I
- 6:05think this dynamic is real, but the math
- 6:07isn't the whole story. And so, it's time
- 6:11to take a step back. Let's think about
- 6:14what's important and how agents actually
- 6:17deliver value. And to illustrate the
- 6:21value that I wish agents to deliver, uh,
- 6:24I will propose a simple equation. Um,
- 6:27perhaps not used enough by many of us.
- 6:30And this equation is profit equals
- 6:32revenue minus costs.
- 6:34Yes, very simple. Um, but perhaps
- 6:37overlooked when thinking about browser
- 6:39agents. And this is all to say that your
- 6:41agent is just another line item and that
- 6:44your agent should give you more than it
- 6:46takes. But when we think about what your
- 6:48agent should give you, that begs the
- 6:50question of what does a browser agent
- 6:53actually give you? And so to answer this
- 6:56question, I like to think about the
- 6:58context of the customer. At browserbase,
- 7:01we help our customers deploy browser
- 7:03automations for their users. Oftent
- 7:06times, they're not automating the web
- 7:08for their own needs, but instead
- 7:09performing actions on the web on their
- 7:12customer's behalf. And so, a browser
- 7:14agent actually gives you a task
- 7:16completed for your customer repeatedly.
- 7:19Well, it gives you that ideally. And the
- 7:22question is how you can create a dynamic
- 7:24system that affords the benefit of being
- 7:28able to wade through ambiguous problems
- 7:30while also completing the task
- 7:32repeatedly every time when the
- 7:34environment stays the same. And so we'll
- 7:37look across three dimensions and in
- 7:39order of importance. First is
- 7:42performance. Second is cost and third is
- 7:45maintainability. And when we think about
- 7:48performance, this is the primary measure
- 7:50of success that we want to focus on.
- 7:52Because once we know a browser agent is
- 7:54performant, it can complete the task we
- 7:56ask it to do. Then cost and
- 7:59maintainability simply become
- 8:00optimization problems. And I like
- 8:03optimization problems because those can
- 8:05be addressed with engineering.
- 8:07So the first thing we need to ask is
- 8:10what success actually looks like.
- 8:13And success in these transactional
- 8:15browser trajectories look like some kind
- 8:18of concrete artifact that the run leaves
- 8:20behind. If you're paying a bill, that
- 8:23might look like a confirmation email. If
- 8:25you're placing an order, that may look
- 8:28like an order ID or a receipt. Or if
- 8:30you're submitting a form, that may look
- 8:32like a new record in a system that you
- 8:35can deterministically query. Second,
- 8:39>> how often is an agent correct?
- 8:43And there's two ways to measure that.
- 8:46Naively, you may measure the success of
- 8:49an agent on a perr run basis. Assume you
- 8:52have a browser agent. It's probability
- 8:54of success on any run is 50%.
- 8:58Yet, if you permit that agent to retry
- 9:01for a particular transaction, maybe up
- 9:04to four retries, your per transaction
- 9:06success rate quickly climbs to 94%.
- 9:10And so when you think about what metric
- 9:12matters, again, I'd implore that we
- 9:14ground ourselves in the customer. The
- 9:16customer does not care necessarily how
- 9:18many retries you perform, but rather
- 9:21that the workflow was completed
- 9:23successfully and reliably. In short,
- 9:26permit retries and measure success
- 9:29against a per transaction basis.
- 9:34>> Next, we'll explore cost and we'll break
- 9:37cost down into two dimensions. The first
- 9:39is per run, which today is predominantly
- 9:42model costs. But as engineering evolves
- 9:46in the open source landscape for models,
- 9:49there's an incredible downward price
- 9:51pressure on the cost of intelligence.
- 9:53And I believe over time, model cost will
- 9:55become a smaller and smaller component
- 9:57of deploying browser agent trajectories.
- 10:00Next is infrastructure and compute. What
- 10:03are the real resources you need to run
- 10:05your browser agent trajectories? And
- 10:07last is additional integration and
- 10:09tooling. Then we think about maintenance
- 10:11over time. We need to invest in
- 10:13observability not only in how the agent
- 10:16made decisions but what actually
- 10:18transpired in the browser. Second is
- 10:21developer time. When things break or
- 10:24things are not working optimally, people
- 10:26need to come in and reconfigure the
- 10:28harness or augment its capabilities.
- 10:31And last is re-evaluation. As the
- 10:34problem changes, sites change, models
- 10:37progress, and we need to re-evaluate our
- 10:39point in time solution to last the test
- 10:43of time.
- 10:46So, we talked about performance, we
- 10:49talked about unit costs, we also talked
- 10:51about maintainability. What are the risk
- 10:53factors to the durability of these over
- 10:55time? Well, first and foremost, the
- 10:59environment can fight back. Antibbots
- 11:02and just generally we understand the web
- 11:04as not the friendliest place for your
- 11:06agent. Second, the task changes. The
- 11:10underlying job shifts beneath the a
- 11:12shifts beneath the agent and we ask the
- 11:15agent to wade through ambiguity.
- 11:17Luckily, this also benefits from
- 11:19increased model capability as models are
- 11:22more able to intuitively understand the
- 11:24intention of the user. and therefore in
- 11:27the face of something go wrong course
- 11:29correct and ultimately complete the
- 11:30goal. Third is a better methods better
- 11:34methods appear and this is sort of a
- 11:36canonical conundrum with automating the
- 11:38web. What happens if I'm automating the
- 11:41web today and that same website creates
- 11:43an API tomorrow but for the vast
- 11:45majority of browser agent use cases uh
- 11:48an API isn't coming anytime soon. And
- 11:51finally the model strays off tasks.
- 11:54models are inherently indeterministic.
- 11:56So from run to run it may not ide follow
- 11:59the ideal path or the critical path to
- 12:01perform the action. So
- 12:06finally we've come to the meat of the
- 12:08talk. How do we concretely generate
- 12:10shareholder value? This is the question.
- 12:13Uh we understand that if a model
- 12:14performs well then cost and
- 12:16maintainability are an optimization
- 12:18problem. So let's explore that in
- 12:20practice together. We're going to go
- 12:23through a highle architecture of a
- 12:25browser agent for real world tasks. This
- 12:28task is automating an health insurance
- 12:31portal. Every step we take in creating
- 12:34this dynamic system should influence one
- 12:36of these key levers. Cost, performance
- 12:40or maintainability.
- 12:42So first we'll start with a lowly agent.
- 12:46The goal of this agent is to log in and
- 12:48download an explanation of benefits. A
- 12:51request comes in, the agent performs the
- 12:53action on the browser, and this is the
- 12:55minimum necessary system you need to
- 12:57just do something.
- 12:59Next, you realize that when you go to
- 13:02download that explanation of benefits,
- 13:04that downloading involves
- 13:06programmatically interacting with the
- 13:07page. And then once you perform that
- 13:09download, you need to retrieve that file
- 13:12from storage and bring it into the
- 13:13agent's runtime. So you create a tool
- 13:16that does this all in one transaction.
- 13:19Instead of the model needing to make
- 13:20decisions on the fly, you encapsulate a
- 13:23complex operation into a single tool
- 13:25call.
- 13:27Next, you want to give the agent an
- 13:29opportunity to verify its work real
- 13:32time. This can be done by giving it
- 13:34another tool. This tool is an OCR tool
- 13:37that deterministically extracts entities
- 13:40from the document and compares that
- 13:42against the system of record. Great. Now
- 13:45the agent knows if it's did it if it
- 13:47really did its job right or not because
- 13:49it has a deterministic mechanism to
- 13:51verify that.
- 13:54Next,
- 13:55you realize that while this portal may
- 13:58have ambiguity in your business logic
- 14:00that the authentication workflow is
- 14:02never changing and you want to reuse the
- 14:05same authentication mechanism for many
- 14:08business operations on the same portal.
- 14:10So you pull that authentication logic
- 14:12out from the responsibility of the
- 14:14model. Again, we're reducing the number
- 14:16of steps that the agent has to take to
- 14:18complete the task successfully. This
- 14:21means lower unit cogs, higher
- 14:23performance, and easier maintainability
- 14:26as well as we can reuse this
- 14:28authentication function across multiple
- 14:31business logic workflows on the same
- 14:33portal.
- 14:35Last,
- 14:37we've contained the responsibility of
- 14:39the agent to only the area of ambiguity
- 14:43necessary. So, we draft a skill. These
- 14:47skills look very similar to a standard
- 14:49operating procedure that we would have
- 14:51humans use in the past, except this
- 14:54standard operating procedure is for an
- 14:55agent, and it allows the agent to follow
- 14:58the critical path more closely. At the
- 15:01beginning of the talk, we discussed how
- 15:03the output of an agent can be thought of
- 15:06like a probability distribution. So if
- 15:08we introduce the critical path to the
- 15:10agent, it knows it's at step two and
- 15:13knows that it needs to take step three
- 15:16because we have outlined it in this
- 15:17skill, then it's more likely to take
- 15:19that step three. It knows exactly where
- 15:22it needs to go and we remove ambiguity
- 15:24from the agents decision process.
- 15:26In the end, this is the final result. We
- 15:30have actually a pretty complex system. A
- 15:33request comes in, a serverless
- 15:35authentication function authenticates
- 15:37the browser. That browser is provided to
- 15:39the agent runtime. The agent navigates
- 15:42the portal using the skill provided,
- 15:45calls a deterministic download function,
- 15:48provides that downloaded file to a
- 15:50verify tool, and can know
- 15:52authoritatively whether its trajectory
- 15:54succeeded or failed.
- 15:57In the end, this system takes steps out
- 16:00of the model's responsibility that
- 16:03simply do not need to be in the
- 16:05responsibility of the agent. We reduce
- 16:07the number of steps it needs to take
- 16:09while still being able to achieve the
- 16:11desired outcome. Thus, the system's more
- 16:14maintainable and it's more performant
- 16:16and we can overcome the browser agent
- 16:20conundrum.
- 16:21So,
- 16:23>> here we are. Welcome to production and
- 16:27congrats. Now you're on call. Thank you.
- 16:46>> [music]
About this transcript
This page contains the full transcript of Why 99% Accurate Browser Agents Still Fail — Derek Meegan, Browserbase by AI Engineer, generated from the public captions YouTube serves with the video. The transcript has 2,400 words across 395 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.