Skip to main content

AI YouTube analytics agent: Comment analyzer & insights reporter

Workflow preview

Workflow preview
100%
AI YouTube analytics agent: Comment analyzer & insights reporter preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Transform YouTube comments into actionable insights with automated AI analysis and professional email reports. This intelligent workflow monitors your Google Sheets for YouTube video IDs, fetches c...

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 Yaron Been.

Original n8n.io source

1.1 Workflow description

Title
AI YouTube analytics agent: Comment analyzer & insights reporter
Workflow name
AI YouTube analytics agent: Comment analyzer & insights reporter

Transform YouTube comments into actionable insights with automated AI analysis and professional email reports.

This intelligent workflow monitors your Google Sheets for YouTube video IDs, fetches comments using YouTube API, performs comprehensive AI sentiment analysis, and delivers formatted email reports with viewer insights - helping content creators understand their audience and improve engagement.

šŸš€ What It Does

Smart Video Monitoring: Watches Google Sheets for new YouTube video IDs marked as "Pending" and triggers automated analysis

Complete Comment Collection: Fetches up to 100 top comments per video using YouTube API with relevance-based ordering

AI-Powered Analysis: Uses GPT-4 to analyze comments for sentiment, themes, questions, feedback, and actionable insights

Professional Email Reports: Generates detailed HTML reports with statistics, sentiment breakdown, and improvement recommendations

Automated Status Tracking: Updates spreadsheet status to prevent duplicate processing and maintain organized workflow

šŸŽÆ Key Benefits

āœ… Deep Audience Insights: Understand what viewers really think about your content
āœ… Save Hours of Manual Work: Automated comment analysis vs reading hundreds of comments
āœ… Improve Content Strategy: Get actionable feedback for better video performance
āœ… Track Sentiment Trends: Monitor positive/negative feedback patterns
āœ… Professional Reporting: Receive formatted analysis reports via email
āœ… Scalable Analysis: Process multiple videos automatically

šŸ¢ Perfect For

Content Creators & YouTubers

  • Individual creators tracking audience engagement
  • Educational channels analyzing learning feedback
  • Entertainment creators understanding viewer preferences
  • Business channels monitoring brand sentiment

Marketing & Business Applications

  • Brand Monitoring: Track sentiment on branded content and partnerships
  • Audience Research: Understand viewer demographics and preferences
  • Content Optimization: Identify what resonates with your audience
  • Competitor Analysis: Analyze comments on competitor videos (where allowed)

āš™ļø What's Included

Complete Analytics Workflow: Ready-to-deploy YouTube comment analysis system Google Sheets Integration: Simple spreadsheet-based video management YouTube API Integration: Automated comment fetching with proper authentication AI Analysis Engine: GPT-4 powered sentiment and insight generation Email Reporting System: Professional HTML-formatted reports Status Management: Automatic processing tracking and duplicate prevention

šŸ”§ Setup Requirements

  • n8n Platform: Cloud or self-hosted instance
  • YouTube API Credentials: Google Cloud Console API access
  • OpenAI API: GPT-4 access for comment analysis
  • Google Sheets: Video ID management and status tracking
  • Gmail Account: For receiving analysis reports

šŸ“Š Required Google Sheets Structure

| ID | Video Title | YouTube Video ID | Status |
|----|-------------|------------------|---------|
| 1  | My Tutorial | dQw4w9WgXcQ     | Pending |
| 2  | Product Demo| abc123def456    | Mail Sent |
| 3  | Weekly Vlog | xyz789uvw012    | Draft |

Status Options: Draft → Pending → Mail Sent

šŸ“§ Sample Analysis Report

šŸ“ŗ YouTube Comments Analysis Report
Video: "How to Build Your First Website"

šŸ“Š Quick Statistics:
• Total Comments Analyzed: 87
• Average Likes per Comment: 3.2
• Total Replies: 156
• Sentiment Summary: Positive: 65%, Negative: 10%, Neutral: 25%

ā“ Common Questions:
• "What hosting service do you recommend?"
• "Can I do this without coding experience?"
• "How much does domain registration cost?"

šŸ’” Key Feedback Points:
• Tutorial pace is perfect for beginners
• More examples of finished websites requested
• Viewers want follow-up video on advanced features

šŸŽÆ Actionable Insights:
• Create hosting comparison video
• Add timestamps for different skill levels
• Consider beginner-friendly series expansion

šŸŽØ Customization Options

Analysis Depth: Adjust AI prompts for different analysis focuses (engagement, education, entertainment) Comment Limits: Modify maximum comments processed (default: 100, AI analysis: 50) Report Recipients: Send reports to multiple team members or clients Custom Metrics: Add specific analysis criteria for your content niche Multi-Channel: Process videos from multiple YouTube channels Scheduling: Set up regular analysis of your latest videos

šŸ·ļø Tags & Categories

#youtube-analytics #comment-analysis #content-creator-tools #ai-sentiment-analysis #video-insights #audience-research #youtube-api #content-optimization #social-media-analytics #creator-economy #video-marketing #engagement-analysis #content-strategy #ai-reporting #youtube-automation

šŸ’” Use Case Examples

Educational Channel: Analyze tutorial comments to identify confusing concepts and improve teaching methods Product Reviews: Monitor sentiment on review videos to understand customer satisfaction trends
Entertainment Creator: Track audience reactions to different content formats and optimize future videos

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 - Sticky Note12

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

Block 2 - Workflow Overview

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

Block 3 - Trigger Documentation

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

Block 4 - YouTube API Section

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

Block 5 - AI Analysis Documentation

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

Block 6 - Email & Status Update

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

Block 7 - Data Processing Note

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

Block 8 - Limit

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

Block 9 - AI Agent

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

Block 10 - OpenAI Chat Model

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

Block 11 - If

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

Block 12 - Set Video Details

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

Block 13 - Get Youtube Video Details

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

Block 14 - Get Youtube Video Comments

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

Block 15 - Prepare Comments Data

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

Block 16 - Prepare HTML for Email

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

Block 17 - Gmail Account Configuration

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

Block 18 - Update Status on Google Sheet

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

Block 19 - Pick Video Ids from Google sheet

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

3. Summary Table

Workflow AI YouTube analytics agent: Comment analyzer & insights reporter
Complexity advanced
Nodes 19
Categories Market Research, AI Summarization
Author Yaron Been
Published 28 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4459/4459.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 AI YouTube analytics agent: Comment analyzer & insights reporter do?

Transform YouTube comments into actionable insights with automated AI analysis and professional email reports. This intelligent workflow monitors your Google Sheets for YouTube video IDs, fetches c...

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.