Use these copy-pasteable prompts to drive a Bright Data Scraper Studio build, run, heal, approve, re-run loop entirely through Claude Code, Cursor or Codex. The pattern is deliberate: build a minimal scraper first, then heal it to extend the schema, so the heal envelope’sDocumentation Index
Fetch the complete documentation index at: https://docs.brightdata.com/llms.txt
Use this file to discover all available pages before exploring further.
preview_result is easier to verify against a known-good baseline.
Prerequisites
- A Bright Data account (sign up free, no card required).
- Node.js 18 or later. The first prompt has the agent install the Bright Data CLI for you if it is missing.
- A coding agent with terminal access: Claude Code, Cursor or Codex.
Run the whole flow in one prompt
If you just want to see the build, run, heal, approve, re-run loop in action, paste this single prompt and let the agent work through every step. The agent installs the Bright Data CLI first if it is not already present.Prompt
Expected result: the agent ends with a JSON row containingname,price,description,image_urlandrating, and the Collector ID is unchanged from step 2.
Run the flow step by step
Work through the prompts below one at a time when you want to inspect each Collector ID, run result and heal envelope before moving on.Prompt the agent to check the CLI is installed
Prompt
Expected result: the agent prints a bdata version and confirms it is authenticated. If the CLI was missing, the agent installs it first.
Prompt the agent to build a minimal scraper
Prompt
Expected result: the agent reports a Collector ID like c_mpohus372o5tmid1jk. Hold onto it; the rest of the prompts reuse the same ID.
Prompt the agent to run it
Prompt
Expected result: a JSON array with one row, populated withnameandpriceonly.
Prompt the agent to heal and add more fields
Prompt
Expected result: the agent reportsstatus: "awaiting_approval"with apreview_resultrow that now shows five fields.
Prompt the agent to approve the fix
Prompt
Expected result:statusadvances todone. The Collector ID is unchanged.
Related
Build with the Bright Data CLI
The canonical CLI tutorial: install, log in, create, run, heal
Self-Healing tool
Fix a scraper from the Bright Data control panel
Scraper Studio API quickstart
Trigger an existing scraper from cURL, Python or Node.js
Bright Data CLI commands
Flag reference for scraper create, heal and approve