{
  "name": "Extract structured data from Brave Search with Bright Data MCP & Google Gemini",
  "nodes": [
    {
      "id": "70d29e8e-3e2d-4177-abdc-d3da8d6b60e4",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -780,
        0
      ]
    },
    {
      "id": "e3b06669-954e-494f-8b59-080d9d7083a8",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        600,
        220
      ]
    },
    {
      "id": "2c8c3b3a-edaf-42f2-8f3b-1c3a96bd4c7d",
      "name": "Structured Data Extractor",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        600,
        0
      ]
    },
    {
      "id": "b2cb439e-eccc-40ad-97db-265bcd9f7a73",
      "name": "Set the input for image search",
      "type": "n8n-nodes-base.set",
      "position": [
        -120,
        -300
      ]
    },
    {
      "id": "df89cc2e-1b75-4176-a66d-f17d5076bb17",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        780,
        220
      ]
    },
    {
      "id": "919833cb-1add-4670-86a4-466f3df925f3",
      "name": "Bright Data MCP Client for Brave Image Search",
      "type": "n8n-nodes-mcp.mcpClient",
      "position": [
        100,
        -300
      ]
    },
    {
      "id": "d90b79cc-b878-4210-8380-794cd378ec73",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        -340,
        -21
      ]
    },
    {
      "id": "f20fde43-bfb3-447a-9f43-51bf952c9d7e",
      "name": "Set the input for video search",
      "type": "n8n-nodes-base.set",
      "position": [
        -120,
        -100
      ]
    },
    {
      "id": "b25da743-0d4b-46a2-bb51-2b8e1c533ac5",
      "name": "Bright Data MCP Client for Brave Video Search",
      "type": "n8n-nodes-mcp.mcpClient",
      "position": [
        100,
        -100
      ]
    },
    {
      "id": "28e51b1c-a4f3-4d95-af12-d4bd1219cfa2",
      "name": "Set the Search Response",
      "type": "n8n-nodes-base.set",
      "position": [
        380,
        0
      ]
    },
    {
      "id": "98d38078-4708-4d22-a8be-e50a4701ea75",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        120,
        -480
      ],
      "parameters": {
        "width": 440,
        "height": 120,
        "content": "## Disclaimer\nThis template is only available on n8n self-hosted as it's making use of the community node for MCP Client."
      }
    },
    {
      "id": "43138034-35ad-43fd-b67e-69942e1b061b",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -340,
        -580
      ],
      "parameters": {
        "width": 440,
        "height": 220,
        "content": "## LLM Usages\n\nGoogle Gemini LLM is being utilized for the structured data extraction handling."
      }
    },
    {
      "id": "eb731e47-779e-40bc-8a83-126d1b03a70b",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -800,
        -980
      ],
      "parameters": {
        "width": 440,
        "height": 360,
        "content": "## Logo\n\n\n![logo](https://images.seeklogo.com/logo-png/43/1/brightdata-logo-png_seeklogo-439974.png)\n"
      }
    },
    {
      "id": "5581a950-075d-4d4d-9f97-fd65e71cc6ff",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -800,
        -580
      ],
      "parameters": {
        "width": 440,
        "height": 320,
        "content": "## Note\n\nDeals with the Brave Search by leveraging the Bright Data MCP Client.\n\n**Please make sure to set the search type with videos, images, news, all based on your search input needs**\n\n**Please ma"
      }
    },
    {
      "id": "a5afb97c-0fbf-48b1-b598-fbca46e3df96",
      "name": "Set the input fields for news search",
      "type": "n8n-nodes-base.set",
      "position": [
        -120,
        100
      ]
    },
    {
      "id": "0dcd6a1b-7968-40da-ad27-4d39fadc243a",
      "name": "Set the search criteria's",
      "type": "n8n-nodes-base.set",
      "position": [
        -560,
        0
      ]
    },
    {
      "id": "2c686701-f3fa-4bf4-bdea-b11dce7b2862",
      "name": "Bright Data MCP Client for Brave News Search",
      "type": "n8n-nodes-mcp.mcpClient",
      "position": [
        100,
        100
      ]
    },
    {
      "id": "725c7c7e-6422-4bcb-8bb1-441766741c96",
      "name": "Bright Data MCP Client for Brave All Search",
      "type": "n8n-nodes-mcp.mcpClient",
      "position": [
        100,
        300
      ]
    },
    {
      "id": "a6843bfe-f649-4ab8-9208-1d3119e811c5",
      "name": "Set the input fields for All search",
      "type": "n8n-nodes-base.set",
      "position": [
        -120,
        300
      ]
    },
    {
      "id": "c8fa6490-f0db-400c-8283-e8f9120e6481",
      "name": "Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1060,
        -180
      ]
    },
    {
      "id": "6d51e57a-1303-46a0-95ce-80d3a17c30db",
      "name": "Create a binary data for Structured Data Extract",
      "type": "n8n-nodes-base.function",
      "position": [
        1060,
        20
      ]
    },
    {
      "id": "7f5d181b-18bc-4bb4-8ae9-bc2e05137127",
      "name": "Write the structured content to disk",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        1280,
        20
      ]
    },
    {
      "id": "fa6143c9-3312-4890-a490-3bc3db355c53",
      "name": "Initiate a Webhook Notification for the Structured Data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1060,
        220
      ]
    },
    {
      "id": "cdea8e7d-f513-45fa-b7cf-3b9507d47fda",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        540,
        -220
      ],
      "parameters": {
        "width": 940,
        "height": 660,
        "content": "## Structured Data and Output Handling\n"
      }
    }
  ],
  "connections": {
    "Switch": {
      "main": [
        [
          {
            "node": "Set the input for image search",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set the input for video search",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set the input fields for news search",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set the input fields for All search",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set the Search Response": {
      "main": [
        [
          {
            "node": "Structured Data Extractor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Structured Data Extractor",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Structured Data Extractor",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Set the search criteria's": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Data Extractor": {
      "main": [
        [
          {
            "node": "Google Sheets",
            "type": "main",
            "index": 0
          },
          {
            "node": "Create a binary data for Structured Data Extract",
            "type": "main",
            "index": 0
          },
          {
            "node": "Initiate a Webhook Notification for the Structured Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set the input for image search": {
      "main": [
        [
          {
            "node": "Bright Data MCP Client for Brave Image Search",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set the input for video search": {
      "main": [
        [
          {
            "node": "Bright Data MCP Client for Brave Video Search",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Set the search criteria's",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set the input fields for All search": {
      "main": [
        [
          {
            "node": "Bright Data MCP Client for Brave All Search",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set the input fields for news search": {
      "main": [
        [
          {
            "node": "Bright Data MCP Client for Brave News Search",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Bright Data MCP Client for Brave All Search": {
      "main": [
        [
          {
            "node": "Set the Search Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Bright Data MCP Client for Brave News Search": {
      "main": [
        [
          {
            "node": "Set the Search Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Bright Data MCP Client for Brave Image Search": {
      "main": [
        [
          {
            "node": "Set the Search Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Bright Data MCP Client for Brave Video Search": {
      "main": [
        [
          {
            "node": "Set the Search Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a binary data for Structured Data Extract": {
      "main": [
        [
          {
            "node": "Write the structured content to disk",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}