Compare products on checked facts
compare_productsWrites a comparison of products RoboTrunk lists, now, from their checked facts: a short answer, a table with one row per product and a cited fact in every cell, each value with its source link. Name two to eight products, or leave products out and send only a question ("lightest travel strollers", "car seats that fit a small car") and RoboTrunk finds the listed products with checked facts that the question is about. The first call asks for it and answers started; call again with exactly the same arguments and it answers done with the comparison (usually within a minute), or running while it is still being written. Every value in it is a checked fact with its source; nothing is invented, and prices and stock are not in it. The comparison is kept and published at a page address RoboTrunk's pages and sitemap carry. Use it for a side-by-side of checked facts on products the person is choosing between, including ones found with search_catalog; it can help them decide. A named product needs checked facts: enrich_product starts research on one that has none. Error recovery: INVALID_REQUEST names the field to fix; PRODUCT_NOT_FOUND means a named product is not listed, so call search_catalog; NO_CHECKED_FACTS names the products to research with enrich_product or leave out; COMPARE_KEY_LIMIT, COMPARE_ADDRESS_LIMIT and COMPARE_BUSY say how long to wait, then call again; COMPARE_UNAVAILABLE means comparisons are not running, so compare with check_product; a failed answer carries COMPARE_FAILED or COMPARE_NOT_STARTED and says why: if it says no product, or only one product, with checked facts is about the question, ask a different question or search_catalog, otherwise call once more; COMPARE_FAILED_UNEXPECTEDLY (or any other unexpected error): retry once, then call submit_feedback. Next: get_product for price and stock, then create_checkout. Full guide: get_tool_guide or /agent/tools.json#compare_products Example call: {"products":[{"merchant":"anbbaby-com","product_id":"gid://shopify/Product/1234567890"},{"merchant":"strolleria-com","product_id":"gid://shopify/Product/9876543210"}],"question":"Which folds smallest for a plane?"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| products | No | Two to eight different listed products to compare. Leave out (or send null or an empty list) to send only a question. Example: [{"merchant": "anbbaby-com", "product_id": "gid://shopify/Product/1234567890"}, {"merchant": "strolleria-com", "product_id": "gid://shopify/Product/9876543210"}]. | |
| question | No | What the person wants to know. Optional with products; required when products is left out, and then RoboTrunk finds the products it is about. | |
| shopping_session_id | No | Optional server-issued shopping session correlation ID. It is not purchase authority. |