Research AI Agent Team with auto citations using OpenRouter and Perplexity

Go to Workflow
4,359 views
Built by Derek Cheung Derek Cheung
Created on June 05, 2026

Description

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 proper citations and credible sources.

How it works

Multi-agent team:

Research Leader: Plans and conducts initial research, creating a table of contents.
Project Planner: Breaks down the table of contents into manageable sections.
Research Assistants: Multiple agents that conduct in-depth research on assigned sections.
Editor: Compiles and refines the final article, ensuring coherence and proper citations.

Key features:
Utilizes Perplexity AI for internet search and citation capabilities
Produces well-structured articles with proper citations
Customizable parameters (topic, tone, word count, number of sections)


Step by step setup:

Get account from OpenRouter.ai to access Perplexity API
Set API key in the Perplexity API node
Credential key name : Authorization and key value Bearer <api-key value>

Nodes Used (8)

AI Agent
@n8n/n8n-nodes-langchain.agent
Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm
Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow
Code
n8n-nodes-base.code
Ghost
n8n-nodes-base.ghost
HTTP Request
n8n-nodes-base.httpRequest
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured