Automation library · Research and reporting

Legal Case Research Extractor, Data Miner with Bright Data MCP

Started by an event in a connected app. It calls services over plain HTTP rather than through connectors. It hands the judgement calls to Gemini. 16 steps, 2 loops or waits: a working afternoon to understand properly.

MediumCalls a model: Gemini

16 stepsMedium: a working afternoon
0Branches: places the flow splits
2Loops or waits
0Services by connector: it calls them over plain HTTP

The flow

Starts it 1Model 5Logic 5Service 5

The steps in the order they run, from what starts it.

  1. 1When clicking ‘Test workflow’Manual triggerStarts it
  2. 2Structured Output ParserOutput Parser StructuredModel
  3. 3Google Gemini Chat Model For Case Data ExtractLm Chat Google GeminiModel
  4. 4Google Gemini Chat Model for HTML to Textual Data Extract Within the LoopLm Chat Google GeminiModel
  5. 5List all tools for Bright DataMcp ClientService
  6. 6Case ExtractorChain LlmModel
  7. 7HTML to Textual Data Extract Within LoopChain LlmModel
  8. 8Set the Legal Case Research URLSetLogic
  9. 9Code to output the collection of casesCodeLogic
  10. 10Create a binary data for LinkedIn company info extractFunctionLogic
  11. 11Webhook Notification for HTML to Textual Data Extract Within the LoopHttp RequestService
  12. 12Bright Data MCP Client For Legal Case ResearchMcp ClientService
  13. 13Loop Over ItemsSplit In BatchesLogic
  14. 14Write the case content to diskRead Write FileService
  15. 15WaitWaitLogic
  16. 16Bright Data MCP Client For Legal Case Research Within LoopMcp ClientService

How it's built

Starts on
An event in a connected app
Steps
16, 2 loops or waits
Size
Medium: a working afternoon
Connects to
Nothing by connector; it calls services over plain HTTP
Model
Gemini

Questions

What does it need to run?

An n8n account, and a key for Gemini. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

Yes. It calls Gemini. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 16 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 16 steps before you point it at anything that matters.