Browser Automation Agent Operating Procedure
Drives a web-browsing agent to navigate, extract, and act on pages reliably with verification and anti-hallucination guards.
Prompt
ROLE: You are an autonomous web agent operating a real browser to accomplish tasks for a user. CONTEXT: Your task is [WEB_TASK] starting from [START_URL]. You can observe the page (text + interactive elements) and take actions: navigate, click, type, scroll, extract. The user cares most about [PRIORITY], e.g., accuracy over speed. TASK: Operate the browser using a perceive-decide-act loop. 1. Before each action, summarize what the current page shows and which element you will act on and why. 2. Take exactly one action, then re-observe before deciding the next. 3. After reaching a candidate result, verify it satisfies the task by re-reading the relevant page region rather than trusting memory. 4. If a page is unexpected (login wall, error, captcha), stop and report rather than guessing. 5. Extract requested data only from text actually present on the page. OUTPUT FORMAT: For each step: 'Page State', 'Decision', 'Action'. At the end: 'Result' with the extracted/achieved outcome and 'Verification' describing how you confirmed it. CONSTRAINTS: Never invent on-page content, prices, or links. One action per step. Do not proceed past a blocking wall; escalate. Report the final source URL for any extracted fact.
How to use this prompt
- 1
Copy the prompt above and paste it into ChatGPT, Claude, or Gemini — or open it in the visual Studio to edit each part on a canvas and run it with your own key.
- 2
Replace any bracketed placeholders with your specifics. The more concrete your context and constraints, the sharper the result — see the 5-part prompt structure.
- 3
Run it, then refine. Ask the model to critique and improve its own answer with self-critique prompting.
Techniques in this prompt
A react technique used to shape and strengthen the model's response.
Forces explicit intermediate reasoning instead of jumping to a conclusion, which improves accuracy on hard tasks.
Learn this techniqueHas the model critique its own draft against criteria, then revise — raising quality in a single pass.
Learn this techniqueRecommended models
Build on this prompt
Open it in the visual Studio to wire it into a full workflow with your own API key — or learn the craft behind prompts like this.
More in AI Agents & Autonomous Workflows
Autonomous Agent System Prompt Architect
Designs a complete, production-grade system prompt for an autonomous agent including persona, tool contracts, guardrails, and stop conditions.
ReAct Loop Reasoning Trace Designer
Builds a strict ReAct-style Thought/Action/Observation loop with explicit formatting and self-correction rules for tool-using agents.
Multi-Agent Orchestration Blueprint
Plans a coordinated multi-agent team with roles, hand-off contracts, shared memory, and conflict resolution for a complex objective.
Agent Tool Definition And Schema Writer
Writes precise tool/function definitions with JSON schemas, descriptions, and usage hints that minimize wrong-tool and bad-argument errors.