Dashboard

17.01.2026 10:25

Zapytanie AI #59

2026-01-06 14:42:51

completed
Typ
images
Produktów
1
Tokeny wejściowe
44,168
Tokeny wyjściowe
1,481
Czas trwania
-56s

Request Payload

{
    "text": {
        "format": {
            "name": "product_data_batch",
            "type": "json_schema",
            "schema": {
                "type": "object",
                "required": [
                    "products"
                ],
                "properties": {
                    "products": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "required": [
                                "ean",
                                "images"
                            ],
                            "properties": {
                                "ean": {
                                    "type": "string"
                                },
                                "images": {
                                    "type": "array",
                                    "items": {
                                        "type": "object",
                                        "required": [
                                            "url",
                                            "source_page",
                                            "type"
                                        ],
                                        "properties": {
                                            "url": {
                                                "type": "string"
                                            },
                                            "type": {
                                                "enum": [
                                                    "main",
                                                    "gallery",
                                                    "detail",
                                                    "lifestyle"
                                                ],
                                                "type": "string"
                                            },
                                            "source_page": {
                                                "type": "string"
                                            }
                                        },
                                        "additionalProperties": false
                                    }
                                }
                            },
                            "additionalProperties": false
                        }
                    }
                },
                "additionalProperties": false
            },
            "strict": true
        }
    },
    "input": [
        {
            "role": "system",
            "content": "You are a Universal Visual Asset Retrieval Agent for a multi-category sports e-commerce store.\r\nYour goal is to locate direct, high-resolution image URLs for any product type (Apparel, Footwear, Hardware, Consumables, Accessories).\r\n\r\nCRITICAL RULES:\r\n1. **Quantity Target:** Aim for **10 unique images** per product.\r\n   - **Adaptability:** If the product is simple (e.g., a bike tube or chain lube), finding 10 unique images might be impossible. In such cases, return ALL available valid images (even if only 3-4) without duplicating. Do not force low-quality results.\r\n2. **Resolution Requirement:** Target width is **1200px**.\r\n   - Acceptable range: 1000px to original source size.\r\n   - Reject < 1000px.\r\n3. **Universal Variety Protocol:** You must detect the product category and search for relevant angles:\r\n   - **Wearables (Helmets, Gloves, Shoes):** Front, Back, Side, Inside (lining), Fastening systems, Vents.\r\n   - **Hardware (Bike parts, Skis, Tents):** Mounting points, Technical diagrams, Folded\/Packed state, In-use state.\r\n   - **Consumables (Lubes, Nutrition):** Bottle front, Back label (Ingredients\/Instructions), Nozzle\/Applicator detail, Texture of the substance.\r\n4. **Direct Links Only:** Output direct file paths (.jpg, .png, .webp).\r\n\r\nOUTPUT FORMAT:\r\nReturn a JSON object containing a list of valid image URLs."
        },
        {
            "role": "developer",
            "content": "## Image Search Process\r\n\r\nFor each product in the batch:\r\n\r\n### 1. Search Strategy\r\nBuild targeted web_search queries:\r\n1. \"{brand} {model} {color} official product images\"\r\n2. \"{brand} {model} press kit\"\r\n3. site:{brand_website} {model} images\r\n4. \"EAN {ean}\" images (for exact variant match)\r\n\r\n### 2. Source Priority\r\nA. Official brand website - product page images\r\nB. Official press\/media kit images\r\nC. Authorized major retailers (must have clear product photos) - eg: {preferred_shops}\r\n\r\n### 3. Image Selection Criteria\r\n- Resolution: minimum 800x800px\r\n- Target: ~1200px.\r\n- Format: JPG, PNG, WebP preferred\r\n- Content: Clear product shot on white\/neutral background\r\n- Variants: Must match exact color and model year\r\n- If a URL contains parameters (e.g., `?w=500`), modify them to `?w=1200` or remove them to access the raw file.\r\n\r\n\r\n### 4. Required Image Types\r\nFor each product, find:\r\n1. main: Primary product image (front view, white background)\r\n2. gallery: 2-4 additional angles (side, back, detail shots)\r\n3. detail: Close-up of key features (sole, stitching, technology)\r\n\r\n### 5. Filtering:\r\n1. Deduplication: Ensure images are visually distinct. Do not return 5 identical front shots from different websites.\r\n2. Context: For small items (e.g., a valve core), \"Packaging\" shots are valuable and valid.\r\n\r\n### 6. Output Format\r\nReturn JSON with structure:\r\n{\r\n  \"products\": [\r\n    {\r\n      \"ean\": \"...\",\r\n      \"images\": [\r\n        {\r\n          \"url\": \"direct_image_url\",\r\n          \"source_page\": \"page_where_found\",\r\n          \"type\": \"main|gallery|detail\"\r\n        }\r\n      ]\r\n    }\r\n  ]\r\n}\r\n\r\n### FORBIDDEN\r\n- Amazon\/eBay\/Allegro marketplace images\r\n- User-uploaded photos\r\n- Images with visible watermarks\r\n- Thumbnail\/preview images (< 400px)\r\n- Wrong product variants"
        },
        {
            "role": "user",
            "content": "## Task\r\nFind official product images for the following products.\r\n\r\n## Products\r\n{\n    \"batch\": {\n        \"products\": [\n            {\n                \"ean\": \"0192826812345\",\n                \"name\": \"The North Face Vectiv Exploris Mid Futurelight\",\n                \"brand\": \"The North Face\",\n                \"brand_website\": \"https:\\\/\\\/www.thenorthface.com\",\n                \"color\": \"TNF Black\\\/Zinc Grey\",\n                \"search_sources\": []\n            }\n        ]\n    }\n}\r\n\r\n## Requirements\r\n1. For each product, find:\r\n   - 1 main image (primary product shot)\r\n   - 2-4 gallery images (different angles)\r\n   - 1-2 detail images (close-ups if available)\r\n   - Aim for 10 unique images, covering all relevant angles for this specific type of product (e.g., labels for chemicals, buckles for boots, diagrams for tents).\r\n\r\n2. Image quality:\r\n   - High resolution (800px+ width)\r\n   - Clear, professional photography\r\n   - White or neutral background for main images\r\n\r\n3. Must match exact variant:\r\n   - Correct color\r\n   - Correct model year (if specified)\r\n   - Same configuration (GTX vs non-GTX, etc.)\r\n\r\n4. Priority sources:\r\n   - Official brand websites\r\n   - Press\/media kits\r\n   - Major authorized retailers: eg: {preferred_shops}\r\n\r\n## Output\r\nReturn JSON with found images for each product."
        }
    ],
    "model": "gpt-5.2",
    "store": false,
    "tools": [
        {
            "type": "web_search"
        }
    ],
    "temperature": 0,
    "tool_choice": "auto"
}

