Agent workflows
AI Browser Agent Tutorial: Make It Prove the Job Is Done
Try AI browser automation with real demo sources, a repeatable task and a completion checklist. Compare Browser Use with deterministic browser tests.
An impressive browser demo is a starting point, not proof that an agent will finish your task. This tutorial turns a small reading-list workflow into an observable check. Use a separate browser profile and test data before connecting personal accounts.

bsk screenshot --session SESSION_ID --out example.png1. Start with a working demo
Open the official Browser Use repository and inspect its demos and examples. BrowserSkill also publishes a recorded demo of real actions on a local workspace. These are publisher demonstrations; we have not independently reproduced their model results. Open-source code does not make model inference or hosted browsers free.
2. Give the agent a checkable task
Open our reading-list demo below. Ask your agent to add the Browser Use repository, reload the page, and verify that the same entry remains. Then mark it read, reload again, and inspect the state. This checks persistence rather than trusting a success message. Do not use a real customer record.
3. Keep the receipt
Save the exact task, tool version, model, final URL and screenshots before and after the reload. Record whether the task completed, how many retries it needed and any cost the provider actually reports. Missing cost data stays unknown. A screenshot alone cannot prove that data survived a reload.
4. Diagnose the first failure
If a click misses, inspect the current page and control label. If navigation fails, check the destination and network response. If the item disappears after reload, investigate storage. If the agent declares success early, require the persistence check explicitly. Change one variable, then rerun the same task.
5. Choose agents or deterministic tests deliberately
An agent can help explore an unfamiliar interface. A stable acceptance check is often better expressed as a deterministic browser test with explicit assertions. Use both: exploration to find a path, then a repeatable test to protect it. Neither a green test nor one successful demo establishes a general success rate.
What does an AI browser agent actually do?
An AI browser agent combines a model with tools that inspect and operate a browser. The model chooses actions, the browser executes them, and the next observation informs the next decision. A useful result therefore depends on more than the model. Page state, permissions, network responses, tool feedback and the application’s own storage all matter. When someone asks whether browser agents work, the useful follow-up is: which task, on which website, with what evidence?
For this tutorial, success means a specific item remains in a reading list after a reload, can be marked as read, and retains that state after another reload. That is deliberately smaller than asking an agent to research, compare products, sign into several accounts and make a purchase. A narrow task makes failures easier to identify. It also gives you a reusable acceptance check before you try a larger workflow.
Choose a demo that exposes the result, not just the animation
Start with the original project repository rather than a reposted highlight reel. Browser Use publishes browser-agent examples, while BrowserSkill links to a recorded demonstration using a local workspace. Read the accompanying explanation to learn what is installed, what browser is controlled and which parts require a model service. A recorded demonstration is evidence of the publisher’s selected run, not a promise that your environment will behave the same way.
Then inspect our working reading-list example. The page is a small test surface, not an AI agent product: you supply the agent or complete the steps manually. This separation is useful. You can establish what the application should do before evaluating whether a model can operate it. We have checked the example’s interactions separately; we have not benchmarked Browser Use or BrowserSkill against this task, so no agent success rate is claimed here.
Prepare a clean browser and a bounded task
Use an isolated browser profile with no personal accounts or saved payment details. Start from a known empty reading list and record the browser version. A separate profile prevents yesterday’s saved item from making today’s run look successful. If you repeat the test in the same profile, remove only the test item you created and verify the starting state. Do not clear an owner’s ordinary browsing data to make an experiment convenient.
Choose the agent installation instructions from its official repository and match them to the version you install. Avoid mixing an old code snippet with a newer package API. Record the package version, model identifier and any relevant browser configuration. Set an explicit deadline and a small action budget in whatever mechanism your chosen tool supports. If the tool does not expose a budget control, supervise the run and stop it when the agreed limit is reached.
Use this task contract before pressing run
Describe the outcome in observable terms: open the linked reading-list example, add a single entry whose title is Browser Use and whose address is the official repository, reload, and confirm that exactly one matching entry exists. Mark that entry as read, reload again, and confirm its read state. Do not create other entries, follow unrelated links or change browser settings. Ask the agent to report any failed step rather than silently changing the goal.
Keep the expected result outside the agent’s closing message. Write it down before running the task: one entry, the intended destination, persistence after reload, and the correct read state. This prevents a persuasive explanation from redefining success after the fact. The final answer should identify which checks ran and what was observed. If the agent cannot inspect a state, the right result is an unverified check, not an assumption that everything worked.

