analyze_products
Analyze pre-scraped product data offline using persona-based analysis. Provide product JSON to compute a page fingerprint and run single or multiple personas for insights.
Instructions
Run full persona analysis on pre-scraped product data without making any live site requests. Accepts products[], facets[], and page metadata as JSON, computes a page fingerprint, then runs the selected persona (or full roundtable if persona is "auto" or unset). Use this to re-analyze acquire payloads offline, or to analyze data from external sources (CSV exports, internal APIs, DTC Research server handoffs). Requires an AI provider (ANTHROPIC_API_KEY, GEMINI_API_KEY, or Ollama) to be configured.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Source URL for context/logging. Defaults to "offline:input". | |
| title | No | Page title for context. | |
| facets | No | Filter/facet objects: [{ name, type, optionCount, options: [{ label }] }]. | |
| persona | No | "auto" or omitting runs the full roundtable (fingerprint-driven). Specify a name to run a single persona. | |
| b2b_mode | No | Override B2B/B2C classification. If omitted, inferred from product signals. | |
| products | Yes | Array of product objects. Each needs at minimum: title (string), price (string|number). Optional: description, rating, reviewCount, badges, stockStatus, imageCount, trustSignals (object), b2bIndicators (string[]), b2cIndicators (string[]). | |
| b2b_conflict_score | No | B2B/B2C conflict score (0–100). If omitted, inferred from products. |