Generate structured research briefs for content topics with OpenRouter
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.
What to replace before upgrading
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Research Agent (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (4)
- Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - Code
n8n-nodes-base.code - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter
What it does
Quick Overview This subworkflow is called by a parent n8n workflow to generate structured research notes from a provided topic and brief using an OpenRouter chat model, then returns the original input merged with a parsed research JSON object for downstream writing steps. How it works 1. Receives topic and brief data from a parent workflow via an Execute Workflow trigger. 2. Uses an OpenRouter-powered AI agent to generate structured research notes as JSON based on the provided topic and brief. 3. Parses the agent’s output into JSON, falls back to an error object if parsing fails, and merges the result back into the original pipeline state. 4. Returns the combined data to the parent workflow with a research field containing key facts, angles, sources to mention, and synthesized notes. Setup 1. Add OpenRouter API credentials and attach them to the OpenRouter Chat Model used by the AI agent. 2. Ensure the parent workflow passes topic and brief fields when calling this subworkflow via Execute Workflow. 3. Save and activate this subworkflow so the parent workflow can execute it.