Verify the result independently in four passes
First, inspect the visible title and link destination. A familiar label can hide the wrong address. Second, count matching entries so that a repeated click has not created duplicates. Third, reload the page and repeat the inspection; a temporary DOM update can look correct even when persistence is broken. Fourth, change the read state, reload again and inspect that state. Each pass tests a different part of the workflow rather than repeating the same screenshot.
Keep evidence small enough to review. A before screenshot, an after screenshot, the final URL and a short record of the reload checks are more useful than a large unsorted log. If the test produces a browser trace, store it with the task and version details. Review traces before sharing them because they may contain page content, credentials or identifiers. For a public demonstration, use fictional data and remove unrelated tabs from the recording.
Browser Use versus Playwright: which job belongs to which tool?
A model-driven agent is useful when you want it to interpret a goal and explore an interface. A deterministic browser test is useful when you already know the steps and the expected result. This is a distinction between responsibilities, not a claim that one project always beats another. For the reading-list task, an agent can discover the controls, while an explicit test can repeatedly assert that an entry survives reload and that duplicate records are absent.
Do not compare a short agent prompt against a carefully maintained test suite without accounting for setup work. Record the time spent configuring each approach, fixing selectors, reviewing outcomes and investigating failures. If the interface changes, both approaches may need attention: a test may have an outdated locator, and an agent may misinterpret a redesigned control. Your choice should follow the task’s stability, the consequences of a wrong action and the evidence you need to retain.
When the agent clicks the wrong thing
Look at the observation immediately before the click. Was the intended control visible and enabled? Were there multiple controls with similar names? Had the page changed since the agent inspected it? An incorrect action can come from stale state or ambiguous controls, not just poor reasoning. Reproduce the same step manually in the isolated profile and compare what you see with the agent’s recorded observation.
Try the smallest relevant correction. Clarify the target using its visible label and surrounding context, or wait for an observable ready state instead of adding an arbitrary long sleep. Do not hide the failure by letting the agent try unrelated buttons until something happens. Save the original failed attempt and rerun the same task after your change. A successful rerun supports that narrow correction; it does not establish that all similar navigation errors are fixed.
When the agent says done but the data disappears
Separate application behavior from agent behavior. If you can manually add the item but it disappears after reloading, investigate the application’s storage path and browser restrictions. If manual operation works but the agent never submitted the form, inspect the tool sequence. If the item exists but the agent reports a different title or destination, compare the actual page with the final answer. These are different defects and should not share a vague label such as hallucination.
A useful recovery instruction names the missing check: reload this page and verify the saved entry, without adding another copy. Repeating the entire creation task may introduce duplicates. In a workflow with real side effects, such as sending a message, an uncertain result requires inspection before a retry. The reading-list example is low impact, but it teaches the same distinction between an action being requested, an action occurring and its result being verified.
Measure your own result without inventing a benchmark
Create a run sheet with one row per attempt. Record the task variant, starting state, agent and model version, outcome, failed step, action count if available, elapsed time and reported cost. Keep timeout and setup failures in the record rather than deleting them. If an upstream service does not report cost, leave that field unknown. If a run needs a human correction, label it as assisted instead of counting it as an unattended success.
Repeat a small set of meaningful variants: a fresh list, a list that already contains the target, a title with punctuation, and a reload after changing the read state. These are suggested tests, not published measurements. Report the number of attempts alongside any success fraction. Four successes in four attempts on a toy page are useful local evidence, but they cannot justify a claim about general web reliability or predict performance on banking, booking or customer-support systems.
Keep permissions and page instructions separate
A webpage is input to the task, not authority to expand it. If the page tells the agent to send data elsewhere, install something or sign into another service, that instruction should not override your original task. Keep the demonstration limited to the expected page and public repository link. Broader browsing permissions make a more impressive demo possible, but also make it harder to establish what the agent was allowed to do.
For any later workflow that can publish, purchase, delete or send, define a review point before the external action. The review should show the actual destination and content, not merely ask whether to continue. A correct read-only rehearsal does not validate a write action that has different consequences. Keep those stages distinct in your evidence and permissions, even if the same agent can technically perform both.
Turn the successful path into something reusable
After the basic task passes, save the task contract, the acceptance checks and the exact environment details together. If you maintain the application, turn the critical persistence checks into an automated regression test. Prefer assertions on observable behavior: the entry exists once, the address matches, and the read state remains after reload. Avoid asserting only that a button was clicked or that some text appeared briefly.
Add a short recovery note for the first failure you actually encountered. Include the symptom, the evidence that identified it, the change you made and the result of rerunning the original conditions. This is more useful to the next person than a generic list of prompting tips. If you did not encounter a failure, say so; there is no need to invent a debugging story to make the tutorial look more substantial.
Frequently asked questions about browser-agent demos
Is Browser Use free? The source repository is publicly available, but model inference and hosted browser services can have separate charges. Check the official project’s current license and the provider’s pricing before choosing a setup. Can this tutorial prove which model is best? No. It supplies a small task and evidence procedure; a defensible comparison requires consistent settings, multiple cases and transparent results.
Do I need to give the agent my everyday browser? No. Start with an isolated profile and test data. Should I choose Playwright instead? For a stable, known workflow, deterministic assertions are often the appropriate acceptance check; an agent remains useful for exploration. What is the most important outcome? Evidence that the requested state survived the relevant checks. The closing message is a report to inspect, not the final authority on whether the work is complete.