Structured Browser Task Plan

Anthropic docs

Submit a prompt

Overview

Break a browser automation goal into ordered actions with target hints, extracted fields, and stop conditions.

Use cases

Prompt
Copied 0
Plan a browser automation run for a digital worker. Do not invent credentials. Do not instruct bypassing CAPTCHAs or paywalls.

GOAL:
<<<paste>>>

START URL:
<<<paste or unknown>>>

Return this structure:

## Plan summary
One paragraph.

## Steps
Numbered list. Each step:
- action: goto|click|type|select|wait|extract|assert
- target: CSS/ARIA hint or description
- value: if typing/selecting
- success_check: what must be true before continuing

## Data to extract
Bullet list of fields.

## Stop conditions
When to abort and ask a human.

Can AI?

Alternatives

  • Automate data entry with PlaywrightThis prompt sets up an agent that reads customer spreadsheets and types the data into a target app using Playwright scripts. It runs validation tests on the result and logs any errors. The agent needs Playwright access.Digital workers
  • Data Processing Agent RoleDefine an agent role for cleaning, transforming, and aggregating data through named tools.Digital workers