{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/upriver-ai/json-schema/upriver-ai-grounded-insights-input-schema.json",
  "title": "GroundedInsightsInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/upriver-ai-audience-api-openapi.yml#/components/schemas/GroundedInsightsInput",
  "properties": {
    "brand_url": {
      "type": "string",
      "title": "Brand Url",
      "description": "Brand website to research."
    },
    "query": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Query",
      "description": "Optional query to focus the audience research on a specific topic or angle. When provided, personas will be weighted toward conversations matching this query in addition to the brand itself. For example, 'running shoes for beginners' produces personas focused on entry-level runners, while 'streetwear fashion' emphasizes style-driven audiences. When omitted, the endpoint explores the brand broadly."
    },
    "effort": {
      "$ref": "#/$defs/GroundedEffort",
      "description": "Effort level: low, mid, high. Default is mid.",
      "default": "auto"
    },
    "include_citations": {
      "type": "boolean",
      "title": "Include Citations",
      "description": "When true, include real world citations for each persona.",
      "default": true
    }
  },
  "type": "object",
  "required": [
    "brand_url"
  ],
  "$defs": {
    "GroundedEffort": {
      "type": "string",
      "enum": [
        "auto",
        "low",
        "mid",
        "high"
      ],
      "title": "GroundedEffort"
    }
  }
}