Templates / Research AI agent team with auto citations using OpenRouter and Perplexity

Research AI agent team with auto citations using OpenRouter and Perplexity

Needs changes

by Derek Cheung ✓ · 4,650 views · created 2024-12-05 · Content Creation, AI RAG

Needs 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 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).

  1. Research Leader 🔬 (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (Perplexity_tool)
  2. Perplexity API (HTTP Request): calls an HTTP API
  3. Project Planner (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (Perplexity_tool); output parser: Structured Output Parser
  4. Response (Edit Fields (Set)): sets or maps fields
  5. Delegate to Research Assistants (Split Out): splits a list into separate items
  6. Merge: merges the data from its input branches
  7. Research Assistant (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (Perplexity_tool)
  8. Final article text (Code): runs custom JavaScript code
  9. Editor (AI Agent): runs an AI agent, with model: OpenAI Chat Model
  10. 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

GhostOpenAI Chat Model

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.0Replace 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)

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…

Excerpt from Derek Cheung's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.