{
  "name": "Google SERP + trends and recommendations with Bright Data & Google Gemini",
  "nodes": [
    {
      "id": "89c87a2f-ee34-47e4-8efd-a4a95d02b052",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -380,
        -160
      ]
    },
    {
      "id": "44ede7e3-f552-4a70-a538-9d124a4df315",
      "name": "Set input fields",
      "type": "n8n-nodes-base.set",
      "position": [
        -120,
        -160
      ]
    },
    {
      "id": "adb4eb44-ae8b-4a5e-bab8-afbf5b91e2a2",
      "name": "Perform Bright Data Web Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        120,
        -160
      ]
    },
    {
      "id": "97f0a53c-81cb-4593-afde-d770547b88d0",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        60,
        -440
      ],
      "parameters": {
        "width": 440,
        "height": 240,
        "content": "## LLM Usages\n\nGoogle Gemini LLM is being utilized for the structured data extraction handling."
      }
    },
    {
      "id": "ca10a555-a4ef-4a2b-8ad1-9abf0e02e2d8",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -380,
        -800
      ],
      "parameters": {
        "width": 400,
        "height": 340,
        "content": "## Logo\n\n\n![logo](https://images.seeklogo.com/logo-png/43/1/brightdata-logo-png_seeklogo-439974.png)\n"
      }
    },
    {
      "id": "1ccd35b4-d56a-4c42-88a1-59453a344700",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -380,
        -440
      ],
      "parameters": {
        "width": 400,
        "height": 240,
        "content": "## Note\n\nDeals with the Google SERP Tracker by utilizing the Bright Data and Google Gemini LLM for transforming the profile into a structured JSON response.\n\n**Please make sure to set the input fields"
      }
    },
    {
      "id": "f9b7f382-4a5a-4ddf-a62c-ee83af913a21",
      "name": "Google Search Data Extractor",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        340,
        -160
      ]
    },
    {
      "id": "f10a9a84-3e4c-4ac0-957e-7fc7308c9fda",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        700,
        -160
      ]
    },
    {
      "id": "d3621752-4837-4e6f-82af-953e98901b24",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        920,
        -160
      ]
    },
    {
      "id": "2f607774-34cf-4b0e-9384-f7214e0896e5",
      "name": "Trends Data Extractor",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1180,
        -140
      ]
    },
    {
      "id": "551b645b-99d7-4824-ad69-290ea8105689",
      "name": "Google Gemini Chat Model for Google Search",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        340,
        20
      ]
    },
    {
      "id": "9bd32bc8-9452-4e6a-ac54-e3a1317d196e",
      "name": "Structured Output Parser for Google Search",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        520,
        20
      ]
    },
    {
      "id": "06d01c21-4054-4879-a060-70c1a1bac559",
      "name": "Google Gemini Chat Model for Trend Data",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1180,
        40
      ]
    },
    {
      "id": "7c89ac87-28b1-47f3-9f04-b2c05b1a483a",
      "name": "Recommendation Data Extractor",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1180,
        -560
      ]
    },
    {
      "id": "f1f9cfac-28d0-40a9-9287-b11689570b53",
      "name": "Google Gemini Chat Model for Recommendation",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1180,
        -380
      ]
    },
    {
      "id": "c008d472-0982-4970-a017-73784c6916e7",
      "name": "Structured Output Parser for Recommendation",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1360,
        -380
      ]
    },
    {
      "id": "113b9477-cb62-47b9-8f43-f49247c7053d",
      "name": "Structured Output Parser for Trend Data",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1360,
        40
      ]
    },
    {
      "id": "6b6bb9f4-2836-469d-b81b-90cddf5d0d6c",
      "name": "Code for Recommendations",
      "type": "n8n-nodes-base.code",
      "position": [
        1580,
        -560
      ]
    },
    {
      "id": "cb71a4e9-55ff-4194-8e5c-be96f3971a4e",
      "name": "Code for Trends",
      "type": "n8n-nodes-base.code",
      "position": [
        1600,
        -140
      ]
    },
    {
      "id": "bfdac6af-7fa9-42d9-8931-029291202a35",
      "name": "Convert to File for Trends",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        1840,
        -140
      ]
    },
    {
      "id": "28d26067-622b-4115-ab25-79bf8802acdd",
      "name": "Convert to File for Recommendations",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        1820,
        -560
      ]
    },
    {
      "id": "0fb2daca-d998-432e-901a-001f750822db",
      "name": "Write the trends csv file to disk",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        2080,
        -140
      ]
    },
    {
      "id": "b0164de9-50a4-4aba-a680-a392eaba5765",
      "name": "Write the recommendations csv file to disk",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        2060,
        -560
      ]
    }
  ],
  "connections": {
    "Code": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code for Trends": {
      "main": [
        [
          {
            "node": "Convert to File for Trends",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Trends Data Extractor",
            "type": "main",
            "index": 0
          },
          {
            "node": "Recommendation Data Extractor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set input fields": {
      "main": [
        [
          {
            "node": "Perform Bright Data Web Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Trends Data Extractor": {
      "main": [
        [
          {
            "node": "Code for Trends",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code for Recommendations": {
      "main": [
        [
          {
            "node": "Convert to File for Recommendations",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to File for Trends": {
      "main": [
        [
          {
            "node": "Write the trends csv file to disk",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Search Data Extractor": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Recommendation Data Extractor": {
      "main": [
        [
          {
            "node": "Code for Recommendations",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Perform Bright Data Web Request": {
      "main": [
        [
          {
            "node": "Google Search Data Extractor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Set input fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Write the trends csv file to disk": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to File for Recommendations": {
      "main": [
        [
          {
            "node": "Write the recommendations csv file to disk",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model for Trend Data": {
      "ai_languageModel": [
        [
          {
            "node": "Trends Data Extractor",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser for Trend Data": {
      "ai_outputParser": [
        [
          {
            "node": "Trends Data Extractor",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model for Google Search": {
      "ai_languageModel": [
        [
          {
            "node": "Google Search Data Extractor",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser for Google Search": {
      "ai_outputParser": [
        [
          {
            "node": "Google Search Data Extractor",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model for Recommendation": {
      "ai_languageModel": [
        [
          {
            "node": "Recommendation Data Extractor",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser for Recommendation": {
      "ai_outputParser": [
        [
          {
            "node": "Recommendation Data Extractor",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}