Dashboard

17.01.2026 12:24

Zapytanie AI #139

2026-01-06 21:45:08

completed
Typ
images
Produktów
2
Tokeny wejściowe
79,129
Tokeny wyjściowe
2,868
Czas trwania
-147s

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 an aggressive image harvester. Your goal is to collect **10 high-resolution product images**.\n\nCRITICAL EXTRACTION RULES:\n1. **OPEN EVERY PAGE** - When you find a product page, ALWAYS open it and extract ALL gallery images (not just 1-2)\n2. **MULTIPLE SOURCES** - Search ALL URLs in `brand_website` field (comma-separated) + ALL preferred retailers\n3. **FULL GALLERIES** - Product pages typically have 4-8 images in gallery. Extract ALL of them, not just the main image\n4. **RESOLUTION** - Target 1200px width. Modify URL params: `?w=400` → `?w=1200`, `_400x` → `_1200x`\n\nFAILURE MODE TO AVOID: Finding a product page with 6 images but only extracting 2. You MUST extract ALL images from each gallery."
        },
        {
            "role": "developer",
            "content": "## STEP-BY-STEP PROCEDURE\n\nExecute these steps IN ORDER. Do NOT skip any step until you have 10+ images.\n\n### STEP 1: Parse brand_website field\nThe `brand_website` field contains comma-separated URLs. Split them and search EACH ONE:\n- Example: \"https:\/\/maloja.com, https:\/\/stonefeet.ro\" → search BOTH sites\n- For each URL, search: `site:{domain} \"{product_name}\"`\n- Open EVERY product page found and extract ALL gallery images\n\n### STEP 2: Search preferred retailers\nFor EACH shop in `preferred_sources` array, search:\n```\nsite:{shop} \"{brand} {product_name}\"\n```\nOpen every product page. Extract ALL gallery images (typically 4-8 per page).\n\n### STEP 3: General search (if < 8 images)\n```\n\"{brand} {product_name}\" product images\n```\n\n### STEP 4: Lifestyle images (if < 10 images)\n```\n\"{brand} {product_name}\" worn OR \"in use\" OR \"lifestyle\"\n```\n\n## GALLERY EXTRACTION - TECHNICAL GUIDE\n\nWhen you open a product page, use `find_in_page` with these patterns to find ALL images:\n\n### Pattern 1: Find image file extensions\n```\nfind_in_page pattern: \".jpg\"\nfind_in_page pattern: \".png\"\nfind_in_page pattern: \".webp\"\n```\n\n### Pattern 2: Find CDN URLs\n```\nfind_in_page pattern: \"cdn.\"\nfind_in_page pattern: \"\/media\/\"\nfind_in_page pattern: \"\/images\/\"\nfind_in_page pattern: \"\/product\/\"\n```\n\n### Pattern 3: Find image data attributes\n```\nfind_in_page pattern: \"data-src\"\nfind_in_page pattern: \"data-zoom\"\nfind_in_page pattern: \"data-large\"\n```\n\n### After finding patterns:\n1. Extract ALL unique image URLs that match\n2. If URL has size param like `?w=400` or `Resize=100`, change to `?w=1200` or `Resize=1200`\n3. Remove duplicates\n4. Return ALL found images (typically 4-8 per product page)\n\n**IMPORTANT**: Don't stop at og:image - that's usually just the main image. Search for ALL gallery images!\n\n## IMAGE TYPES\n- **main**: Front view, white\/neutral background\n- **gallery**: Other angles (back, side, top)\n- **detail**: Close-ups of features, materials, labels\n- **lifestyle**: Product worn\/used by person\n\n## RESOLUTION\n- Target: 1200px width\n- Minimum acceptable: 800px\n- Modify URL size params for max resolution\n\n## FORBIDDEN SOURCES\n- Amazon, eBay, Allegro\n- Pinterest, forums, blogs\n- Watermarked images"
        },
        {
            "role": "user",
            "content": "## Task\nFind **10 high-resolution images** for each product.\n\n## Products\n{\n    \"batch\": {\n        \"products\": [\n            {\n                \"ean\": \"8032696700652\",\n                \"name\": \"AKU Buty turystyczne damskie Bellamont Gaia Mid GTX blue\\\/apricot r. 36 (36)\",\n                \"brand\": \"AKU\",\n                \"brand_website\": \"https:\\\/\\\/aku.com\\\/\",\n                \"color\": \"szary\",\n                \"preferred_sources\": [\n                    \"8a.pl\",\n                    \"sportano.pl\",\n                    \"decathlon.pl\",\n                    \"intersport.pl\",\n                    \"bergfreunde.eu\",\n                    \"trekkinn.com\"\n                ]\n            },\n            {\n                \"ean\": \"8032696717933\",\n                \"name\": \"AKU Buty trekkingowe damskie niskie  W&amp;#039;s RAPIDA szare (36)\",\n                \"brand\": \"AKU\",\n                \"brand_website\": \"https:\\\/\\\/aku.com\\\/\",\n                \"color\": \"\",\n                \"preferred_sources\": [\n                    \"8a.pl\",\n                    \"sportano.pl\",\n                    \"decathlon.pl\",\n                    \"intersport.pl\",\n                    \"bergfreunde.eu\",\n                    \"trekkinn.com\"\n                ]\n            }\n        ]\n    }\n}\n\n## MANDATORY SEARCH ORDER\n\n### 1. Search ALL brand websites\nThe `brand_website` field may contain multiple comma-separated URLs.\n**You MUST search EACH ONE separately.**\nExample: If brand_website = \"https:\/\/maloja.com, https:\/\/stonefeet.ro\"\n→ Search: `site:maloja.com \"{product}\"`\n→ Search: `site:stonefeet.ro \"{product}\"`\n→ Open each product page found and extract ALL gallery images (4-8 per page)\n\n### 2. Search preferred retailers\nSearch each shop from `preferred_sources`: {8a.pl, sportano.pl, decathlon.pl, intersport.pl, bergfreunde.eu, trekkinn.com}\n→ `site:8a.pl \"{brand} {product}\"` etc.\n→ Open product pages, extract ALL gallery images\n\n### 3. General search (if still < 8 images)\n→ `\"{brand} {product}\" product images high resolution`\n\n### 4. Lifestyle search (if still < 10 images)\n→ `\"{brand} {product}\" worn OR lifestyle`\n\n## CRITICAL: How to extract ALL gallery images\nWhen you open a product page, use `find_in_page` with patterns like:\n- \".jpg\" or \".png\" or \".webp\"\n- \"cdn.\" or \"\/media\/\" or \"\/images\/\"\n\nExtract ALL matching URLs, not just the first one! Galleries have 4-8 images.\n\n## Output\nReturn JSON with ALL found images. Target: 10 per product."
        }
    ],
    "model": "gpt-5.2",
    "store": false,
    "tools": [
        {
            "type": "web_search"
        }
    ],
    "temperature": 0,
    "tool_choice": "auto"
}

