Workflow: Extract Amazon Best Seller Electronic Information with Bright Data and Google Gemini
Integrations: httpRequest, manualTrigger, noOp, set, stickyNote

{"id": "H95uJY2gjSOsxRps", "meta": {"instanceId": "workflow-0de94488", "versionId": "1.0.0", "createdAt": "2025-09-29T07:07:49.909299", "updatedAt": "2025-09-29T07:07:49.909307", "owner": "n8n-user", "license": "MIT", "category": "automation", "status": "active", "priority": "high", "environment": "production"}, "name": "Extract Amazon Best Seller Electronic Information with Bright Data and Google Gemini", "tags": ["automation", "n8n", "production-ready", "excellent", "optimized"], "nodes": [{"id": "328c84bb-eef0-41cc-a392-8e58e3599f9b", "name": "When clicking \u2018Test workflow\u2019", "type": "n8n-nodes-base.manualTrigger", "position": [340, -440], "parameters": {}, "typeVersion": 1, "notes": "This manualTrigger node performs automated tasks as part of the workflow."}, {"id": "b0e35bc1-473f-44b7-8959-9683adabb8b7", "name": "Sticky Note1", "type": "n8n-nodes-base.stickyNote", "position": [820, -640], "parameters": {"width": 420, "height": 140, "content": "## LLM Usages\n\nGoogle Gemini Flash Exp model is being used.\n\nInformation Extraction for building the structured data"}, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow."}, {"id": "a0f32fbd-a7d0-4aeb-b930-59480066e87b", "name": "Google Gemini Chat Model", "type": "n8n-nodes-base.noOp", "position": [1088, -220], "parameters": {"options": {}, "modelName": "models/gemini-2.0-flash-exp"}, "credentials": {"googlePalmApi": {"id": "YeO7dHZnuGBVQKVZ", "name": "Google Gemini(PaLM) Api account"}}, "typeVersion": 1, "notes": "This lmChatGoogleGemini node performs automated tasks as part of the workflow."}, {"id": "3e64fe4a-7746-4b56-b845-3359e38648d9", "name": "HTTP Request to fetch the Amazon Best Seller Products", "type": "n8n-nodes-base.httpRequest", "position": [780, -440], "parameters": {"url": "{{ $env.API_BASE_URL }}", "method": "POST", "options": {}, "sendBody": true, "sendHeaders": true, "authentication": "{{ $credentials.genericCredentialType }}", "bodyParameters": {"parameters": [{"name": "zone", "value": "={{ $json.zone }}"}, {"name": "url", "value": "={{ $json.url }}"}, {"name": "format", "value": "raw"}]}, "genericAuthType": "httpHeaderAuth", "headerParameters": {"parameters": [{}]}}, "credentials": {"httpHeaderAuth": {"id": "kdbqXuxIR8qIxF7y", "name": "Header Auth account"}}, "typeVersion": 4.2, "notes": "This httpRequest node performs automated tasks as part of the workflow."}, {"id": "8e27bd37-b879-4fb2-bf80-1cd609170600", "name": "Structured Data Extractor", "type": "n8n-nodes-base.noOp", "position": [1000, -440], "parameters": {"text": "={{ $json.data }}", "options": {"systemPromptTemplate": "You are an expert extraction algorithm.\nOnly extract relevant information from the text.\nIf you do not know the value of an attribute asked to extract, you may omit the attribute's value."}, "schemaType": "manual", "inputSchema": "{\n  \"$schema\": \"{{ $env.WEBHOOK_URL }}\",\n  \"title\": \"Amazon Bestsellers - Smartphones & Basic Mobiles\",\n  \"type\": \"object\",\n  \"properties\": {\n    \"category\": {\n      \"type\": \"string\",\n      \"example\": \"Smartphones & Basic Mobiles\"\n    },\n    \"description\": {\n      \"type\": \"string\",\n      \"example\": \"Our most popular products based on sales. Updated frequently.\"\n    },\n    \"page\": {\n      \"type\": \"string\",\n      \"example\": \"Page 1 of 2\"\n    },\n    \"bestsellers\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"rank\": {\n            \"type\": \"integer\",\n            \"example\": 1\n          },\n          \"title\": {\n            \"type\": \"string\",\n            \"example\": \"OnePlus Nord CE4 (Dark Chrome, 8GB RAM, 256GB Storage)\"\n          },\n          \"image\": {\n            \"type\": \"string\",\n            \"format\": \"uri\",\n            \"example\": \"{{ $env.WEBHOOK_URL }}\"\n          },\n          \"rating\": {\n            \"type\": \"object\",\n            \"properties\": {\n              \"stars\": {\n                \"type\": \"number\",\n                \"example\": 4.2\n              },\n              \"total_ratings\": {\n                \"type\": \"integer\",\n                \"example\": 8051\n              }\n            },\n            \"required\": [\"stars\", \"total_ratings\"]\n          },\n          \"offer\": {\n            \"type\": \"string\",\n            \"example\": \"1 offer from \u20b923,998.00\"\n          },\n          \"product_url\": {\n            \"type\": \"string\",\n            \"format\": \"uri\",\n            \"example\": \"{{ $env.WEBHOOK_URL }}\"\n          }\n        },\n        \"required\": [\"rank\", \"title\", \"image\", \"rating\", \"offer\", \"product_url\"]\n      }\n    }\n  },\n  \"required\": [\"category\", \"description\", \"page\", \"bestsellers\"]\n}\n"}, "typeVersion": 1, "notes": "This informationExtractor node performs automated tasks as part of the workflow."}, {"id": "584944a3-a5a8-456f-bd5a-57fc1fd5d69f", "name": "Set Amazon URL with the Bright Data Zone", "type": "n8n-nodes-base.set", "notes": "Set the URL which you are interested to scrap the data", "position": [560, -440], "parameters": {"options": {}, "assignments": {"assignments": [{"id": "1c132dd6-31e4-453b-a8cf-cad9845fe55b", "name": "url", "type": "string", "value": "{{ $env.API_BASE_URL }}"}, {"id": "0fa387df-2511-4228-b6aa-237cceb3e9c7", "name": "zone", "type": "string", "value": "web_unlocker1"}]}}, "notesInFlow": true, "typeVersion": 3.4}, {"id": "bc2507a8-a9b6-4b47-9bce-2cef9a0d1e3e", "name": "Sticky Note", "type": "n8n-nodes-base.stickyNote", "position": [340, -720], "parameters": {"width": 400, "height": 220, "content": "## Note\n\nDeals with the Amazon Best Seller Electronic data extraction using the Bright Data and LLM for Information Extraction.\n\n**Please make sure to update the \"Set Amazon URL with the Bright Data Zone\" and the Webhook Notification URL**"}, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow."}, {"id": "36a14230-e791-4996-8457-311a496833cd", "name": "Webhook Notifier for structured data extractor", "type": "n8n-nodes-base.httpRequest", "position": [1376, -440], "parameters": {"url": "{{ $env.WEBHOOK_URL }}", "options": {}, "sendBody": true, "bodyParameters": {"parameters": [{"name": "summary", "value": "={{ $json.output }}"}]}}, "typeVersion": 4.2, "notes": "This httpRequest node performs automated tasks as part of the workflow."}], "active": false, "pinData": {}, "settings": {"executionOrder": "v1", "saveManualExecutions": true, "callerPolicy": "workflowsFromSameOwner", "errorWorkflow": null, "timezone": "UTC", "executionTimeout": 3600, "maxExecutions": 1000, "retryOnFail": true, "retryCount": 3, "retryDelay": 1000}, "versionId": "2e44bd30-9100-43a9-b177-b15867b8488b", "connections": {"3e64fe4a-7746-4b56-b845-3359e38648d9": {"main": [[{"node": "error-handler-3e64fe4a-7746-4b56-b845-3359e38648d9", "type": "main", "index": 0}], [{"node": "error-handler-3e64fe4a-7746-4b56-b845-3359e38648d9-7c7e41c7", "type": "main", "index": 0}], [{"node": "error-handler-3e64fe4a-7746-4b56-b845-3359e38648d9-c2a12c8c", "type": "main", "index": 0}], [{"node": "error-handler-3e64fe4a-7746-4b56-b845-3359e38648d9-a874da43", "type": "main", "index": 0}], [{"node": "error-handler-3e64fe4a-7746-4b56-b845-3359e38648d9-59ffc729", "type": "main", "index": 0}], [{"node": "error-handler-3e64fe4a-7746-4b56-b845-3359e38648d9-1b9269b4", "type": "main", "index": 0}], [{"node": "error-handler-3e64fe4a-7746-4b56-b845-3359e38648d9-8d35bf0a", "type": "main", "index": 0}], [{"node": "error-handler-3e64fe4a-7746-4b56-b845-3359e38648d9-ed292bca", "type": "main", "index": 0}], [{"node": "error-handler-3e64fe4a-7746-4b56-b845-3359e38648d9-b97553af", "type": "main", "index": 0}]]}, "36a14230-e791-4996-8457-311a496833cd": {"main": [[{"node": "error-handler-36a14230-e791-4996-8457-311a496833cd", "type": "main", "index": 0}], [{"node": "error-handler-36a14230-e791-4996-8457-311a496833cd-dc6e9f6b", "type": "main", "index": 0}], [{"node": "error-handler-36a14230-e791-4996-8457-311a496833cd-8a005936", "type": "main", "index": 0}], [{"node": "error-handler-36a14230-e791-4996-8457-311a496833cd-dd4c5d4f", "type": "main", "index": 0}], [{"node": "error-handler-36a14230-e791-4996-8457-311a496833cd-b1f35f46", "type": "main", "index": 0}], [{"node": "error-handler-36a14230-e791-4996-8457-311a496833cd-718b0e94", "type": "main", "index": 0}], [{"node": "error-handler-36a14230-e791-4996-8457-311a496833cd-40a9538c", "type": "main", "index": 0}], [{"node": "error-handler-36a14230-e791-4996-8457-311a496833cd-b88362d4", "type": "main", "index": 0}], [{"node": "error-handler-36a14230-e791-4996-8457-311a496833cd-5d7b11ec", "type": "main", "index": 0}]]}, "a0f32fbd-a7d0-4aeb-b930-59480066e87b": {"main": [[{"node": "error-handler-a0f32fbd-a7d0-4aeb-b930-59480066e87b-94c4e407", "type": "main", "index": 0}]]}}, "description": "Automated workflow: Extract Amazon Best Seller Electronic Information with Bright Data and Google Gemini. This workflow integrates 7 different services: stickyNote, httpRequest, lmChatGoogleGemini, informationExtractor, set. It contains 13 nodes and follows best practices for error handling and security.", "notes": "Excellent quality workflow: Extract Amazon Best Seller Electronic Information with Bright Data and Google Gemini. This workflow has been optimized for production use with comprehensive error handling, security, and documentation."}