Host Your Own AI Deep Research Agent with n8n, Apify and OpenAI o3 — Workflow n8n

Élevé complexité Déclencheur64 nœuds AI👁 47,644 vuespar Jimleuk

Aperçu

This template attempts to replicate OpenAI's DeepResearch feature which, at time of writing, is only available to their pro subscribers.

> An agent that uses reasoning to synthesize large amount of online information and complete multi-step research tasks for you. Source

Though the inner workings of DeepResearch have not been made public, it is presumed the feature relies on the ability to deep search the web, scrape web content and invoking reasoning models to generate reports. All of whic

Nœuds utilisés

HTTP RequestNotionCodeBasic LLM ChainOpenAI Chat ModelStructured Output ParserGoogle Gemini Chat Model

Aperçu du workflow

2. Ask Clarifying Questions
Read more about form nodes
To handle the clarification questions generated by the
6. Perform DeepSearch Loop
Learn more about the Looping in n8n
The key of the Deep Research flow is its extensive data
3. Create Empty Report Page in Notion
Read more about the Notion node
Some thought was given where to upload the final
4. Trigger DeepResearch Asynchronously
Learn more about the Execute Trigger node
n8n handles asynchronous job
7. Generate Search Queries
Learn more about the Basic LLM node
Much like a human researcher, the
8. Web Search and Extracting Web Page Content
[Read more about the HTTP Request node](https://docs.n8
5. Set Report to In-Progress
Read more about the Notion node
9. Compile Learnings with Reasoning Model
Read more about the Basic LLM node
With our gathered so
10. Generate DeepSearch Report using Learning
Read more about the Basic LLM node
Finally! After
11. Reformat Report as Notion Blocks
Learn more about the Markdown node
To write our report to our Notion page, we'l
13. Update Report in Notion
Read more about the HTTP request node
In this step, we can use the Notion API to add
1. Let's Research!
Learn more about the form trigger node
n8n forms are a really nice way to get our frontend up
12. Append URL Sources List
Read more about the Code node
For our source URLs, we'll manually compose the Notion
Not using forms?
Feel free ot swap this out for chat or even webhooks to
🚏 The Subworkflow Event Pattern
If you're new to n8n, this advanced technique might nee
Recursive Looping
The recursive looping implemented for this workflow is
n8n DeepResearcher
This template attempts to replicate OpenAI's DeepResear
Though the inner workings of DeepRes
![](https://res.cloudinary.com/daglih2g8/imag
UPDATE APIFY CREDENTIAL HERE!
UPDATE NOTION CREDENTIAL HERE!
Self-hosting n8n? Consider using one of these
This template uses an LLM to convert markdown to Notion
modelmodelmodelmodelmodelmodelparserparserparserparser
Structured Output Parser
S
Set Variables
OpenAI Chat Model
OpenAI Chat Model1
OpenAI Chat Model2
Structured Output Parser1
O
On form submission
Generate SERP Queries
Structured Output Parser2
OpenAI Chat Model3
S
Set Initial Query
S
SERP to Items
I
Item Ref
R
Research Goal + Learnings
A
Accumulate Results
D
DeepResearch Results
R
Results to Items
S
Set Next Queries
F
For Each Query...
F
Feedback to Items
A
Ask Clarity Questions
F
For Each Question...
D
DeepResearch Subworkflow
Clarifying Questions
E
End Form
I
Initiate DeepResearch
E
Execution Data
J
JobType Router
OpenAI Chat Model4
G
Get Initial Query
Structured Output Parser4
Create Row
Report Page Generator
I
Is Depth Reached?
G
Get Research Results
Get Existing Row
Set In-Progress
Set Done
T
Tags to Items
C
Convert to HTML
H
HTML to Array
Notion Block Generator
Google Gemini Chat Model
P
Parse JSON blocks
Upload to Notion Page
Get Existing Row1
DeepResearch Report
DeepResearch Learnings
G
Generate Report
G
Generate Learnings
C
Confirmation
R
Research Request
V
Valid Blocks
A
Append Blocks
URL Sources to Lists
E
Empty Response
H
Has Content?
C
Combine & Send back to L…
F
For Each Block...
V
Valid Results
RAG Web Browser
G
Get Markdown + URL
I
Is Apify Auth Error?
S
Stop and Error
64 nodes68 edges

Comment ça fonctionne

  1. 1

    Déclencheur

    Le workflow démarre avec un déclencheur déclencheur.

  2. 2

    Traitement

    Les données transitent par 64 nœuds, connecting aggregate, chainllm, code.

  3. 3

    Sortie

    Le workflow termine son automatisation et livre le résultat à la destination configurée.

Détails des nœuds (64)

HT

HTTP Request

httpRequest

#1
NO

Notion

notion

#2
CO

Code

code

#3
BA

Basic LLM Chain

n8n-nodes-langchain.chainLlm

#4
OP

OpenAI Chat Model

n8n-nodes-langchain.lmChatOpenAi

#5
ST

Structured Output Parser

n8n-nodes-langchain.outputParserStructured

#6
GO

Google Gemini Chat Model

n8n-nodes-langchain.lmChatGoogleGemini

#7

Comment importer ce workflow

  1. 1Cliquez sur le bouton Télécharger JSON à droite pour enregistrer le fichier du workflow.
  2. 2Ouvrez votre instance n8n. Accédez à Workflows → Nouveau → Importer depuis un fichier.
  3. 3Sélectionnez le fichier host-your-own-ai-deep-research-agent-with-n8n-apify-and-openai-o3 téléchargé et cliquez sur Importer.
  4. 4Configurez les identifiants pour chaque nœud de service (clés API, OAuth, etc.).
  5. 5Cliquez sur Tester le workflow pour vérifier que tout fonctionne, puis activez-le.

Ou collez directement dans n8n → Importer depuis JSON :

{ "name": "Host Your Own AI Deep Research Agent with n8n, Apify and OpenAI o3", "nodes": [...], ...}

Intégrations

aggregatechainllmcodeexecuteworkflowexecuteworkflowtriggerexecutiondatafilterformformtriggerhttprequestiflmchatgooglegeminilmchatopenaimarkdownmergenotionoutputparserstructuredsetsplitinbatchessplitout

Obtenir ce workflow

Téléchargez et importez en un clic

Télécharger JSONVoir sur n8n.io
Nœuds64
Complexitéhigh
Déclencheurtrigger
Vues47,644
CatégorieAI

Créé par

Jimleuk

Jimleuk

@jimleuk

Tags

aggregatechainllmcodeexecuteworkflowexecuteworkflowtriggerexecutiondatafilterformformtriggerhttprequest

Nouveau sur n8n ?

n8n est un outil d'automatisation de workflows gratuit et open-source. Hébergez-le vous-même ou utilisez la version cloud.

Obtenir n8n gratuitement →

Related AI Workflows

AGCOFIGM+10
high

Automate Digital Product Delivery: Stripe to Gmail via n8n

Transform your post-purchase operations with this high-performance n8n workflow designed for digital creators and SaaS founders. Instead of manual fulfillment, this automation acts as a 24/7 digital concierge. It begins by scanning Stripe for successful transactions, cross-referencing buyer data against a centralized Google Sheets inventory to identify the correct digital asset. Utilizing advanced AI via GPT-4o, the system then drafts a personalized onboarding email, including secure access credentials and custom instructions, ensuring a premium customer experience without manual intervention. This flow eliminates the 'human-in-the-middle' delay, significantly reducing support tickets related to missing downloads. By integrating an AI agent, the workflow can intelligently parse complex product variations, making it far more robust than standard linear automations. Whether you are selling automation templates, software licenses, or protected PDF guides, this system provides a scalable infrastructure that grows with your sales volume while maintaining a personal touch through LLM-generated content. **Common Use Cases:** - Scaling a niche digital marketplace for selling specialized code snippets or design assets. - Automating the distribution of unique software license keys and documentation after a SaaS subscription purchase. - Delivering personalized AI-generated consulting reports or audit results based on customer input data.

Scheduled·25 nodes
AGCHCOEX+10
high

Automated AI Resume Parser & JD Matcher via n8n & GPT-4

Transform your recruitment funnel with this advanced AI-driven candidate evaluation engine. This n8n workflow eliminates manual screening fatigue by autonomously analyzing batches of resumes against specific job descriptions. Using GPT-4 and LangChain's structured output parsers, the system extracts key qualifications, scores them against your criteria, and generates objective alignment reports. The process begins with a custom n8n form for document upload, followed by intelligent text extraction from PDFs. The data is then processed through an LLM chain to ensure unbiased scoring. Results are synchronized directly to Google Sheets for centralized tracking, while high-match alerts are dispatched via Slack and SendGrid to keep hiring managers informed in real-time. This workflow is essential for high-volume recruitment agencies and scaling startups that need to maintain a rigorous, auditable, and data-backed shortlisting process without increasing headcount or sacrificing quality of hire. **Common Use Cases:** - High-volume university recruitment and internship screening - Technical talent sourcing for niche engineering roles - Internal mobility matching for large corporate restructuring

Trigger·21 nodes
AGCHGMGM+5
medium

AI Gmail Auto-Labeler: Smart Inbox Sorting with GPT-4 & n8n

Stop drowning in a cluttered inbox and regain control of your digital communication. This advanced n8n automation leverages GPT-4's natural language processing to intelligently analyze, categorize, and label incoming Gmail messages in real-time. Unlike basic filter rules that rely on rigid keywords, this workflow understands the context and sentiment of every email, ensuring high-precision organization. The process begins with a Gmail Trigger that captures new messages. It then passes the content through a LangChain LLM chain where OpenAI evaluates the intent—distinguishing between urgent client requests, internal project updates, or low-priority newsletters. Using structured output parsing, the workflow extracts key metadata and applies the appropriate Gmail labels automatically. This eliminates the manual cognitive load of triaging emails, allowing your team to focus on high-value tasks rather than administrative upkeep. Whether you are managing high-volume support tickets or complex sales inquiries, this workflow ensures that critical messages are highlighted and organized without human intervention. **Common Use Cases:** - Automated Customer Support Triage: Instantly tag emails as 'Urgent Support', 'Feature Request', or 'Billing' to speed up response times. - Sales Lead Prioritization: Automatically identify high-intent inquiries and label them for immediate follow-up by account executives. - Project Management Sync: Categorize incoming vendor updates and stakeholder feedback by project name or department for better visibility.

Trigger·11 nodes
AGGMGOLM+3
medium

AI Dental Lead Follow-up: n8n, OpenAI & Google Sheets Sync

Stop losing high-value patients to delayed responses. This advanced n8n workflow bridges the gap between lead capture and appointment booking by deploying an AI-driven engagement layer. When a prospect submits a query via your website or landing page, the automation immediately triggers, logging the data into Google Sheets for centralized tracking. Instead of sending a generic auto-reply, the integrated LangChain agent utilizes GPT-4/3.5 to analyze the specific treatment interest—be it Invisalign, dental implants, or routine cleaning—and crafts a personalized, empathetic response delivered via Gmail. The workflow includes a strategic 'Wait' node to mimic natural human timing and a 'Memory Buffer' to maintain context if the lead replies. This system is essential for clinics looking to scale their patient acquisition without increasing administrative headcount, ensuring every inquiry is nurtured instantly with professional, clinical-grade communication. By automating the initial touchpoint, your front-desk team can focus on confirmed arrivals rather than chasing cold leads. **Common Use Cases:** - Automated Patient Triage: Categorizing and responding to specific dental treatment inquiries based on urgency and procedure type. - Medical Spa Lead Nurturing: Instantly engaging prospects interested in high-ticket aesthetic treatments to increase conversion rates. - Multi-Location Clinic Sync: Centralizing lead data from various web forms into a single Google Sheet while maintaining personalized local email follow-ups.

Trigger·8 nodes
AGCOGOHT+8
high

Automate AI UGC Video Production with Google Sheets & Veo

Transform your digital marketing strategy by automating the production of high-converting User-Generated Content (UGC) at scale. This sophisticated n8n workflow eliminates the logistical bottleneck of traditional content creation by orchestrating a seamless pipeline between Google Sheets and advanced AI video models. By leveraging NanoBanana Pro for precise image synthesis and Veo 3.1 for fluid motion, the system takes three distinct visual inputs—your product, a chosen persona, and a target environment—and blends them into hyper-realistic, selfie-style video assets. The automation begins by monitoring a Google Sheet for new campaign parameters, triggers an intelligent AI agent to handle complex image processing, and manages asynchronous API calls to ensure high-fidelity video rendering. This is an enterprise-grade solution for performance marketers who need to refresh creative assets daily without manual intervention. It effectively handles the heavy lifting of prompt engineering and file management, allowing you to focus on strategy while the workflow generates 8-second, platform-ready clips optimized for the TikTok and Instagram algorithms. **Common Use Cases:** - Scaling creative testing for TikTok and Meta Ads by generating hundreds of product variants - Automating personalized influencer-style shoutouts for e-commerce loyalty programs - Rapid prototyping of social media video content for global brand localization

Scheduled·24 nodes
@BAGCOIF+7
high

Automate AI Twitter Threads via Telegram & n8n (No-Code)

Streamline your social media presence with this enterprise-grade n8n automation that bridges the gap between raw inspiration and professional X (Twitter) publishing. By integrating Telegram as a mobile command center, this workflow allows you to dictate or type thread ideas on the go. The system leverages OpenAI’s LLMs and LangChain agents to draft high-engagement thread structures, which are then sent back to your private Telegram chat for review. Unlike basic automation, this setup features a sophisticated 'human-in-the-loop' approval system. You can interactively refine the AI-generated content, request edits, or finalize the draft. Once you provide the 'Okay' confirmation, the workflow automatically formats and publishes the entire thread to X via the Blotato integration. This eliminates the friction of manual drafting and copy-pasting, ensuring your brand stays active without the constant overhead of social media management. It is the perfect solution for creators and businesses looking to maintain a high-quality digital presence using a voice-to-thread mobile pipeline. **Common Use Cases:** - Thought Leadership: Convert spontaneous voice memos into structured educational threads while commuting. - Event Live-Tweeting: Rapidly draft and approve professional event summaries from a mobile device without opening the X app. - Content Repurposing: Send links or snippets of long-form articles to Telegram to generate 'tweetable' summaries for social distribution.

Trigger·19 nodes