Response Payload

{
    "id": "resp_04b9664e395ea15801695d7454df28819db0cc4513eb018ea8",
    "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": 79129,
        "total_tokens": 81997,
        "output_tokens": 2868,
        "input_tokens_details": {
            "cached_tokens": 5248
        },
        "output_tokens_details": {
            "reasoning_tokens": 1896
        }
    },
    "object": "response",
    "output": [
        {
            "id": "ws_04b9664e395ea15801695d74557aec819db044695ce607c5a9",
            "type": "web_search_call",
            "action": {
                "type": "search",
                "query": "site:aku.com \"Bellamont Gaia Mid GTX\""
            },
            "status": "completed"
        },
        {
            "id": "ws_04b9664e395ea15801695d74587b84819d87a7ab1f1ad11dac",
            "type": "web_search_call",
            "action": {
                "type": "search",
                "query": "site:aku.com Bellamont Gaia Mid GTX"
            },
            "status": "completed"
        },
        {
            "id": "ws_04b9664e395ea15801695d745ab480819d9965dcd26403ef54",
            "type": "web_search_call",
            "action": {
                "url": "https:\/\/www.aku.com\/de\/products\/rapida-evo-gtx-ws-grigio-scuro-viola",
                "type": "open_page"
            },
            "status": "completed"
        },
        {
            "id": "ws_04b9664e395ea15801695d745dfc3c819d994ac2decd6c1a07",
            "type": "web_search_call",
            "action": {
                "url": "https:\/\/www.aku.com\/de\/products\/rapida-evo-gtx-ws-grigio-scuro-viola",
                "type": "find_in_page",
                "pattern": ".jpg"
            },
            "status": "completed"
        },
        {
            "id": "ws_04b9664e395ea15801695d745fac10819db2facfbd0e287e37",
            "type": "web_search_call",
            "action": {
                "type": "open_page"
            },
            "status": "completed"
        },
        {
            "id": "ws_04b9664e395ea15801695d7461c580819d83df82c7c9626377",
            "type": "web_search_call",
            "action": {
                "type": "search",
                "query": "site:8a.pl AKU Bellamont Gaia Mid GTX"
            },
            "status": "completed"
        },
        {
            "id": "ws_04b9664e395ea15801695d7463fbf8819d9c806629f6e25427",
            "type": "web_search_call",
            "action": {
                "type": "search",
                "query": "site:8a.pl \"Bellamont Gaia\""
            },
            "status": "completed"
        },
        {
            "id": "ws_04b9664e395ea15801695d7465f26c819db68f30ed9e1462b6",
            "type": "web_search_call",
            "action": {
                "type": "search",
                "query": "site:8a.pl \"Rapida\" AKU damskie niskie"
            },
            "status": "completed"
        },
        {
            "id": "ws_04b9664e395ea15801695d746a26c8819d8df4f0f01c825b58",
            "type": "web_search_call",
            "action": {
                "url": "https:\/\/8a.pl\/buty-damskie-aku-rapida-air-black-pink",
                "type": "open_page"
            },
            "status": "completed"
        },
        {
            "id": "ws_04b9664e395ea15801695d746c049c819db52d62b9df0c3e93",
            "type": "web_search_call",
            "action": {
                "url": "https:\/\/8a.pl\/buty-damskie-aku-rapida-air-black-pink",
                "type": "find_in_page",
                "pattern": ".jpg"
            },
            "status": "completed"
        },
        {
            "id": "ws_04b9664e395ea15801695d746f05cc819d8921d42d2591efd9",
            "type": "web_search_call",
            "action": {
                "url": "https:\/\/8a.pl\/buty-damskie-aku-rapida-air-black-pink",
                "type": "find_in_page",
                "pattern": "https:\/\/"
            },
            "status": "completed"
        },
        {
            "id": "ws_04b9664e395ea15801695d7471963c819db0b2fe1e9d473e61",
            "type": "web_search_call",
            "action": {
                "url": "https:\/\/8a.pl\/buty-damskie-aku-rapida-air-black-pink",
                "type": "open_page"
            },
            "status": "completed"
        },
        {
            "id": "ws_04b9664e395ea15801695d7472c148819da404d3c013352f9d",
            "type": "web_search_call",
            "action": {
                "url": "https:\/\/www.facebook.com\/tr?ev=PageView&id=1192733587411285&noscript=1",
                "type": "open_page"
            },
            "status": "completed"
        },
        {
            "id": "ws_04b9664e395ea15801695d747608f8819d88dc989cf9b3ab34",
            "type": "web_search_call",
            "action": {
                "type": "open_page"
            },
            "status": "completed"
        },
        {
            "id": "ws_04b9664e395ea15801695d74777ee0819da8173b097ecd55fc",
            "type": "web_search_call",
            "action": {
                "url": "https:\/\/8a.pl\/buty-damskie-aku-rapida-air-black-pink",
                "type": "open_page"
            },
            "status": "completed"
        },
        {
            "id": "ws_04b9664e395ea15801695d7479c46c819d916598c37d06764b",
            "type": "web_search_call",
            "action": {
                "type": "search",
                "query": "site:8a.pl 8032696700652"
            },
            "status": "completed"
        },
        {
            "id": "ws_04b9664e395ea15801695d747f660c819d9a0d749a9eff6b3d",
            "type": "web_search_call",
            "action": {
                "type": "search",
                "query": "\"8032696700652\" AKU"
            },
            "status": "completed"
        },
        {
            "id": "ws_04b9664e395ea15801695d748546a0819d85fecf341113e8af",
            "type": "web_search_call",
            "action": {
                "url": "https:\/\/trekmondo.pl\/ona\/obuwie-damskie\/buty-gorskie-damskie\/aku-buty-turystyczne-damskie-bellamont-gaia-mid-gtx-blue-apricot\/",
                "type": "open_page"
            },
            "status": "completed"
        },
        {
            "id": "ws_04b9664e395ea15801695d7487ab54819d8276642bbd4c525e",
            "type": "web_search_call",
            "action": {
                "url": "https:\/\/trekmondo.pl\/ona\/obuwie-damskie\/buty-gorskie-damskie\/aku-buty-turystyczne-damskie-bellamont-gaia-mid-gtx-blue-apricot\/",
                "type": "find_in_page",
                "pattern": ".jpg"
            },
            "status": "completed"
        },
        {
            "id": "ws_04b9664e395ea15801695d748e8568819d82feec190ec17c08",
            "type": "web_search_call",
            "action": {
                "url": "https:\/\/trekmondo.pl\/ona\/obuwie-damskie\/buty-gorskie-damskie\/aku-buty-turystyczne-damskie-bellamont-gaia-mid-gtx-blue-apricot\/",
                "type": "open_page"
            },
            "status": "completed"
        },
        {
            "id": "ws_04b9664e395ea15801695d7491136c819db49523c4e77f3af9",
            "type": "web_search_call",
            "action": {
                "type": "open_page"
            },
            "status": "completed"
        },
        {
            "id": "ws_04b9664e395ea15801695d7497df9c819dbfa8ce19166c0f96",
            "type": "web_search_call",
            "action": {
                "type": "open_page"
            },
            "status": "completed"
        },
        {
            "id": "ws_04b9664e395ea15801695d749c09b0819daa42ef8c1bffe80d",
            "type": "web_search_call",
            "action": {
                "url": "https:\/\/trekmondo.pl\/ona\/obuwie-damskie\/buty-turystyczne-miejskie-damskie\/aku-buty-trekkingowe-damskie-niskie-ws-rapida-blue-anthracite\/",
                "type": "open_page"
            },
            "status": "completed"
        },
        {
            "id": "ws_04b9664e395ea15801695d749f3018819d9543a7316d402011",
            "type": "web_search_call",
            "action": {
                "type": "open_page"
            },
            "status": "completed"
        },
        {
            "id": "ws_04b9664e395ea15801695d74a71de8819db773af25d35687fe",
            "type": "web_search_call",
            "action": {
                "type": "search",
                "query": "site:trekkinn.com \"Bellamont Gaia Mid GTX\""
            },
            "status": "completed"
        },
        {
            "id": "ws_04b9664e395ea15801695d74aaf84c819dbf171aa2c6028dc2",
            "type": "web_search_call",
            "action": {
                "type": "search",
                "query": "site:decathlon.pl AKU Bellamont Gaia Mid GTX"
            },
            "status": "completed"
        },
        {
            "id": "msg_04b9664e395ea15801695d74b31264819d93a7ebf2c4eff091",
            "role": "assistant",
            "type": "message",
            "status": "completed",
            "content": [
                {
                    "text": "{\"products\":[{\"ean\":\"8032696700652\",\"images\":[{\"url\":\"https:\/\/trekmondo.pl\/images\/detailed\/19\/AKU_-_Buty_turystyczne_damskie_Bellamont_Gaia_Mid_GTX_blue_apricot.png\",\"type\":\"main\",\"source_page\":\"https:\/\/trekmondo.pl\/ona\/obuwie-damskie\/buty-gorskie-damskie\/aku-buty-turystyczne-damskie-bellamont-gaia-mid-gtx-blue-apricot\/\"},{\"url\":\"https:\/\/trekmondo.pl\/images\/detailed\/19\/AKU_-_Buty_turystyczne_damskie_Bellamont_Gaia_Mid_GTX_blue_apricot_1.png\",\"type\":\"gallery\",\"source_page\":\"https:\/\/trekmondo.pl\/ona\/obuwie-damskie\/buty-gorskie-damskie\/aku-buty-turystyczne-damskie-bellamont-gaia-mid-gtx-blue-apricot\/\"},{\"url\":\"https:\/\/trekmondo.pl\/images\/detailed\/19\/AKU_-_Buty_turystyczne_damskie_Bellamont_Gaia_Mid_GTX_blue_apricot_2.png\",\"type\":\"gallery\",\"source_page\":\"https:\/\/trekmondo.pl\/ona\/obuwie-damskie\/buty-gorskie-damskie\/aku-buty-turystyczne-damskie-bellamont-gaia-mid-gtx-blue-apricot\/\"},{\"url\":\"https:\/\/trekmondo.pl\/images\/detailed\/19\/AKU_-_Buty_turystyczne_damskie_Bellamont_Gaia_Mid_GTX_blue_apricot_3.png\",\"type\":\"detail\",\"source_page\":\"https:\/\/trekmondo.pl\/ona\/obuwie-damskie\/buty-gorskie-damskie\/aku-buty-turystyczne-damskie-bellamont-gaia-mid-gtx-blue-apricot\/\"}]},{\"ean\":\"8032696717933\",\"images\":[{\"url\":\"https:\/\/trekmondo.pl\/images\/detailed\/19\/AKU_-_Buty_trekkingowe_damskie_niskie__W%27s_RAPIDA_blue_anthracite.png\",\"type\":\"main\",\"source_page\":\"https:\/\/trekmondo.pl\/ona\/obuwie-damskie\/buty-turystyczne-miejskie-damskie\/aku-buty-trekkingowe-damskie-niskie-ws-rapida-blue-anthracite\/\"},{\"url\":\"https:\/\/trekmondo.pl\/images\/detailed\/19\/AKU_-_Buty_trekkingowe_damskie_niskie__W%27s_RAPIDA_blue_anthracite_1.png\",\"type\":\"gallery\",\"source_page\":\"https:\/\/trekmondo.pl\/ona\/obuwie-damskie\/buty-turystyczne-miejskie-damskie\/aku-buty-trekkingowe-damskie-niskie-ws-rapida-blue-anthracite\/\"},{\"url\":\"https:\/\/trekmondo.pl\/images\/detailed\/19\/AKU_-_Buty_trekkingowe_damskie_niskie__W%27s_RAPIDA_blue_anthracite_2.png\",\"type\":\"gallery\",\"source_page\":\"https:\/\/trekmondo.pl\/ona\/obuwie-damskie\/buty-turystyczne-miejskie-damskie\/aku-buty-trekkingowe-damskie-niskie-ws-rapida-blue-anthracite\/\"},{\"url\":\"https:\/\/trekmondo.pl\/images\/detailed\/19\/AKU_-_Buty_trekkingowe_damskie_niskie__W%27s_RAPIDA_blue_anthracite_3.png\",\"type\":\"detail\",\"source_page\":\"https:\/\/trekmondo.pl\/ona\/obuwie-damskie\/buty-turystyczne-miejskie-damskie\/aku-buty-trekkingowe-damskie-niskie-ws-rapida-blue-anthracite\/\"},{\"url\":\"https:\/\/trekmondo.pl\/images\/detailed\/19\/AKU_-_Buty_trekkingowe_damskie_niskie__W%27s_RAPIDA_blue_anthracite_4.png\",\"type\":\"gallery\",\"source_page\":\"https:\/\/trekmondo.pl\/ona\/obuwie-damskie\/buty-turystyczne-miejskie-damskie\/aku-buty-trekkingowe-damskie-niskie-ws-rapida-blue-anthracite\/\"}]}]}",
                    "type": "output_text",
                    "logprobs": [],
                    "annotations": []
                }
            ]
        }
    ],
    "status": "completed",
    "billing": {
        "payer": "developer"
    },
    "metadata": [],
    "reasoning": {
        "effort": "none",
        "summary": null
    },
    "background": false,
    "created_at": 1767732308,
    "truncation": "disabled",
    "temperature": 0,
    "tool_choice": "auto",
    "completed_at": 1767732435,
    "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
}