π¬ Generate structured research briefs for content topics with OpenRouter
β‘ 31 views Β· π¬ Content Creation & Video
Description
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
- Receives topic and brief data from a parent workflow via an Execute Workflow trigger.
- Uses an OpenRouter-powered AI agent to generate structured research notes as JSON based on the provided topic and brief.
- 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.
- Returns the combined data to the parent workflow with a
researchfield containing key facts, angles, sources to mention, and synthesized notes.
Setup
- Add OpenRouter API credentials and attach them to the OpenRouter Chat Model used by the AI agent.
- Ensure the parent workflow passes
topicandbrieffields when calling this subworkflow via Execute Workflow. - Save and activate this subworkflow so the parent workflow can execute it.
π Nodes Used
Execute Workflow Trigger, AI Agent, OpenRouter Chat Model
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File