Skip to main content

Research AI agent team with auto citations using OpenRouter and Perplexity

Workflow preview

Workflow preview
100%
Research AI agent team with auto citations using OpenRouter and Perplexity preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 res...

Best for

  • Content Creation automation workflows
  • AI RAG automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.merge, n8n-nodes-base.code, n8n-nodes-base.formtrigger, n8n-nodes-base.ghost, @n8n/n8n-nodes-langchain.chainllm, n8n-nodes-base.stickynote, n8n-nodes-base.executeworkflowtrigger, n8n-nodes-base.set

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Derek Cheung.

Original n8n.io source

1.1 Workflow description

Title
Research AI agent team with auto citations using OpenRouter and Perplexity
Workflow name
Research AI agent team with auto citations using OpenRouter and Perplexity

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:

  1. Research Leader: Plans and conducts initial research, creating a table of contents.
  2. Project Planner: Breaks down the table of contents into manageable sections.
  3. Research Assistants: Multiple agents that conduct in-depth research on assigned sections.
  4. 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:

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

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Merge chapters title and text

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 2.1

Block 2 - Final article text

Type / Role
n8n-nodes-base.code - code
Config choices
Version 1

Block 3 - n8n Form Trigger

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.1

Block 4 - Ghost

Type / Role
n8n-nodes-base.ghost - ghost
Config choices
Version 1

Block 5 - Create title

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.4

Block 6 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Execute Workflow Trigger

Type / Role
n8n-nodes-base.executeWorkflowTrigger - executeWorkflowTrigger
Config choices
Version 1

Block 12 - Response

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 13 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Perplexity_tool

Type / Role
@n8n/n8n-nodes-langchain.toolWorkflow - toolWorkflow
Config choices
Version 1.2

Block 15 - Perplexity_tool1

Type / Role
@n8n/n8n-nodes-langchain.toolWorkflow - toolWorkflow
Config choices
Version 1.2

Block 16 - Perplexity API

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 17 - Research Leader 🔬

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.6

Block 18 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 19 - Delegate to Research Assistants

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 20 - Research Assistant

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.6

Block 21 - Project Planner

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.7

Block 22 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1

Block 23 - OpenAI Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1

Block 24 - OpenAI Chat Model2

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1

Showing the first 24 of 28 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Research AI agent team with auto citations using OpenRouter and Perplexity
Complexity advanced
Nodes 28
Categories Content Creation, AI RAG
Author Derek Cheung
Published 05 Dec 2024

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2607/2607.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Research AI agent team with auto citations using OpenRouter and Perplexity do?

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 res...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, AI RAG use case.