Response Payload

{
    "id": "resp_09682144d25076b501695d115bc2408193a7206718d8209ef6",
    "text": {
        "format": {
            "name": "product_data_batch",
            "type": "json_schema",
            "schema": {
                "type": "object",
                "required": [
                    "products"
                ],
                "properties": {
                    "products": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "required": [
                                "ean",
                                "images"
                            ],
                            "properties": {
                                "ean": {
                                    "type": "string"
                                },
                                "images": {
                                    "type": "array",
                                    "items": {
                                        "type": "object",
                                        "required": [
                                            "url",
                                            "source_page",
                                            "type"
                                        ],
                                        "properties": {
                                            "url": {
                                                "type": "string"
                                            },
                                            "type": {
                                                "enum": [
                                                    "main",
                                                    "gallery",
                                                    "detail",
                                                    "lifestyle"
                                                ],
                                                "type": "string"
                                            },
                                            "source_page": {
                                                "type": "string"
                                            }
                                        },
                                        "additionalProperties": false
                                    }
                                }
                            },
                            "additionalProperties": false
                        }
                    }
                },
                "additionalProperties": false
            },
            "strict": true,
            "description": null
        },
        "verbosity": "medium"
    },
    "user": null,
    "error": null,
    "model": "gpt-5.2-2025-12-11",
    "store": false,
    "tools": [
        {
            "type": "web_search",
            "filters": null,
            "user_location": {
                "city": null,
                "type": "approximate",
                "region": null,
                "country": "US",
                "timezone": null
            },
            "search_context_size": "medium"
        }
    ],
    "top_p": 0.98,
    "usage": {
        "input_tokens": 44168,
        "total_tokens": 45649,
        "output_tokens": 1481,
        "input_tokens_details": {
            "cached_tokens": 5248
        },
        "output_tokens_details": {
            "reasoning_tokens": 836
        }
    },
    "object": "response",
    "output": [
        {
            "id": "ws_09682144d25076b501695d115c83c48193868d9714f7905e34",
            "type": "web_search_call",
            "action": {
                "type": "search",
                "query": "site:thenorthface.com \"Vectiv Exploris Mid Futurelight\" \"TNF Black\" \"Zinc Grey\""
            },
            "status": "completed"
        },
        {
            "id": "ws_09682144d25076b501695d115eed488193a9966e6981b630e6",
            "type": "web_search_call",
            "action": {
                "url": "https:\/\/www.thenorthface.com\/en-us\/p\/mens\/mens-footwear-211706\/mens-vectiv-exploris-mid-futurelight-boots-NF0A4T2U",
                "type": "open_page"
            },
            "status": "completed"
        },
        {
            "id": "ws_09682144d25076b501695d115f97148193b3e5d3a678531b8c",
            "type": "web_search_call",
            "action": {
                "url": "https:\/\/www.thenorthface.com\/en-us\/p\/mens\/mens-footwear-211706\/mens-vectiv-exploris-mid-futurelight-boots-NF0A4T2U",
                "type": "find_in_page",
                "pattern": ".jpg"
            },
            "status": "completed"
        },
        {
            "id": "ws_09682144d25076b501695d1160f83c8193bef6e6de68bf2156",
            "type": "web_search_call",
            "action": {
                "url": "https:\/\/www.thenorthface.com\/en-us\/p\/mens\/mens-footwear-211706\/mens-vectiv-exploris-mid-futurelight-boots-NF0A4T2U",
                "type": "open_page"
            },
            "status": "completed"
        },
        {
            "id": "ws_09682144d25076b501695d1161f07c819390826bddf50e0bc9",
            "type": "web_search_call",
            "action": {
                "type": "open_page"
            },
            "status": "completed"
        },
        {
            "id": "ws_09682144d25076b501695d1163ce9c8193861546433ab31aad",
            "type": "web_search_call",
            "action": {
                "type": "search",
                "query": "site:assets.thenorthface.com NF0A4T2UKZ2"
            },
            "status": "completed"
        },
        {
            "id": "ws_09682144d25076b501695d116a679081939c19dc11afe5af75",
            "type": "web_search_call",
            "action": {
                "type": "open_page"
            },
            "status": "completed"
        },
        {
            "id": "ws_09682144d25076b501695d116c333c8193bf79b9653954043b",
            "type": "web_search_call",
            "action": {
                "url": "https:\/\/www.saintbernard.com\/products\/the-north-face-mens-vectiv-exploris-mid-futurelight-boots",
                "type": "open_page"
            },
            "status": "completed"
        },
        {
            "id": "ws_09682144d25076b501695d116e00ec8193a59b15f2b756e123",
            "type": "web_search_call",
            "action": {
                "url": "https:\/\/www.saintbernard.com\/products\/the-north-face-mens-vectiv-exploris-mid-futurelight-boots",
                "type": "find_in_page",
                "pattern": "cdn"
            },
            "status": "completed"
        },
        {
            "id": "ws_09682144d25076b501695d117147d48193ba454e58669c344d",
            "type": "web_search_call",
            "action": {
                "url": "https:\/\/www.saintbernard.com\/products\/the-north-face-mens-vectiv-exploris-mid-futurelight-boots",
                "type": "open_page"
            },
            "status": "completed"
        },
        {
            "id": "ws_09682144d25076b501695d117326ac819395046ec14fb0d110",
            "type": "web_search_call",
            "action": {
                "url": "https:\/\/www.saintbernard.com\/cdn\/shop\/products\/NF0A4T2UxBANFFBLUETNFBLACKxPrimary_61856595.jpg?v=1762487256&width=1946",
                "type": "open_page"
            },
            "status": "completed"
        },
        {
            "id": "ws_09682144d25076b501695d1177efac8193ab5e2b773e8beae2",
            "type": "web_search_call",
            "action": {
                "url": "https:\/\/www.saintbernard.com\/cdn\/shop\/products\/NF0A4T2UxBANFFBLUETNFBLACKxAlt3_61856599.jpg?v=1648150660&width=1946",
                "type": "open_page"
            },
            "status": "completed"
        },
        {
            "id": "ws_09682144d25076b501695d117c16288193896ba5ecbea4907c",
            "type": "web_search_call",
            "action": {
                "type": "search",
                "query": "NF0A4T2UKZ2-HERO ALT assets.thenorthface.com NF0A4T2UKZ2"
            },
            "status": "completed"
        },
        {
            "id": "msg_09682144d25076b501695d1181f5cc8193bf7948179bd8dac4",
            "role": "assistant",
            "type": "message",
            "status": "completed",
            "content": [
                {
                    "text": "{\"products\":[{\"ean\":\"0192826812345\",\"images\":[{\"url\":\"https:\/\/assets.thenorthface.com\/images\/t_img\/f_auto%2Ch_2500%2Cw_2150\/NF0A4T2UKZ2-HERO\/mens-vectiv%E2%84%A2-exploris-mid-futurelight%E2%84%A2-boots.png\",\"type\":\"main\",\"source_page\":\"https:\/\/www.thenorthface.com\/en-us\/p\/mens\/mens-footwear-211706\/mens-vectiv-exploris-mid-futurelight-boots-NF0A4T2U\"},{\"url\":\"https:\/\/www.saintbernard.com\/cdn\/shop\/products\/NF0A4T2UxBANFFBLUETNFBLACKxPrimary_61856595.jpg?v=1762487256&width=1946\",\"type\":\"gallery\",\"source_page\":\"https:\/\/www.saintbernard.com\/products\/the-north-face-mens-vectiv-exploris-mid-futurelight-boots\"},{\"url\":\"https:\/\/www.saintbernard.com\/cdn\/shop\/products\/NF0A4T2UxBANFFBLUETNFBLACKxAlt1_61856596.jpg?v=1648150659&width=1946\",\"type\":\"gallery\",\"source_page\":\"https:\/\/www.saintbernard.com\/products\/the-north-face-mens-vectiv-exploris-mid-futurelight-boots\"},{\"url\":\"https:\/\/www.saintbernard.com\/cdn\/shop\/products\/NF0A4T2UxBANFFBLUETNFBLACKxAlt2_61856600.jpg?v=1648150659&width=1946\",\"type\":\"gallery\",\"source_page\":\"https:\/\/www.saintbernard.com\/products\/the-north-face-mens-vectiv-exploris-mid-futurelight-boots\"},{\"url\":\"https:\/\/www.saintbernard.com\/cdn\/shop\/products\/NF0A4T2UxBANFFBLUETNFBLACKxAlt3_61856599.jpg?v=1648150660&width=1946\",\"type\":\"gallery\",\"source_page\":\"https:\/\/www.saintbernard.com\/products\/the-north-face-mens-vectiv-exploris-mid-futurelight-boots\"},{\"url\":\"https:\/\/www.saintbernard.com\/cdn\/shop\/products\/NF0A4T2UxBANFFBLUETNFBLACKxAlt4_61856605.jpg?v=1648150660&width=1946\",\"type\":\"detail\",\"source_page\":\"https:\/\/www.saintbernard.com\/products\/the-north-face-mens-vectiv-exploris-mid-futurelight-boots\"},{\"url\":\"https:\/\/www.saintbernard.com\/cdn\/shop\/products\/NF0A4T2UxBANFFBLUETNFBLACKxAlt5_61856607.jpg?v=1648150661&width=1946\",\"type\":\"detail\",\"source_page\":\"https:\/\/www.saintbernard.com\/products\/the-north-face-mens-vectiv-exploris-mid-futurelight-boots\"}]}]}",
                    "type": "output_text",
                    "logprobs": [],
                    "annotations": []
                }
            ]
        }
    ],
    "status": "completed",
    "billing": {
        "payer": "developer"
    },
    "metadata": [],
    "reasoning": {
        "effort": "none",
        "summary": null
    },
    "background": false,
    "created_at": 1767706971,
    "truncation": "disabled",
    "temperature": 0,
    "tool_choice": "auto",
    "completed_at": 1767707026,
    "instructions": null,
    "service_tier": "default",
    "top_logprobs": 0,
    "max_tool_calls": null,
    "prompt_cache_key": null,
    "max_output_tokens": null,
    "safety_identifier": null,
    "incomplete_details": null,
    "parallel_tool_calls": true,
    "previous_response_id": null,
    "prompt_cache_retention": null
}