Skip to main content
This tutorial builds a provider search tool for Grow Therapy — a therapy marketplace that handles insurance credentialing for providers. We combine structured output with deterministic rerun to build a fast, repeatable search pipeline.

What you’ll build

A script that:
  1. Searches Grow Therapy’s provider directory with filters (location, insurance, specialty)
  2. Extracts therapist profiles with ratings and availability
  3. 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:
Cache parameters must include the @: use @{{value}}, not {{value}}. Plain {{value}} is treated as normal task text and will not trigger deterministic rerun.

Summary

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.