Templates / Generate AI research reports from live web search with OpenAI and Gmail

Generate AI research reports from live web search with OpenAI and Gmail

Needs changes

by Incrementors ✓ · 2 views · created 2026-09-22 · Market Research, AI RAG

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 14 nodes and runs when someone submits an n8n form (“AI Research Report Request”). Along the way it connects OpenAI Chat Model, Google Sheets and Gmail. It also calls google.serper.dev over HTTP.

How it runs

Trigger: When someone submits an n8n form (“AI Research Report Request”).

  1. Set config (Edit Fields (Set)): sets 13 fields: serperApiKey, recipientEmail, senderName…
  2. Search the main topic (HTTP Request): calls google.serper.dev (POST)
  3. Search the expert angle (HTTP Request): calls google.serper.dev (POST)
  4. Combine the sources (Code): runs custom JavaScript code
  5. Analyse the sources (AI Agent): runs an AI agent, with model: Chat model - Analysis; output parser: Output Parser - Analysis
  6. Write the report (AI Agent): runs an AI agent, with model: Chat model - Writing; output parser: Output Parser - Report
  7. Build the report email (Code): runs custom JavaScript code
  8. Log the request (Google Sheets): append
  9. Email the report (Gmail): uses Gmail

Services it uses

OpenAI Chat ModelGoogle SheetsGmail

HTTP calls to: google.serper.dev

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in Analyse the sources (v1.7), Write the report (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
Analyse the sources (v1.7), Write the report (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (9)

From the author

Quick overview This workflow collects a research request via an n8n form, runs two live Google searches via the Serper API, uses OpenAI to analyze the sources and write a structured report, then logs the request to Google Sheets and emails the finished report…

Excerpt from Incrementors'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.