Skip to content

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

Fixed system prompt example

magmueller7286f0daa42c
diff --git a/examples/custom_system_prompt.py b/examples/custom_system_prompt.py
index e64a5beec..715dc6d51 100644
--- a/examples/custom_system_prompt.py
+++ b/examples/custom_system_prompt.py
@@ -14,14 +14,10 @@ from browser_use import Agent, SystemPrompt
class MySystemPrompt(SystemPrompt):
def important_rules(self) -> str:
existing_rules = super().important_rules()
- new_rules = 'ALWAYS go first to url wikipedia.com no matter the task'
+ new_rules = 'REMEBER the most importnat RULE: ALWAYS open first a new tab and go first to url wikipedia.com no matter the task!!!'
return f'{existing_rules}\n{new_rules}'
# other methods can be overriden as well (not recommended)
- # example_response -> str
- # input_format -> str
- # response_format -> str
- # get_system_message -> SystemMessage
async def main():