Deep research n8n workflow with report to Notion
This n8n workflow plans and writes a deep research report and saves it to Notion, starting from a Telegram message or webhook. It is for researchers and consultants who want an agent to ask what they need, search the web and draft the report for them.
What it does
A strategy agent clarifies the research topic, a search query agent writes SERP queries, and the Tavily API fetches results. Pages are extracted, looped through, converted to markdown and assembled into a report in Notion, with OpenRouter models doing the writing.
How to use it
Connect Telegram, Notion and OpenRouter, add your Tavily API key, and send a topic by chat or to the webhook.
Requirements and limits
Tavily and OpenRouter are paid APIs with their own keys.
More in ChatGPT and the n8n workflow library.
Full text
Front matter
name: Deep Research Report Generation Using Open Router, Google Search, Webhook/Telegram and Notion
description: Triggered by a webhook. Connects Aggregate, Code, Filter, HTTP request, Loop, Markdown, Notion, Respond To Webhook. # Workflow Overview This workflow automates the process of research planning, query generation, web search, content extraction, and report creation. It integrates with Webhook, Notion, OpenAI, and external APIs. ## Main Steps 1. **Trigger**: Starts from a Telegram message or Webhook. 2. **Strategy Agent**: Asks the user for a research topic and clarifies requirements. 3. **Query Generation**: Generates SERP queries for the research topic. 4. **Web Search**: Uses Tavily API to fetch search res
category: Automation
kind: Workflow
software: Aggregate|Code|Filter|HTTP request|Loop|Markdown|Notion|Respond To Webhook|Split Out|Switch|WebhookDeep Research Report Generation Using Open Router, Google Search, Webhook/Telegram and Notion
Triggered by a webhook. Connects Aggregate, Code, Filter, HTTP request, Loop, Markdown, Notion, Respond To Webhook. # Workflow Overview
This workflow automates the process of research planning, query generation, web search, content extraction, and report creation. It integrates with Webhook, Notion, OpenAI, and external APIs.
Main Steps
- Trigger: Starts from a Telegram message or Webhook.
- Strategy Agent: Asks the user for a research topic and clarifies requirements.
- Query Generation: Generates SERP queries for the research topic.
- Web Search: Uses Tavily API to fetch search res
Steps
- Telegram Trigger (telegramTrigger)
- Simple Memory (noOp)
- Structured Output Parser (noOp)
- Switch (switch)
- Strategy Agent (noOp)
- Search Query Agent (noOp)
- Structured Output Parser1 (noOp)
- Split Out (splitOut)
- Loop Over Queries (splitInBatches)
- HTTP Request (httpRequest)
- Edit Fields (set)
- OpenAI (noOp)
- HTTP Request1 (httpRequest)
- Aggregate (aggregate)
- AI Agent (noOp)
- OpenAI1 (noOp)
- Notion (notion)
- Notion1 (notion)
- HTTP Request2 (httpRequest)
- Convert to HTML (markdown)
- HTML to Array (set)
- Tags to Items (splitOut)
- Notion Block Generator (noOp)
- Google Gemini Chat Model (noOp)
- Parse JSON blocks (set)
- Valid Blocks (filter)
- For Each Block... (splitInBatches)
- Get Existing Row (notion)
- Code (code)
- Aggregate1 (aggregate)
- OpenRouter Chat Model (noOp)
- OpenRouter Chat Model1 (noOp)
- OpenRouter Chat Model2 (noOp)
- Webhook (webhook)
- Respond to Webhook (respondToWebhook)
- Respond to Webhook1 (respondToWebhook)
- HTTP Request3 (httpRequest)
- Sticky Note (stickyNote)
Import
Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).
Source and license
Author: Zie619, n8n workflow collection. License: MIT.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
- Automated Research Report Generation with OpenAI, Wikipedia, Google Search, and Gmail/Telegram
- Social Media AI Agent - Telegram
- Manualtrigger Workflow: Aggregate, Code and Condition
- AI-Powered Research with Jina AI Deep Search
- Search & Summarize Web Data with Perplexity, Gemini AI & Bright Data to Webhooks
- AI-Powered Information Monitoring with OpenAI, Google Sheets, Jina AI and Slack: Slack, ChatGPT and Code (n8n workflow collection) (521)
There are more like this in the members library
The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.