Run a multi-agent research and publishing pipeline with GPT-4o, Tavily and Notion
Needs changesWhat this workflow does
This AI workflow has 37 nodes and runs when someone submits an n8n form (“Multi-Agent Research Pipeline”) (plus 1 other trigger). Along the way it connects HTTP Request, Notion and OpenAI Chat Model. It also calls api.tavily.com over HTTP.
How it runs
Trigger: When someone submits an n8n form (“Multi-Agent Research Pipeline”) (plus 1 other trigger).
- Initialize State Variables (Code): runs custom JavaScript code
- Create Error Log (Code): runs custom JavaScript code
- Resolve Tavily Configuration (Code): runs custom JavaScript code
- Log to Notion on Error (Notion): uses Notion
- Researcher Agent (AI Agent): runs an AI agent, with model: OpenAI GPT-4 Agent; 1 tool (Perform Tavily Search)
- Verify Research Output (Code): runs custom JavaScript code
- Writer Agent (AI Agent): runs an AI agent, with model: OpenAI GPT-4 Agent
- Verify Draft Content (Code): runs custom JavaScript code
- Break on Writer Review (Code): runs custom JavaScript code
- Route for Circuit Breaker Status (If): checks a condition and branches into true / false
…plus 20 more steps. See the full node list below.
Services it uses
HTTP calls to: api.tavily.com
Before you upgrade to n8n 3.0
2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:
- AI Agent v1 (old agent modes) in Researcher Agent (v1.7), Writer Agent (v1.7), Reviewer Agent (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
- HTTP Request Tool (legacy) in Perform Tavily Search: replace with HTTP Request node connected to the AI Agent's Tool input.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Researcher Agent (v1.7), Writer Agent (v1.7), Reviewer Agent (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
| HTTP Request Tool (legacy) Perform Tavily Search | HTTP Request node connected to the AI Agent's Tool input |
Nodes used (14)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - HTTP Request Tool
@n8n/n8n-nodes-langchain.toolHttpRequest - If
n8n-nodes-base.if - Notion
n8n-nodes-base.notion - Edit Fields (Set)
n8n-nodes-base.set - Merge
n8n-nodes-base.merge - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - HTTP Request
n8n-nodes-base.httpRequest - Wait
n8n-nodes-base.wait - Error Trigger
n8n-nodes-base.errorTrigger - No Operation, do nothing
n8n-nodes-base.noOp - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
From the author
Quick overview Three specialized AI agents: Researcher, Writer, and Reviewer, collaborate autonomously to research a topic, draft content, and quality-check it through a self-correcting review loop with a circuit breaker. Approved content is published…