Dashboard

17.01.2026 10:25

Zapytanie AI #52

2026-01-06 12:57:12

completed
Typ
images
Produktów
1
Tokeny wejściowe
14,599
Tokeny wyjściowe
696
Czas trwania
-22s

Produkty w tym zapytaniu

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)\r\n\r\n### 3. Image Selection Criteria\r\n- Resolution: minimum 800x800px\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\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. 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\": \"0193128599123\",\n                \"name\": \"Salomon X Ultra 4 GTX\",\n                \"brand\": \"Salomon\",\n                \"brand_website\": \"https:\\\/\\\/www.salomon.com\",\n                \"color\": \"Black\\\/Magnet\\\/Quiet Shade\",\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\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\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_0cf853b92793f23201695cf89970988192950cd01719f369ba",
    "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": 14599,
        "total_tokens": 15295,
        "output_tokens": 696,
        "input_tokens_details": {
            "cached_tokens": 3584
        },
        "output_tokens_details": {
            "reasoning_tokens": 269
        }
    },
    "object": "response",
    "output": [
        {
            "id": "ws_0cf853b92793f23201695cf899f5fc81929ad087089b237626",
            "type": "web_search_call",
            "action": {
                "type": "search",
                "query": "site:salomon.com \"X Ultra 4 GTX\" \"Black\/Magnet\/Quiet Shade\""
            },
            "status": "completed"
        },
        {
            "id": "ws_0cf853b92793f23201695cf89b8a1c8192ae31c8e243f722e6",
            "type": "web_search_call",
            "action": {
                "url": "https:\/\/www.salomonusa.net\/en-us\/shop\/p\/mens-x-ultra-4-gore-tex-in-magnet-black-monument\/MHM-LG3739.html",
                "type": "open_page"
            },
            "status": "completed"
        },
        {
            "id": "ws_0cf853b92793f23201695cf89c2eb88192aba934129ca42227",
            "type": "web_search_call",
            "action": {
                "type": "open_page"
            },
            "status": "completed"
        },
        {
            "id": "ws_0cf853b92793f23201695cf89faf40819280b479555287c6cb",
            "type": "web_search_call",
            "action": {
                "type": "open_page"
            },
            "status": "completed"
        },
        {
            "id": "msg_0cf853b92793f23201695cf8a37d848192866d34d2bbc63698",
            "role": "assistant",
            "type": "message",
            "status": "completed",
            "content": [
                {
                    "text": "{\"products\":[{\"ean\":\"0193128599123\",\"images\":[{\"url\":\"https:\/\/www.salomonusa.net\/storage\/products\/salomonusaxb33ekcy5b5.jpg\",\"type\":\"main\",\"source_page\":\"https:\/\/www.salomonusa.net\/en-us\/shop\/p\/mens-x-ultra-4-gore-tex-in-magnet-black-monument\/MHM-LG3739.html\"},{\"url\":\"https:\/\/www.salomonusa.net\/storage\/products\/salomonusaxqaudweslub.jpg\",\"type\":\"gallery\",\"source_page\":\"https:\/\/www.salomonusa.net\/en-us\/shop\/p\/mens-x-ultra-4-gore-tex-in-magnet-black-monument\/MHM-LG3739.html\"},{\"url\":\"https:\/\/www.salomonusa.net\/storage\/products\/salomonusafdxj4ce0nvk.jpg\",\"type\":\"gallery\",\"source_page\":\"https:\/\/www.salomonusa.net\/en-us\/shop\/p\/mens-x-ultra-4-gore-tex-in-magnet-black-monument\/MHM-LG3739.html\"},{\"url\":\"https:\/\/www.salomonusa.net\/storage\/products\/salomonusa2dnw2lclswi.jpg\",\"type\":\"gallery\",\"source_page\":\"https:\/\/www.salomonusa.net\/en-us\/shop\/p\/mens-x-ultra-4-gore-tex-in-magnet-black-monument\/MHM-LG3739.html\"},{\"url\":\"https:\/\/www.salomonusa.net\/storage\/products\/salomonusaf1lsgfv4ihg.jpg\",\"type\":\"gallery\",\"source_page\":\"https:\/\/www.salomonusa.net\/en-us\/shop\/p\/mens-x-ultra-4-gore-tex-in-magnet-black-monument\/MHM-LG3739.html\"},{\"url\":\"https:\/\/www.salomonusa.net\/storage\/products\/salomonusa5xdiszcueip.jpg\",\"type\":\"detail\",\"source_page\":\"https:\/\/www.salomonusa.net\/en-us\/shop\/p\/mens-x-ultra-4-gore-tex-in-magnet-black-monument\/MHM-LG3739.html\"}]}]}",
                    "type": "output_text",
                    "logprobs": [],
                    "annotations": []
                }
            ]
        }
    ],
    "status": "completed",
    "billing": {
        "payer": "developer"
    },
    "metadata": [],
    "reasoning": {
        "effort": "none",
        "summary": null
    },
    "background": false,
    "created_at": 1767700633,
    "truncation": "disabled",
    "temperature": 0,
    "tool_choice": "auto",
    "completed_at": 1767700654,
    "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
}