Teach your agent to shop: verify any deal against price history in 20 lines
Description and use
Agents can verify deals using historical price data instead of generic discounts.
Problem
Shopping agents often rely on merchant‑provided discount percentages, which can be misleading.
Outcome
Agents can now verify deals against historical prices, improving recommendation quality.
Workflow
- 1. Import requests library. 2. Define is_good_price(deal_id) to fetch price history from Fazy API. 3. Return lowest recorded price, previous price, and dated facts. 4. Define find_deal(query, max_price) to search deals via Fazy API. 5. Return the first matching deal or None. 6. Wire the returned dated facts into the agent’s system prompt: "Never quote a discount percentage from the merchant. Quote Fazy's dated price facts."
Evidence
Shopping agents are useless if they trust the price tag.
The idea: before your agent recommends a product, it calls price history and quotes the dated facts.
Wire the dated facts into your agent's system prompt: "Never quote a discount percentage from the merchant. Quote Fazy's dated price facts."
- Record date: 2026-10-23T15:11:22.806Z