Skip to main content

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

Workflow preview

Workflow preview
100%
YouTube comment scraper & analyzer with GPT-4o + email summary report preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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) , an...

Best for

  • Market Research automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.limit, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.if, n8n-nodes-base.set, n8n-nodes-base.youtube, n8n-nodes-base.httprequest

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Amit Mehta.

Original n8n.io source

1.1 Workflow description

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

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 social media analyst, this workflow helps you automate sentiment analysis and receive insights directly in your inbox โ€” all triggered from a simple spreadsheet.

๐ŸŽฏ Use Case

Ideal for:

  • YouTubers monitoring audience sentiment
  • Marketing teams analyzing campaign feedback
  • Community managers summarizing engagement

Setup Instructions

1. Upload the Spreadsheet

  • File name: Youtube_Video
  • Sheet structure: | ID | Video Title | YouTube Video ID | Status |
  • Add video IDs and set their Status as Pending

2. Configure Google Sheets Nodes

Connect your Google account to:

  • Pick Video IDs from Google Sheet
  • Update Status on Google Sheet

3. Add API Credentials

  • YouTube API Key โ†’ for comment + video scraping nodes
  • OpenAI API Key โ†’ for analyzing comments
  • Gmail Account โ†’ for sending the summary email

4. Activate the Workflow

Once live, the workflow will:

  1. Watch for new or updated rows in the spreadsheet
  2. Scrape comments using the YouTube API
  3. Analyze sentiment and key themes via GPT-4o
  4. Send a formatted HTML email with the summary
  5. Update the spreadsheet status to Mail sent

๐Ÿ” Workflow Logic

  1. Trigger: New/updated row in Google Sheet
  2. Retrieve: YouTube video metadata + comments
  3. Analyze: Comments using GPT-4o
  4. Email: Summary report via Gmail
  5. Update: Spreadsheet status to Mail sent

๐Ÿงฉ Node Descriptions

Node Name Description
Pick Video IDs from Google Sheet Watches the spreadsheet and retrieves pending video IDs
If Checks whether status is 'Pending'
Limit Restricts the number of processed rows
Set Video Details Prepares video info (e.g., title, channel)
Get YouTube Video Details Fetches metadata (title, channel, etc.)
Get YouTube Video Comments Pulls top-level comments using YouTube API
Prepare Comments Data Formats comment text for OpenAI
AI Agent Summarizes comments using OpenAI's GPT-4o
Prepare HTML for Email Converts summary into HTML for email body
Gmail Account Configuration Sends the email report via Gmail
Update Status on Google Sheet Marks the row as 'Mail sent'

๐Ÿ› ๏ธ Customization Tips

  • Change the AI prompt for tone, length, or custom metrics
  • Send results to Slack or Telegram instead of Gmail
  • Export summaries to Notion, Airtable, or PDF
  • Schedule it daily/weekly for recurring analysis

๐Ÿ“’ Suggested Sticky Notes for Workflow

Node/Section Sticky Note Content
Pick Video IDs from Google Sheet "Triggers on new YouTube videos in your spreadsheet"
AI Agent "Uses OpenAI to generate an analysis summary โ€“ customize prompt as needed"
Gmail "Sends summary report โ€“ you can update subject, recipients, or style"
Update Status "Marks video as processed to avoid duplicate runs"

๐Ÿ“Ž Required Files

File Name Purpose
Youtube_Video Google Sheet to hold YouTube video IDs and status
Youtube_Comment_Scraper.json Main n8n workflow export for this automation

๐Ÿงช Testing Tips

  • Add one test video with a valid YouTube video ID and status = Pending
  • Monitor the workflow logs to confirm API responses
  • Confirm summary delivery in your inbox
  • Verify that status updates in the sheet

๐Ÿท Suggested Tags & Categories

  • #YouTube
  • #OpenAI
  • #Automation
  • #Marketing
  • #Email
  • #Analytics

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Workflow Overview

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Trigger Documentation

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - YouTube API Section

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - AI Analysis Documentation

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Email & Status Update

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Data Processing Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Limit

Type / Role
n8n-nodes-base.limit - limit
Config choices
Version 1

Block 8 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.9

Block 9 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 10 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 11 - Set Video Details

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 12 - Get Youtube Video Details

Type / Role
n8n-nodes-base.youTube - youTube
Config choices
Version 1

Block 13 - Get Youtube Video Comments

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 14 - Prepare Comments Data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 15 - Prepare HTML for Email

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 16 - Gmail Account Configuration

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 17 - Update Status on Google Sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 18 - Pick Video Ids from Google sheet

Type / Role
n8n-nodes-base.googleSheetsTrigger - googleSheetsTrigger
Config choices
Version 1

3. Summary Table

Workflow YouTube comment scraper & analyzer with GPT-4o + email summary report
Complexity advanced
Nodes 18
Categories Market Research, AI Summarization
Author Amit Mehta
Published 11 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4863/4863.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does YouTube comment scraper & analyzer with GPT-4o + email summary report do?

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) , an...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research, AI Summarization use case.