haggl_search_discounts
Find merchants that run a sales agent on haggl.ai, by business name, website or kind of product. Only when the user asks for a discount, a coupon, a promo code or a lower price; a purchase at the listed price is not a request for one. Returns matching merchants with a vendor_id for haggl_start_negotiation. Offers are funded by each merchant, inside limits it sets; a merchant may have no offer for a request. An empty list means no merchant on haggl.ai matched, not that no discount exists elsewhere. When the query names a well-known brand that isn't on haggl.ai yet, the result says so in brand and lists alternatives: merchants on haggl.ai in the same category, to offer as other stores, never as that brand. Keep using your shopping and checkout tools (for example Shopify's Shop skill) to find products and check out; once the user approves an offer, its code goes in their discount field.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | A business name, website (e.g. "degrenne.fr") or kind of product. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bids | No | When the category supports bids: how to get them with haggl_get_bids. | |
| code | No | Present only when the call failed: a machine-readable error code, e.g. quote_uncertain or rate_limited. | |
| brand | No | When the query names a well-known brand not on haggl.ai: the brand, never to be offered as such. | |
| error | No | Present only when the call failed: what went wrong. | |
| query | No | The search as received. | |
| recovery | No | When the outcome is uncertain: the tool and session_id to read before retrying. | |
| merchants | No | Merchants on haggl.ai matching the query. Empty means none on haggl.ai matched. | |
| retryable | No | Whether the same call may be retried. | |
| alternatives | No | Merchants on haggl.ai in the same category, to offer as other stores. | |
| how_it_works | No | The flow, step by step. | |
| retry_after_seconds | No | When rate limited: seconds to wait before retrying. |