{
  "name": "Legal Case Research Extractor, Data Miner with Bright Data MCP & Google Gemini",
  "nodes": [
    {
      "id": "9e9a27ce-b95c-4ecd-b3c4-97aba420ce45",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -520,
        140
      ]
    },
    {
      "id": "3f9e30b5-7eb3-454d-a831-07be51f7a326",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -60,
        40
      ],
      "parameters": {
        "width": 440,
        "height": 320,
        "content": "## Bright Data Legal Case Research Scraper"
      }
    },
    {
      "id": "8f1934bf-ccec-4b25-b6cc-7607dcbdf798",
      "name": "List all tools for Bright Data",
      "type": "n8n-nodes-mcp.mcpClient",
      "position": [
        -300,
        140
      ]
    },
    {
      "id": "f8c4804a-85ad-462c-913d-e0bc5242bc74",
      "name": "Create a binary data for LinkedIn company info extract",
      "type": "n8n-nodes-base.function",
      "position": [
        2440,
        60
      ]
    },
    {
      "id": "c616db9f-fcf3-4f9d-b60f-a16c9da89456",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1220,
        -180
      ],
      "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": "048c1093-ea88-441c-98fa-a2d003ab6b8d",
      "name": "Set the Legal Case Research URL",
      "type": "n8n-nodes-base.set",
      "position": [
        -20,
        140
      ]
    },
    {
      "id": "8dc0a8cd-e4d9-4252-9dd2-94ee95d698e9",
      "name": "Bright Data MCP Client For Legal Case Research",
      "type": "n8n-nodes-mcp.mcpClient",
      "position": [
        200,
        140
      ]
    },
    {
      "id": "f3ea0d19-703b-4f99-955c-122162065363",
      "name": "Case Extractor",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        600,
        140
      ]
    },
    {
      "id": "a3fe5ce7-3a91-459d-8ef8-17a06fbef12a",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        800,
        360
      ]
    },
    {
      "id": "5fd6d0a3-46ca-4184-bc5c-dfc0966f0538",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1320,
        140
      ]
    },
    {
      "id": "74a02ac0-859d-4611-aeb0-021a654c92b8",
      "name": "Bright Data MCP Client For Legal Case Research Within Loop",
      "type": "n8n-nodes-mcp.mcpClient",
      "position": [
        1860,
        160
      ]
    },
    {
      "id": "beb67c30-dd39-4c7d-94f8-853410dec09b",
      "name": "HTML to Textual Data Extract Within Loop",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        2080,
        160
      ]
    },
    {
      "id": "b7fc74e5-4165-4b1a-9c0a-27565302c0e1",
      "name": "Webhook Notification for HTML to Textual Data Extract Within the Loop",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2440,
        260
      ]
    },
    {
      "id": "07b78de1-fdc8-4233-a231-37258fa5d1f0",
      "name": "Write the case content to disk",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        2700,
        60
      ]
    },
    {
      "id": "ff687082-9e3d-4043-9aa6-29e3029499d4",
      "name": "Google Gemini Chat Model For Case Data Extract",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        580,
        360
      ]
    },
    {
      "id": "0057d772-732e-4e47-8ab8-eebe140df692",
      "name": "Code to output the collection of cases",
      "type": "n8n-nodes-base.code",
      "position": [
        980,
        140
      ]
    },
    {
      "id": "c843170b-e360-4eea-853c-ef38c9f3affe",
      "name": "Google Gemini Chat Model for HTML to Textual Data Extract Within the Loop",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        2100,
        360
      ]
    },
    {
      "id": "90f4670a-1fca-4826-9017-64a31f29cbc2",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1220,
        0
      ],
      "parameters": {
        "width": 1660,
        "height": 520,
        "content": "## Bright Data Legal Case Research Scraper\n\nLoop through and perform the data extraction using MCP and LLMs"
      }
    },
    {
      "id": "58aac68b-2598-465b-ab3c-f5c0ebcdb595",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -60,
        -260
      ],
      "parameters": {
        "width": 440,
        "height": 220,
        "content": "## LLM Usages\n\nOpenAI 4o mini LLM is being utilized for the structured data extraction handling."
      }
    },
    {
      "id": "14bbbc73-06cd-4513-b9e6-2aebb5009c3d",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -580,
        -860
      ],
      "parameters": {
        "width": 400,
        "height": 400,
        "content": "## Logo\n\n\n![logo](https://images.seeklogo.com/logo-png/43/1/brightdata-logo-png_seeklogo-439974.png)\n"
      }
    },
    {
      "id": "96d74c50-074e-4b83-9422-ff2ce56bd55d",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -580,
        -360
      ],
      "parameters": {
        "width": 400,
        "height": 320,
        "content": "## Note\n\nDeals with the Legal Case data extraction by utilizing the Bright Data MCP and OpenAI GPT 4o LLM.\n\n**Please make sure to set the input fields node with the Legal case URL\n\nPlease make sure to"
      }
    },
    {
      "id": "08c6a217-5773-4ebc-ba6e-326de99e90e5",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        1580,
        160
      ]
    }
  ],
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Bright Data MCP Client For Legal Case Research Within Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Case Extractor": {
      "main": [
        [
          {
            "node": "Code to output the collection of cases",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Case Extractor",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "List all tools for Bright Data": {
      "main": [
        [
          {
            "node": "Set the Legal Case Research URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Write the case content to disk": {
      "main": [
        []
      ]
    },
    "Set the Legal Case Research URL": {
      "main": [
        [
          {
            "node": "Bright Data MCP Client For Legal Case Research",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "List all tools for Bright Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code to output the collection of cases": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTML to Textual Data Extract Within Loop": {
      "main": [
        [
          {
            "node": "Create a binary data for LinkedIn company info extract",
            "type": "main",
            "index": 0
          },
          {
            "node": "Webhook Notification for HTML to Textual Data Extract Within the Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Bright Data MCP Client For Legal Case Research": {
      "main": [
        [
          {
            "node": "Case Extractor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model For Case Data Extract": {
      "ai_languageModel": [
        [
          {
            "node": "Case Extractor",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Create a binary data for LinkedIn company info extract": {
      "main": [
        [
          {
            "node": "Write the case content to disk",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Bright Data MCP Client For Legal Case Research Within Loop": {
      "main": [
        [
          {
            "node": "HTML to Textual Data Extract Within Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook Notification for HTML to Textual Data Extract Within the Loop": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model for HTML to Textual Data Extract Within the Loop": {
      "ai_languageModel": [
        [
          {
            "node": "HTML to Textual Data Extract Within Loop",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}