What you’ll build
A script that:- Searches Grow Therapy’s provider directory with filters (location, insurance, specialty)
- Extracts therapist profiles with ratings and availability
- Caches the search so you can sweep across geographies or specialties instantly
Setup
1. Define the output schema
2. Create a workspace
3. Search for providers
4. Sweep across locations and specialties
After the first run caches the search flow, sweep across different parameters at $0 LLM cost:Summary
| Step | What happens | Cost |
|---|---|---|
| First search | Agent navigates Grow Therapy, caches the flow | ~$0.10 |
| 12 cached sweeps (4 cities x 3 specialties) | Script reruns with new params | $0 LLM each |
| Site layout change | Auto-healing regenerates the script | ~$0.10 |
Therapy platforms have dynamic UIs that can change frequently. Auto-healing ensures your cached scripts stay working without manual maintenance.
Next steps
- Structured output — Learn more about extracting typed data with Pydantic and Zod schemas.
- Human in the loop — Let a human review or interact with the browser mid-task, useful for auth flows or approving results before continuing.
- Deterministic rerun — Deep dive into how caching and auto-healing work.