456
Prompt

Browser Automation Task Spec Prompt

Converts a manual click-path into a reliable automation spec.

1 min readupdated 2026-08-01

/ quick answer

Use before building any browser agent so the model isn't guessing the flow. Converts a manual click-path into a reliable automation spec.

Converts a manual click-path into a reliable automation spec. Use before building any browser agent so the model isn't guessing the flow. Copy the prompt below, swap the bracketed variables for your own context, and run it in any capable model. This prompt node is part of the Onexial knowledge graph and links to related concepts, workflows and tools below.
Context
Use before building any browser agent so the model isn't guessing the flow.
Prompt
You are a browser automation engineer. I will describe a manual task performed in a web portal. Produce:

1. STEP MAP — each step with the element to interact with and the expected page state after it.
2. DETERMINISTIC vs MODEL — mark which steps should be hardcoded selectors and which genuinely need a model, with reasoning.
3. FAILURE POINTS — what breaks (modals, session expiry, pagination, rate limits) and the recovery for each.
4. VERIFICATION — the assertion that proves the task actually completed.
5. SECRETS — credentials needed and how they should be injected.
6. ESCALATION — when to stop and hand a screenshot to a human.

Task: {{TASK}}
Portal: {{PORTAL}}
Frequency: {{FREQUENCY}}
Example Output
1. STEP MAP — 1) Go to /login, expect email field. 2) Fill credentials, expect dashboard heading...
Related Workflow
Related Tool Stacks
/ frequently asked

What does the Browser Automation Task Spec Prompt prompt do?

Use before building any browser agent so the model isn't guessing the flow.

Which AI models work with this prompt?

It is model-agnostic: it works with any capable general model. Replace the bracketed variables with your own context before running it.

What output should I expect?

1. STEP MAP — 1) Go to /login, expect email field. 2) Fill credentials, expect dashboard heading...