Templates / Host your own AI deep research agent with n8n, Apify and OpenAI o3

Host your own AI deep research agent with n8n, Apify and OpenAI o3

Ready for 3.0

by Jimleuk ✓ · 79,829 views · created 2025-02-11 · Market Research, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 64 nodes and runs when someone submits an n8n form (“ DeepResearcher”) (plus 1 other trigger). Along the way it connects OpenAI Chat Model, Notion and Google Gemini Chat Model. It also calls api.apify.com over HTTP.

How it runs

Trigger: When someone submits an n8n form (“ DeepResearcher”) (plus 1 other trigger).

  1. Research Request (n8n Form): shows the next form page
  2. Execution Data: uses Execution Data
  3. Set Variables (Edit Fields (Set)): sets 4 fields: request_id, prompt, depth…
  4. JobType Router (Switch): routes items into 3 branches
  5. Clarifying Questions (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Structured Output Parser
  6. Get Existing Row (Notion): get many (database page)
  7. Generate SERP Queries (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Structured Output Parser
  8. Get Existing Row (Notion): get many (database page)
  9. Feedback to Items (Split Out): splits a list into separate items
  10. Set In-Progress (Notion): update (database page)

…plus 41 more steps. See the full node list below.

Services it uses

OpenAI Chat ModelNotionGoogle Gemini Chat Model

HTTP calls to: api.apify.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (23)

From the author

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…

Excerpt from Jimleuk's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.