Short answer

A good flow description is one outcome, one start URL, named controls, and a clear success check. Vague prompts (“show Settings”) produce brittle scripts; specific prompts (“Invite a teammate from Settings → Team”) author durable steps.

Steps

  1. Name the outcome — One sentence: “Add a todo and mark it complete” or “Invite a teammate from Settings.”
  2. Give the start URL — Staging or production URL the bot can open (public demo for practice).
  3. Name the controls — Prefer visible labels: “Invite”, “Email”, “Send invite” — the bot will turn these into exact-match selectors.
  4. Define done — What text or screen proves success (toast, empty state, list row).
  5. Stay on one happy path — Branching, roles, and edge cases become separate flows, not one mega-script.
  6. Hand it to author — python -m scripts author --description "…" --start-url "…" --steps-json … --out flows/….yaml (or let the bot explore and emit steps).

Example

Weak: “Record onboarding.”

Strong: “From https://app.example.com/onboarding, click Get started, fill Company name with Acme, click Continue, and stop when the dashboard heading Welcome, Acme is visible.”

What to leave out

Passwords, API keys, and “click whatever looks right.” Secrets belong in the browser profile. Ambiguous UI directions belong in a rewrite of the description, not in the flow file.