# Deep research agent - research & Notion report builder: n8n workflow

> Started by another system calling it, and works across Notion. It puts Gemini, OpenAI and one other behind a retrieval step, so answers are drawn from...

Source: https://millionrounds.com/workflow/deep-research-agent-research-and-notion-report-builder (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Research and reporting](https://millionrounds.com/workflows?category=Research+and+reporting#library)

# Deep research agent - research & Notion report builder

Started by another system calling it, and works across Notion. It puts Gemini, OpenAI and one other behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 36 steps, 1 branch, 2 loops or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini, OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fdeep-research-agent-research-and-notion-report-builder)

**36 steps** Large: read it before trusting it with anything live

**1** Branch: places the flow splits

**2** Loops or waits

**1** Service it connects to

## The flow

Starts it 3 Model 13 Logic 13 Service 7

The steps in the order they run, from what starts it.

- 1 **Simple Memory** Memory Buffer Window *Model*
- 2 **Structured Output Parser** Output Parser Structured *Model*
- 3 **Structured Output Parser1** Output Parser Structured *Model*
- 4 **Google Gemini Chat Model** Lm Chat Google Gemini *Model*
- 5 **OpenRouter Chat Model** Lm Chat Open Router *Model*
- 6 **OpenRouter Chat Model1** Lm Chat Open Router *Model*
- 7 **OpenRouter Chat Model2** Lm Chat Open Router *Model*
- 8 **Webhook** Webhook *Starts it*
- 9 **Strategy Agent** Agent *Model*
- 10 **Search Query Agent** Agent *Model*
- 11 **Notion Block Generator** Chain Llm *Model*
- 12 **Report Agent** Agent *Model*
- 13 **Switch** Switch *Logic*
- 14 **Split Out** Split Out *Logic*
- 15 **Parse JSON blocks** Set *Logic*
- 16 **Get Existing Row** Notion *Service*
- 17 **Respond to Webhook** Respond To Webhook *Starts it*
- 18 **Respond to Webhook1** Respond To Webhook *Starts it*
- 19 **Loop Over Queries** Split In Batches *Logic*
- 20 **Valid Blocks** Filter *Logic*
- 21 **Convert to HTML** Markdown *Logic*
- 22 **Code** Code *Logic*
- 23 **Aggregate** Aggregate *Logic*
- 24 **HTTP Request** Http Request *Service*
- 25 **For Each Block...** Split In Batches *Logic*
- 26 **HTML to Array** Set *Logic*
- 27 **OpenAI1** Open Ai *Model*
- 28 **Edit Fields** Set *Logic*
- 29 **Aggregate1** Aggregate *Logic*
- 30 **HTTP Request2** Http Request *Service*
- 31 **Tags to Items** Split Out *Logic*
- 32 **Notion** Notion *Service*
- 33 **OpenAI** Open Ai *Model*
- 34 **Notion1** Notion *Service*
- 35 **HTTP Request1** Http Request *Service*
- 36 **HTTP Request3** Http Request *Service*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 36, with 1 branch, 2 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Notion
- **Model:** Gemini, OpenAI, OpenRouter
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

An n8n account, plus your own Notion account, and a key for Gemini and OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

Yes. It calls Gemini, OpenAI and OpenRouter. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 36 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 36 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fdeep-research-agent-research-and-notion-report-builder)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Notion](https://millionrounds.com/workflows?service=Notion#library)

## Workflows like it

Also research and reporting, with the same services where possible, closest in size first.

- [**Automated competitor research agent with OpenAI and Notion** 30 steps · calls a model · Notion](https://millionrounds.com/workflow/automated-competitor-research-agent-with-openai-and-notion)
- [**Find top-performing Instagram Reels & save insights to Notion** 29 steps · Apify, Notion](https://millionrounds.com/workflow/find-top-performing-instagram-reels-and-save-insights-to-not)
- [**Tech news aggregator: The Verge & TechCrunch RSS to Notion** 25 steps · calls a model · Notion, RSS](https://millionrounds.com/workflow/tech-news-aggregator-the-verge-and-techcrunch-rss-to-notion)
- [**Automated multi-agent trading analysis with OpenAI** 23 steps · calls a model · Notion, Telegram](https://millionrounds.com/workflow/automated-multi-agent-trading-analysis-with-openai)
- [**Generate multi-agent research reports with Tavily and Groq** 22 steps · calls a model · Notion, Supabase vectors](https://millionrounds.com/workflow/generate-multi-agent-research-reports-with-tavily-and-groq)
- [**CallForge - 02 - prep Gong calls with Google Sheets and Notion** 20 steps · Google Sheets, Notion](https://millionrounds.com/workflow/callforge-02-prep-gong-calls-with-google-sheets-and-notion)
