Shopper: compare prices
compare_pricesCompare current offers for one chosen product across US stores, ranked by price (item plus shipping where the store lists it, tax excluded). Use this at the buy step: the user asks where to buy it, what it costs at different stores, whether a price or sale is a good deal, if it's cheaper somewhere else, or for the link; pass a product_id from search_products. Returns the top 3 offers by default (detail=true for up to 8) and a status that says plainly when no offers exist, so never guess a price. Each offer links to its divux page, where the user picks a store. Do not use to buy or check out.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | false: top 3 offers (default, best for chat and voice). true: up to 8. | |
| condition | No | new (default) unless the user asks for used, open-box or refurbished; 'used' covers all of those; 'any' shows everything. | new |
| product_id | Yes | Product id from search_products | |
| include_out_of_stock | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| specs | Yes | Key features and attributes from the product data, for comparing products; divux doesn't judge them | |
| offers | Yes | ||
| spoken | Yes | One sentence to say aloud on voice devices; details stay on the link | |
| status | Yes | ||
| omitted | Yes | ||
| product | Yes | ||
| ranking | Yes | ||
| coverage | Yes | ||
| disclosure | Yes | ||
| more_offers | Yes | ||
| price_scope | Yes | What the prices are: each store's online price for delivery in the US, not local in-store prices | |
| sample_data | Yes | ||
| generated_at | Yes | ||
| other_conditions | Yes |