Skip to content
FlowHubFluxonLab
A
AI Automationfree

Run a multi-agent research and publishing pipeline with GPT-4o, Tavily and Notion

by Mychel Garzonadapted from n8n official workflow galleryUpdated Aug 2026
RequiresAAI AgentCCodeHTTP RequestHTTP RequestHTTP Request ToolHTTP Request ToolNotionNotionOpenAI Chat ModelOpenAI Chat Model
Share Post Share
FoWhen Form SubmittedWhen Form Submi…CoInitialize State VariablesInitialize Stat…CoResolve Tavily ConfigurationResolve Tavily …AgResearcher AgentTHPerform Tavily SearchPerform Tavily …CoVerify Research OutputVerify Research…AgWriter AgentCoVerify Draft ContentVerify Draft Co…CoBreak on Writer ReviewBreak on Writer…IfRoute for Circuit Breaker StatusRoute for Circu…AgReviewer AgentCoVerify Review OutputVerify Review O…IfCheck Approval StatusCheck Approval …CoConstruct Notion PageConstruct Notio…Generate Notion PageGenerate Notion…CoPrepare Notion Block BatchesPrepare Notion …SeSet State FieldsMeCombine Page ID with StateCombine Page ID…SIProcess in Batch LoopProcess in Batc…HRAppend Blocks to NotionAppend Blocks t…CoHandle Batch ErrorsHandle Batch Er…CoVerify Additional BatchesVerify Addition…IfCheck Wait RequirementCheck Wait Requ…WaWait 350 SecondsCoFinalize Publishing ProcessFinalize Publis…CoConstruct Failure AlertConstruct Failu…IfCheck for FailuresCheck for Failu…HRAdd Warning NotificationAdd Warning Not…ErWhen Error OccursWhen Error Occu…CoCreate Error LogLog to Notion on ErrorLog to Notion o…CoExtract Combined StateExtract Combine…NOComplete Pipeline ProcessComplete Pipeli…OpenAI GPT-4 Agent 1OpenAI GPT-4 Ag…OpenAI GPT-4 Agent 2OpenAI GPT-4 Ag…OpenAI GPT-4 Agent 3OpenAI GPT-4 Ag…SeSet Configuration ReferencesSet Configurati…1234567891011121314151617181920212223242526272829303132333435363738
1/5
FLOWS
STEPS · 38
Starts on an incoming request

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 directly to Notion with full audit metadata. How it works A form submission captures the research topic, content format (blog post, exec summary, or LinkedIn post), target audience, and maximum revision cycles allowed before the circuit breaker fires. The Researcher Agent uses GPT-4o and Tavily Search to gather authoritative sources, extract key facts and contradictions, and produce a validated research brief. Search depth and result count are automatically scaled to the requested format. The Writer Agent receives the research brief and produces a structured draft in the correct format. On revision cycles it also receives the Reviewer's specific rejection notes and must address them directly. A Circuit Breaker sits between the Writer and Reviewer. If the number of Reviewer rejections reaches the user-defined maximum, the draft is force-approved and the pipeline proceeds to publishing without another LLM call.

Tags

n8nreference-onlyagentlm-chat-open-ainotiontool-http-request
Connects
AAI AgentCCodeWHTTP RequesthttprequesttoolHTTP Request ToolnotionNotionopenaichatmodelOpenAI Chat Model
CategoryAI Automation
Triggermanual
Complexityadvanced
Nodes37
AddedJun 27, 2026

Related workflows

See all AI Automation
ACgmailsheets
free

Analyze YouTube comments with OpenAI, Google Sheets, and Gmail

Quick overview This workflow monitors a Google Sheets list of YouTube video IDs, fetches video details and top comments from the YouTube Data API, analyzes the comments with OpenAI into structured sentiment and themes, emails an HTML report via Gmail, and writes the results back to Google Sheets. How it works Triggers every minute when a row in Google Sheets is added or updated. Reads the video ID and status from the row and continues only if the status is set to “Pending”. Calls the YouTube Data API to fetch the video’s metadata and the top comment threads for that video. Flattens the comment threads, calculates basic stats (comment count and average likes), and compiles a limited comment text block for analysis. If comments exist, sends the compiled comments and video title to OpenAI to generate a structured analysis (sentiment score, sentiment breakdown, themes, questions, feedback, insights, and summary). Builds an HTML email report from the structured results, sends it to the configured recipient with Gmail, and updates the Google Sheet row with the analysis fields; if no comments exist, marks the row as “No comments”. Setup Create or duplicate a Google Sheet with at least “Vi

by Dr. Firas
ACDgmail
free

AI: Summarize podcast episode and enhance using Wikipedia

The workflow automates the process of creating a summarized and enriched podcast digest, which is then sent via email. Note that to use this template, you need to be on n8n version 1.19.4 or later.

by n8n Team
ACembeddingsopenaiopenaichatmodel
free

Handle WhatsApp sales inquiries with OpenAI, Pinecone, Google Calendar, and Slack

Quick overview This workflow handles inbound WhatsApp Business messages with an OpenAI-powered sales agent that uses Pinecone RAG for product answers and Google Calendar tools for scheduling, then either replies on WhatsApp or hands the conversation to Slack, with Slack-based error alerts. How it works Triggers on every inbound WhatsApp Business message and checks whether the payload contains a text body. Drops non-text messages (such as images or voice notes) and continues only with text conversations. Uses an OpenAI chat model with per-customer session memory to generate a concise sales reply and decide whether a human handoff is needed. Lets the agent query a Pinecone-backed product catalog via OpenAI embeddings to answer pricing, specs, and availability questions. Lets the agent check availability and book appointments in Google Calendar when the customer requests scheduling. Parses the agent’s HANDOFF flag and either posts the customer message plus draft reply to a Slack channel or sends the reply back to the customer on WhatsApp. Sends a Slack alert to an ops channel if any step in the workflow fails. Setup Connect WhatsApp Business Cloud credentials and set the WhatsApp Phon

by Redowan Ahmed Farhan