Skip to main content

Research organizations with GPT‐5, Gemini, CourtListener, LegiScan and OSINT web sources

Workflow preview

Workflow preview
100%
Research organizations with GPT‐5, Gemini, CourtListener, LegiScan and OSINT web sources preview
Open on n8n.io

1. Workflow Overview

Who is this for This workflow is designed for researchers, investigators, and analysts who need to: Build comprehensive profiles of organizations from public sources Research court cases, legislati...

Best for

  • Market Research automation workflows
  • AI RAG automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.httprequesttool, @n8n/n8n-nodes-langchain.toolhttprequest, @n8n/n8n-nodes-langchain.toolthink, n8n-nodes-base.jinaaitool, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.if, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.lmchatopenrouter

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Open Paws.

Original n8n.io source

1.1 Workflow description

Title
Research organizations with GPT‐5, Gemini, CourtListener, LegiScan and OSINT web sources
Workflow name
Research organizations with GPT‐5, Gemini, CourtListener, LegiScan and OSINT web sources

Who is this for

This workflow is designed for researchers, investigators, and analysts who need to:

  • Build comprehensive profiles of organizations from public sources
  • Research court cases, legislation, and government documents related to companies
  • Verify company information across multiple authoritative databases
  • Conduct due diligence or competitive intelligence research

It's ideal for animal advocacy organizations researching factory farms and slaughterhouses, investigative journalists exposing animal cruelty, legal teams building cases against animal agriculture companies, and activists conducting corporate campaigns.

What it does

This multi-phase OSINT agent systematically researches organizations:

  1. Discovery phase: Searches multiple databases to find all relevant records
  • CourtListener for federal and state court cases
  • LegiScan for related legislation across all states
  • DocumentCloud for government documents and reports
  • Serper for web articles, news, and academic papers
  1. Verification phase: Confirms discovered records actually relate to the target company (not similar names)
  2. Prioritization phase: Scores and selects the most relevant items for deep analysis
  3. Retrieval phase: Fetches full text of selected court opinions, bills, and documents
  4. Analysis phase: Synthesizes findings into strategic insights
  5. Verification phase: Checks the final report against sources for accuracy

The workflow prevents false positives by verifying company name matches, domain connections, and jurisdiction consistency.

How to set up

  1. Import the workflow into your n8n instance
  2. Configure the required API credentials:
  • CourtListener API for court case searches
  • LegiScan API for legislation searches
  • Serper API for web searches
  • Jina AI API for article content extraction
  • OpenRouter API for AI analysis
  1. Test with a well-known company to verify API connections
  2. Activate the workflow

Example usage

{
 "companyName": "Tyson Foods",
 "companyDomain": "tysonfoods.com",
 "reportGoal": "Identify environmental violations, labor disputes, and regulatory actions in the past 5 years"
}

Requirements

  • CourtListener API key (free tier available)
  • LegiScan API key
  • Serper API key
  • Jina AI API key
  • OpenRouter API key

How to customize

  • Add data sources: Integrate SEC filings, USDA inspection reports, EPA violations databases, or OSHA records
  • Adjust verification criteria: Modify the company matching logic for subsidiaries or DBAs (useful for tracking complex corporate structures in animal agriculture)
  • Focus research scope: Limit searches to specific jurisdictions or time periods relevant to your campaign
  • Change output format: Customize the final report structure for campaign briefings or legal filings
  • Add export options: Connect to document generation tools for formatted reports to share with coalition partners

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Court Listener Discovery

Type / Role
n8n-nodes-base.httpRequestTool - httpRequestTool
Config choices
Version 4.2

Block 2 - Google Search Discovery

Type / Role
@n8n/n8n-nodes-langchain.toolHttpRequest - toolHttpRequest
Config choices
Version 1.1

Block 3 - LegiScan Discovery

Type / Role
n8n-nodes-base.httpRequestTool - httpRequestTool
Config choices
Version 4.2

Block 4 - DocumentCloud Dsicovery

Type / Role
n8n-nodes-base.httpRequestTool - httpRequestTool
Config choices
Version 4.2

Block 5 - Court Listener Retrieveal

Type / Role
n8n-nodes-base.httpRequestTool - httpRequestTool
Config choices
Version 4.2

Block 6 - Think Tool Prioritization

Type / Role
@n8n/n8n-nodes-langchain.toolThink - toolThink
Config choices
Version 1

Block 7 - LegiScan Retrieval

Type / Role
n8n-nodes-base.httpRequestTool - httpRequestTool
Config choices
Version 4.2

Block 8 - DocumentCloud Retrieval

Type / Role
n8n-nodes-base.httpRequestTool - httpRequestTool
Config choices
Version 4.2

Block 9 - Jina URL Text Extraction

Type / Role
n8n-nodes-base.jinaAiTool - jinaAiTool
Config choices
Version 1

Block 10 - Think Tool Analysis

Type / Role
@n8n/n8n-nodes-langchain.toolThink - toolThink
Config choices
Version 1

Block 11 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 12 - If hallucinations present

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 13 - Set Report

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 14 - Retry if Tools Not Used

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 15 - Retry if Tools Not Used1

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 16 - Retry if Response Empty

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 17 - Retry if Response Empty1

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 18 - Auto Fallback

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Block 19 - Gemini 2.5 Flash

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Block 20 - Auto Fallback1

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Block 21 - Auto Fallback2

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Block 22 - Gemini 2.5 Flash2

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Block 23 - Auto Fallback3

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Block 24 - Auto Fallback4

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Showing the first 24 of 61 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Research organizations with GPT‐5, Gemini, CourtListener, LegiScan and OSINT web sources
Complexity advanced
Nodes 61
Categories Market Research, AI RAG
Author Open Paws
Published 06 Jan 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/12506/12506.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Research organizations with GPT‐5, Gemini, CourtListener, LegiScan and OSINT web sources do?

Who is this for This workflow is designed for researchers, investigators, and analysts who need to: Build comprehensive profiles of organizations from public sources Research court cases, legislati...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research, AI RAG use case.