Templates / YouTube comment scraper & analyzer with GPT-4o + email summary report

YouTube comment scraper & analyzer with GPT-4o + email summary report

Needs changes

by Amit Mehta ✓ · 3,268 views · created 2025-06-11 · Market Research, AI Summarization

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 12 nodes and runs on Google Sheets events. Along the way it connects OpenAI Chat Model, YouTube, Gmail and Google Sheets. It also calls googleapis.com over HTTP.

How it runs

Trigger: On Google Sheets events.

  1. If: checks a condition and branches into true / false
  2. Limit: keeps the first few items
  3. Set Video Details (Edit Fields (Set)): sets 2 fields: videoId, maxComments
  4. Get Youtube Video Details (YouTube): get (video)
  5. Get Youtube Video Comments (HTTP Request): calls googleapis.com
  6. Prepare Comments Data (Code): runs custom JavaScript code
  7. AI Agent: runs an AI agent, with model: OpenAI Chat Model
  8. Prepare HTML for Email (Code): runs custom JavaScript code
  9. Gmail: uses Gmail
  10. Update Status on Google Sheet (Google Sheets): update

Services it uses

OpenAI Chat ModelYouTubeGmailGoogle Sheets

HTTP calls to: googleapis.com

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 AI Agent (v1.9): 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)
AI Agent (v1.9)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (11)

From the author

How it Works This workflow automates the collection and analysis of YouTube comments from a video and sends a summary report via email, using Google Sheets, the YouTube API, OpenAI (GPT-4o), and Gmail. Whether you're a content creator, brand manager, or…

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