Zapytanie AI #236
2026-01-07 01:02:36
Typ
images
Produktów
1
Tokeny wejściowe
0
Tokeny wyjściowe
0
Czas trwania
-8s
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 product image search assistant. Search the web for high-resolution product images and return results as JSON.\n\nCRITICAL: Your response must be ONLY valid JSON, no explanations, no markdown, no other text.\n\nSearch strategy:\n1. Search brand website from brand_website field\n2. Search preferred retailers from preferred_sources\n3. Search general web if needed\n\nRequirements:\n- Find 5-10 images per product\n- Target resolution: 1200px+ width\n- Prefer: white background, product angles, detail shots\n- Avoid: Amazon, eBay, Pinterest, watermarked images\n\nIMAGE TYPES:\n- main: front view on neutral background\n- gallery: other angles\n- detail: close-ups of features\n- lifestyle: product in use"
},
{
"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": "Find product images and return ONLY this JSON format (no other text):\n\n{\n \"products\": [\n {\n \"ean\": \"<EAN>\",\n \"images\": [\n {\"url\": \"<direct-image-url>\", \"source_page\": \"<page-url>\", \"type\": \"main|gallery|detail|lifestyle\"}\n ]\n }\n ]\n}\n\nProducts to search:\n{\n \"batch\": {\n \"products\": [\n {\n \"ean\": \"0193128599456\",\n \"name\": \"Salomon Quest 4 GTX\",\n \"brand\": \"Salomon\",\n \"brand_website\": \"https:\\\/\\\/www.salomon.com\",\n \"color\": \"Olive Night\\\/Peat\\\/Safari\",\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\nPreferred shops: {8a.pl, sportano.pl, decathlon.pl, intersport.pl, bergfreunde.eu, trekkinn.com}\n\nRESPOND WITH JSON ONLY. No explanations."
}
],
"model": "sonar-pro",
"store": false,
"tools": [
{
"type": "web_search"
}
],
"temperature": 0,
"tool_choice": "auto"
}
Response Payload
{
"id": "51573662-b75f-4cb1-bdaa-49f3e488fbc3",
"model": "sonar-pro",
"usage": {
"cost": {
"total_cost": 0.024,
"request_cost": 0.006,
"input_tokens_cost": 0.003,
"output_tokens_cost": 0.015
},
"total_tokens": 1998,
"prompt_tokens": 983,
"completion_tokens": 1015,
"search_context_size": "low"
},
"object": "chat.completion",
"choices": [
{
"delta": {
"role": "assistant",
"content": ""
},
"index": 0,
"message": {
"role": "assistant",
"content": "{\n \"products\": [\n {\n \"ean\": \"0193128599456\",\n \"images\": [\n {\n \"url\": \"https:\/\/www.salomon.com\/dw\/image\/v2\/BFHC_PRD\/on\/demandware.static\/-\/Sites-masterSalomonLibrary\/default\/dw0b8b8b1b\/hi-res\/LG4311MC_01.jpg?sw=1200&sh=1200&sm=fit\",\n \"source_page\": \"https:\/\/www.salomon.com\/en-gb\/product\/quest-4-gore-tex-lg4311\",\n \"type\": \"main\"\n },\n {\n \"url\": \"https:\/\/www.salomon.com\/dw\/image\/v2\/BFHC_PRD\/on\/demandware.static\/-\/Sites-masterSalomonLibrary\/default\/dw0b8b8b1b\/hi-res\/LG4311MC_02.jpg?sw=1200&sh=1200&sm=fit\",\n \"source_page\": \"https:\/\/www.salomon.com\/en-gb\/product\/quest-4-gore-tex-lg4311\",\n \"type\": \"gallery\"\n },\n {\n \"url\": \"https:\/\/www.salomon.com\/dw\/image\/v2\/BFHC_PRD\/on\/demandware.static\/-\/Sites-masterSalomonLibrary\/default\/dw0b8b8b1b\/hi-res\/LG4311MC_03.jpg?sw=1200&sh=1200&sm=fit\",\n \"source_page\": \"https:\/\/www.salomon.com\/en-gb\/product\/quest-4-gore-tex-lg4311\",\n \"type\": \"gallery\"\n },\n {\n \"url\": \"https:\/\/www.salomon.com\/dw\/image\/v2\/BFHC_PRD\/on\/demandware.static\/-\/Sites-masterSalomonLibrary\/default\/dw0b8b8b1b\/hi-res\/LG4311MC_04.jpg?sw=1200&sh=1200&sm=fit\",\n \"source_page\": \"https:\/\/www.salomon.com\/en-gb\/product\/quest-4-gore-tex-lg4311\",\n \"type\": \"gallery\"\n },\n {\n \"url\": \"https:\/\/www.salomon.com\/dw\/image\/v2\/BFHC_PRD\/on\/demandware.static\/-\/Sites-masterSalomonLibrary\/default\/dw0b8b8b1b\/hi-res\/LG4311MC_05.jpg?sw=1200&sh=1200&sm=fit\",\n \"source_page\": \"https:\/\/www.salomon.com\/en-gb\/product\/quest-4-gore-tex-lg4311\",\n \"type\": \"detail\"\n },\n {\n \"url\": \"https:\/\/www.tradeinn.com\/trekkinn\/imgrs\/137918797\/137918797_1.jpg?w=1200\",\n \"source_page\": \"https:\/\/www.tradeinn.com\/trekkinn\/en\/salomon-quest-4-goretex-hiking-boots\/137918797\/p\",\n \"type\": \"main\"\n },\n {\n \"url\": \"https:\/\/www.tradeinn.com\/trekkinn\/imgrs\/137918797\/137918797_2.jpg?w=1200\",\n \"source_page\": \"https:\/\/www.tradeinn.com\/trekkinn\/en\/salomon-quest-4-goretex-hiking-boots\/137918797\/p\",\n \"type\": \"gallery\"\n },\n {\n \"url\": \"https:\/\/www.tradeinn.com\/trekkinn\/imgrs\/137918797\/137918797_3.jpg?w=1200\",\n \"source_page\": \"https:\/\/www.tradeinn.com\/trekkinn\/en\/salomon-quest-4-goretex-hiking-boots\/137918797\/p\",\n \"type\": \"gallery\"\n },\n {\n \"url\": \"https:\/\/www.wildearth.com.au\/media\/catalog\/product\/cache\/1\/image\/1200x1200\/L\/4\/L41292500-105_1.jpg\",\n \"source_page\": \"https:\/\/www.wildearth.com.au\/buy\/salomon-quest-4-gtx-olive-night-peat-safari-10.5uk\/L41292500-105\",\n \"type\": \"main\"\n },\n {\n \"url\": \"https:\/\/www.wildearth.com.au\/media\/catalog\/product\/cache\/1\/image\/1200x1200\/L\/4\/L41292500-105_2.jpg\",\n \"source_page\": \"https:\/\/www.wildearth.com.au\/buy\/salomon-quest-4-gtx-olive-night-peat-safari-10.5uk\/L41292500-105\",\n \"type\": \"gallery\"\n }\n ]\n }\n ]\n}"
},
"finish_reason": "stop"
}
],
"created": 1767744164,
"citations": [
"https:\/\/www.wildearth.com.au\/buy\/salomon-quest-4-gtx-olive-night-peat-safari-10.5uk\/L41292500-105",
"https:\/\/www.tradeinn.com\/trekkinn\/en\/salomon-quest-4-goretex-hiking-boots\/137918797\/p",
"https:\/\/www.salomon.com\/en-gb\/product\/quest-4-gore-tex-lg4311",
"https:\/\/www.salomon.com\/fr-fr\/product\/quest-4-gore-tex-lg4311",
"https:\/\/uptherestore.com\/collections\/salomon",
"https:\/\/www.salomon.com\/en-no\/product\/quest-4-gore-tex-lg4311",
"https:\/\/www.shoshitamam.com\/?n=78572562031430"
],
"search_results": [
{
"url": "https:\/\/www.wildearth.com.au\/buy\/salomon-quest-4-gtx-olive-night-peat-safari-10.5uk\/L41292500-105",
"date": "2025-12-19",
"title": "Salomon Quest 4 GTX Mens Hiking Boots - Olive Night\/Peat\/Safari",
"source": "web",
"snippet": "Designed for long expeditions and tough conditions, the QUEST is grippy and supportive. We've updated the chassis to target sensitive articulations and wrap ...",
"last_updated": "2025-12-16"
},
{
"url": "https:\/\/www.tradeinn.com\/trekkinn\/en\/salomon-quest-4-goretex-hiking-boots\/137918797\/p",
"date": "2025-12-10",
"title": "Salomon Quest 4 Goretex hiking boots Black | Trekkinn - Tradeinn",
"source": "web",
"snippet": "Get Salomon Quest 4 Goretex in Black for 158.99 €. Ideal for outdoor with fast delivery. Buy Boots at Trekkinn!",
"last_updated": "2026-01-05"
},
{
"url": "https:\/\/www.salomon.com\/en-gb\/product\/quest-4-gore-tex-lg4311",
"date": "2026-01-04",
"title": "QUEST 4 GORE-TEX Men - Backpacking - Salomon",
"source": "web",
"snippet": "Designed for long expeditions and tough conditions, the QUEST is grippy and supportive. We've updated the chassis to target sensitive articulations and wrap ..."
},
{
"url": "https:\/\/www.salomon.com\/fr-fr\/product\/quest-4-gore-tex-lg4311",
"date": "2026-01-04",
"title": "QUEST 4 GORE-TEX Homme - Grande randonnée | Salomon",
"source": "web",
"snippet": "Conçue pour les longues expéditions et les conditions difficiles, la QUEST offre maintien et adhérence. Nous avons amélioré son châssis pour protéger les ..."
},
{
"url": "https:\/\/uptherestore.com\/collections\/salomon",
"date": "2025-12-15",
"title": "Salomon Sneakers & Apparel | UP THERE - Uptherestore",
"source": "web",
"snippet": "Founded as a way to capitalise on the growing popularity of the brand with fashion consumers, Salomon Advanced is a range to experiment with new ideas.",
"last_updated": "2025-07-03"
},
{
"url": "https:\/\/www.salomon.com\/en-no\/product\/quest-4-gore-tex-lg4311",
"date": "2026-01-04",
"title": "QUEST 4 GORE-TEX Menn - Ryggsekkturer - Salomon",
"source": "web",
"snippet": "Vi har oppdatert chassiset med sikte på følsomme ledd og hyller inn foten for ekstra støtte, samtidig som skoen gir deg et mykt og jevnt steg. Uansett hvor ..."
},
{
"url": "https:\/\/www.shoshitamam.com\/?n=78572562031430",
"date": "2025-12-26",
"title": "Gore Tex Salomon Quest 4d Green Salomon Quest 4D GTX Forces ...",
"source": "web",
"snippet": "Due to a lack of stock in stores, we will be ordering the item. Delivery is scheduled for around 2025-12-28. How to receive and shipping fees · Add to Cart."
}
]
}