What This Workflow Does
This n8n workflow automates the collection and analysis of YouTube comments using Gemini AI's advanced natural language processing capabilities. It solves the challenge of manually reviewing hundreds or thousands of comments to understand audience sentiment and identify key discussion topics.
The system categorizes each comment as positive, negative, or neutral while extracting frequently mentioned keywords and phrases. Results are compiled into a concise report delivered via Telegram, giving content creators and marketers actionable insights without having to constantly monitor their video comments.
How It Works
1. YouTube comment collection
The workflow connects to the YouTube API to retrieve all comments from specified videos. It can be configured to analyze new comments only or process the entire comment history.
2. Sentiment analysis with Gemini AI
Each comment is processed through Gemini AI's sentiment analysis model, which assigns an emotional score and identifies the overall tone. The system can be trained to recognize niche-specific terminology.
3. Keyword extraction
The AI identifies and ranks the most significant keywords and phrases appearing across all comments, highlighting what viewers are discussing most frequently.
4. Telegram reporting
A formatted report containing sentiment breakdowns, top keywords, and notable comments is automatically sent to designated Telegram channels or groups for easy mobile access.
Who This Is For
This workflow is ideal for YouTube content creators, digital marketers, and social media managers who need to:
- Monitor audience reactions to videos at scale
- Identify trending topics for future content
- Detect potential PR issues early
- Measure engagement beyond view counts
- Optimize video metadata based on audience language
What You'll Need
- An n8n instance (cloud or self-hosted)
- YouTube API credentials
- Gemini AI API key
- Telegram bot token
- Target YouTube video URLs
Quick Setup Guide
- Download and import the JSON template into your n8n instance
- Configure YouTube node with your API credentials
- Add your Gemini AI API key to the sentiment analysis node
- Set up Telegram bot credentials in the reporting node
- Specify which YouTube videos to monitor
- Adjust sentiment thresholds and keyword parameters as needed
- Test with a small batch of comments before full deployment
Key Benefits
Save 10+ hours per week by automating comment analysis that would otherwise require manual reading and categorization.
Identify trends 3x faster with real-time Telegram alerts about shifting sentiment or emerging discussion topics.
Improve content strategy with data-driven insights about what resonates most with your audience.
Enhance community management by quickly spotting and addressing negative sentiment before it escalates.
Optimize video SEO by incorporating naturally occurring keywords from comments into your metadata.
Pro tip: Combine this workflow with a Google Sheets integration to build historical sentiment trends and keyword frequency over time.