Templates / Analyze YouTube comments with OpenAI, Google Sheets, and Gmail

Analyze YouTube comments with OpenAI, Google Sheets, and Gmail

Ready for 3.0

by Dr. Firas ✓ · 46 views · created 2026-07-14 · Market Research, AI Summarization

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

How it runs

Trigger: On Google Sheets events.

  1. Configuration (Edit Fields (Set)): sets 10 fields: video_id, video_status, row_number…
  2. Keep only pending videos (Filter): keeps only the items that match a condition
  3. Get video details (HTTP Request): calls googleapis.com
  4. Fetch top comments (HTTP Request): calls googleapis.com
  5. Prepare comments for AI (Code): runs custom JavaScript code
  6. Has comments? (If): checks a condition and branches into true / false
  7. Analyze comments with AI (AI Agent): runs an AI agent, with model: OpenAI analysis model; output parser: Structured analysis parser
  8. Mark row as no comments (Google Sheets): update
  9. Build email report (Code): runs custom JavaScript code
  10. Email the report (Gmail): uses Gmail

…plus 1 more step. See the full node list below.

Services it uses

Google SheetsOpenAI Chat ModelGmail

HTTP calls to: googleapis.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 (11)

From the author

Quick overview This workflow monitors a Google Sheets list of YouTube video IDs, fetches video details and top comments from the YouTube Data API, analyzes the comments with OpenAI into structured sentiment and themes, emails an HTML report via Gmail, and…

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