Research AI agent team with auto citations using OpenRouter and Perplexity
Needs changesWhat this workflow does
This AI workflow has 21 nodes and runs when someone submits an n8n form (plus 1 other trigger). Along the way it connects Ghost and OpenAI Chat Model.
How it runs
Trigger: When someone submits an n8n form (plus 1 other trigger).
- Research Leader 🔬 (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (Perplexity_tool)
- Perplexity API (HTTP Request): calls an HTTP API
- Project Planner (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (Perplexity_tool); output parser: Structured Output Parser
- Response (Edit Fields (Set)): sets or maps fields
- Delegate to Research Assistants (Split Out): splits a list into separate items
- Merge: merges the data from its input branches
- Research Assistant (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (Perplexity_tool)
- Final article text (Code): runs custom JavaScript code
- Editor (AI Agent): runs an AI agent, with model: OpenAI Chat Model
- Create title (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model
…plus 1 more step. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Research Leader 🔬 (v1.6), Research Assistant (v1.6), Project Planner (v1.7)…: replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Research Leader 🔬 (v1.6), Research Assistant (v1.6), Project Planner (v1.7), Editor (v1.6) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (13)
- Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code - n8n Form Trigger
n8n-nodes-base.formTrigger - Ghost
n8n-nodes-base.ghost - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Edit Fields (Set)
n8n-nodes-base.set - Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow - HTTP Request
n8n-nodes-base.httpRequest - AI Agent
@n8n/n8n-nodes-langchain.agent - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Split Out
n8n-nodes-base.splitOut - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
From the author
Purpose of workflow: This AI-powered workflow is designed to automatically generate comprehensive, well-researched articles on any given topic. It utilizes a team of AI agents to streamline the research and writing process, producing high-quality content with…