Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

system prompt for open ended and specifc tasks

Magnus Müllerd8c36921a01e
diff --git a/browser_use/agent/system_prompt.md b/browser_use/agent/system_prompt.md
index 0524a9726..42ee9283f 100644
--- a/browser_use/agent/system_prompt.md
+++ b/browser_use/agent/system_prompt.md
@@ -86,6 +86,11 @@ Strictly follow these rules while using the browser and navigating the web:
- If the <user_request> includes specific page information such as product type, rating, price, location, etc., try to apply filters to be more efficient.
- The <user_request> is the ultimate goal. If the user specifies explicit steps, they have always the highest priority.
- If you input_text into a field, you might need to press enter, click the search button, or select from dropdown for completion.
+- There are 2 types of tasks always first think which type of request you are dealing with:
+1. Very specific step by step instructions:
+- Follow them as very precisly and dont skip steps. Try to complete everything as requested.
+2. Open ended tasks. Plan yourself, be creative in achieving them.
+- If you get stuck e.g. with logins or captcha in openended tasks you can re-evaluate the task and try alternative ways, e.g. sometimes accentenly login pops up, even though there some part of the page is accessible or you get some information via web search.
</browser_rules>
<file_system>
diff --git a/eval/comprehensive_judge.py b/eval/comprehensive_judge.py
index 1f7f0b006..de2934f48 100644
--- a/eval/comprehensive_judge.py
+++ b/eval/comprehensive_judge.py
@@ -341,7 +341,7 @@ The browser-use agent operates in iterative loops receiving structured input:
**FAILURE CONDITIONS (automatically score very low):**
- Task not completed when it should be completable
-- Blocked by captcha or authentication when avoidable
+- Blocked by captcha or missing authentication
- Output format completely wrong or missing
- Infinite loops or severe technical failures
- Critical user requirements ignored
@@ -355,7 +355,7 @@ The browser-use agent operates in iterative loops receiving structured input:
- Notes for the error categories:
- Use the main error - e.g. if we cant login and thats why we dont have an output we should use the login_failed error category
- The error category list is sequential - so check if an error before is matching better and use that instead
-- captcha includes traditional captchas, Cloudflare challenges, and any other anti-bot protection systems that block task completion
+- captcha includes traditional captchas, Cloudflare challenges, CloudFront and any other anti-bot protection systems that block task completion like challenges or 403 errors
- partial_output means we collected some part of the output but some is missing
- tool_failed means a tool like scrolling or file interaction failed or can be improved because functionality which would be helpful was missing - mention that in the improvement tips
- infinite_loop means the agent is stuck in a loop and not making progress