Skip to main content

YouTube comment analysis with GPT-4o & automated email reports via Gmail

Workflow preview

Workflow preview
100%
YouTube comment analysis with GPT-4o & automated email reports via Gmail preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Description: Leverage the power of ChatGPT and YouTube API to monitor, analyze, and report on video feedback automatically. This n8n automation template fetches comments from a YouTube video, perfo...

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-nodes-base.if, n8n-nodes-base.set, n8n-nodes-base.youtube, n8n-nodes-base.httprequest, n8n-nodes-base.code

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
YouTube comment analysis with GPT-4o & automated email reports via Gmail
Workflow name
YouTube comment analysis with GPT-4o & automated email reports via Gmail

Description:

Leverage the power of ChatGPT and YouTube API to monitor, analyze, and report on video feedback automatically. This n8n automation template fetches comments from a YouTube video, performs advanced AI sentiment analysis, identifies key themes, and emails a professional report—all triggered from a Google Sheet.

What This Template Does:

  • 🔁 Auto-Triggers from Google Sheets every minute
  • 🎥 Fetches YouTube video details and top comments
  • 🧠 Uses GPT-4o for comment sentiment analysis, theme detection, viewer questions & improvement insights
  • 📧 Generates and sends an HTML email report with all key insights
  • 📝 Marks videos as “Mail Sent” in the sheet to prevent duplicate reports

Setup Requirements:

  • YouTube API Credentials
  • OpenAI API Credentials
  • Gmail credentials for email delivery
  • Google Sheet with video tracking

Ideal for:

YouTube creators, marketers, social media analysts, or agencies seeking automated YouTube comment sentiment analysis and actionable content insights—without writing a line of code.

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 - If

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

Block 10 - Set Video Details

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

Block 11 - Get Youtube Video Details

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

Block 12 - Get Youtube Video Comments

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

Block 13 - Prepare Comments Data

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

Block 14 - Prepare HTML for Email

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

Block 15 - Gmail Account Configuration

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

Block 16 - Update Status on Google Sheet

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

Block 17 - Pick Video Ids from Google sheet

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

Block 18 - Azure OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatAzureOpenAi - lmChatAzureOpenAi
Config choices
Version 1

3. Summary Table

Workflow YouTube comment analysis with GPT-4o & automated email reports via Gmail
Complexity advanced
Nodes 18
Categories Market Research, AI Summarization
Author Rahul Joshi
Published 12 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4895/4895.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 analysis with GPT-4o & automated email reports via Gmail do?

Description: Leverage the power of ChatGPT and YouTube API to monitor, analyze, and report on video feedback automatically. This n8n automation template fetches comments from a YouTube video, perfo...

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.