Supply Scraper Agent
Supply-Side Discovery, Venue Intelligence, and Instructor Surface Mapping · POST /v1/agent/supply-scraper/run

Category: Supply Discovery · Execution Model: Deterministic, I/O-Bound, Append-Only

Purpose

The Supply Scraper Agent discovers and ingests real-world supply signals by scanning public event platforms for existing classes, venues, and instructor-led experiences. It establishes empirical visibility into where supply already exists, what formats are being offered, how they are priced, and which venues and instructors are active in a given region. This agent grounds downstream scheduling, vetting, and feasibility logic in observed supply rather than hypothetical availability.

Expected Inputs

  • query string — default: fitness
    The category or activity to search for existing supply. Examples: "yoga", "HIIT", "boxing", "pilates".
  • region string — default: Los Angeles County, CA
    Geographic region used to scope supply discovery and venue inference.

Outputs

  • HTTP Response
    {
      "success": "boolean",
      "message": "string"
    }
  • Side Effect
    Writes RawEvent documents
  • Side Effect
    Writes RawDemandSignal documents
  • Side Effect
    Triggers Sanitizer Agent with generated supply chunk

Responsibilities

Lifecycle

Downstream Dependencies

Guarantees

Failure Model

If scraping or persistence fails, the request returns a 500 error. Partial ingestion is possible (e.g., some events saved before failure), but sanitizer triggering is skipped if chunk generation fails. No downstream agents are invoked directly beyond the Sanitizer.

Internal State

{
  "persistence": [
    "RawEvent",
    "RawDemandSignal"
  ],
  "derivedArtifacts": [
    "Preliminary Whook-style session chunks"
  ],
  "constraints": [
    "Append-only ingestion",
    "No mutation of raw scraped records",
    "Sanitizer is authoritative for downstream validity"
  ]
}

Sample cURL


curl -X POST https://api.whook.ai/v1/agent/supply-scraper/run \
  -H "Content-Type: application/json" \
  -d '{
    "query": "yoga",
    "region": "Los Angeles County, CA"
  }'