Research US legal regulations with CourtListener, LegiScan, OpenRouter and web search
Needs changesWhat this workflow does
This AI workflow has 42 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects HTTP Request, Jina AI and OpenRouter Chat Model. It also calls google.serper.dev over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Step 1: Discovery (AI Agent): runs an AI agent, with model: Qwen, Auto Fallback; 5 tools (Plural Discovery, LegiScan Discovery, Google Search Discovery, Court Listener Discovery…)
- Retry if Tools Not Used (If): checks a condition and branches into true / false
- Step 2: Prioritization (AI Agent): runs an AI agent, with model: Sonnet 4., Auto Fallback; 1 tool (Think Tool)
- Retry if Response Empty (If): checks a condition and branches into true / false
- Step 3: Retrieval (AI Agent): runs an AI agent, with model: Qwen, Auto Fallback; 5 tools (Plural Retrieval, LegiScan Retrieval, DocumentCloud Retrieval, Jina URL Text Extraction…)
- Retry if Tools Not Used (If): checks a condition and branches into true / false
- Step 4: Report Writing (AI Agent): runs an AI agent, with model: Opus, Auto Fallback; 1 tool (Think Tool)
- Retry if Response Empty (If): checks a condition and branches into true / false
- Set Report (Edit Fields (Set)): sets 2 fields: Final Report, Retrieved Documents
- Step 5: Verification (Basic LLM Chain): sends a prompt to an LLM, with model: Sonnet 4., Auto Fallback; output parser: Structured Output Parser
…plus 5 more steps. See the full node list below.
Services it uses
HTTP calls to: google.serper.dev
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- HTTP Request Tool (legacy) in Google Search Discovery: replace with HTTP Request node connected to the AI Agent's Tool input.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| HTTP Request Tool (legacy) Google Search Discovery | HTTP Request node connected to the AI Agent's Tool input |
Nodes used (11)
- Http Request Tool
n8n-nodes-base.httpRequestTool - HTTP Request Tool
@n8n/n8n-nodes-langchain.toolHttpRequest - Think Tool
@n8n/n8n-nodes-langchain.toolThink - Jina Ai Tool
n8n-nodes-base.jinaAiTool - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Webhook
n8n-nodes-base.webhook
From the author
Who is this for This workflow is designed for legal professionals, policy analysts, and compliance teams who need to: - Research case law, legislation, and regulatory developments on specific topics - Build comprehensive legal intelligence reports from…