Write cited research reports from DuckDuckGo search results
UnknownWhat this workflow does
This AI workflow has 22 nodes and runs when someone submits an n8n form (“Research a question”). Along the way it connects OpenRouter Chat Model and Duckduckgo Search (community).
How it runs
Trigger: When someone submits an n8n form (“Research a question”).
- Research settings (Code): runs custom JavaScript code
- Plan sub-questions (Basic LLM Chain): sends a prompt to an LLM, with model: OpenRouter model; output parser: Sub-question format
- Cap the sub-questions (Code): runs custom JavaScript code
- Loop over sub-questions (Loop Over Items (Split in Batches)): loops over the items in batches
- Number the sources (Code): runs custom JavaScript code
- Search DuckDuckGo (Duck Duck Go): search
- Enough evidence? (If): checks a condition and branches into true / false
- Grade the evidence (Code): runs custom JavaScript code
- Extract quoted findings (Basic LLM Chain): sends a prompt to an LLM, with model: OpenRouter model; output parser: Finding format
- Explain why there is no report (Code): runs custom JavaScript code
…plus 8 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-duckduckgo-search is verified or supports 3.0 (used in Search DuckDuckGo).
Nodes used (11)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Code
n8n-nodes-base.code - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Duck Duck Go
n8n-nodes-duckduckgo-search.duckDuckGo - Wait
n8n-nodes-base.wait - If
n8n-nodes-base.if - Markdown
n8n-nodes-base.markdown - n8n Form
n8n-nodes-base.form
From the author
Quick overview Ask a question in a form; this workflow searches the web with DuckDuckGo and has an OpenRouter model write a report in which every claim cites a page it read, with every quote checked against its source. Self-hosted n8n only. How it works 1.…