Use this powerful n8n workflow to automatically extract YouTube comments, analyze audience sentiment (Positive, Negative, Neutral) using Google Gemini AI, and log detailed results into Google Sheets. Perfect for social media managers and creators.
Download this n8n workflow template and start using it instantly.
YouTube Content Creators and Brands needing detailed audience feedback.
Social Media Managers analyzing campaign performance and public perception.
Data Analysts who require structured sentiment data from social platforms.
Users looking for advanced, practical n8n templates integrating AI and APIs.
Understanding audience feedback is crucial for content strategy, but manually sifting through thousands of YouTube comments is inefficient. This comprehensive n8n workflow solves this by automating the entire process. It transforms a list of YouTube URLs queued in a Google Sheet into categorized, sentiment-analyzed data, providing immediate insights into audience perception.
This robust n8n automation leverages the YouTube API to fetch comments (handling pagination), and then utilizes the Google Gemini chat model for precise sentiment classification (Positive, Neutral, or Negative). The resulting structured data, including comment text, likes, replies, and analyzed sentiment, is appended directly to another tab in your Google Sheet, ensuring a reliable, trackable data repository. This powerful n8n workflow is a perfect example of how complex multi-step processes can be streamlined using customizable n8n templates.
This automated n8n workflow operates via a robust, multi-stage process:
To deploy this custom n8n workflow, follow these steps:
Get Video URLs, Insert Comment Data & Analysis, Update Video Status). Ensure they point to the correct Document ID and Sheet Tabs.HTTP Request - Get Comments n8n node).Google Gemini Chat Model n8n node, which powers the sentiment analysis agent.This n8n workflow utilizes several key n8n node types to achieve its goal:
Manual Trigger (When clicking ‘Test workflow’): The starting n8n trigger for manual execution.
Google Sheets (Get Video URLs): Functions as the input queue manager. It retrieves all rows where the status column equals 'Ready'. This is the initial data source for the n8n workflow.
If (Check If Video URL is Not Empty): A critical core logic n8n node ensuring that only valid data proceeds, checking if the video_url field exists.
Split In Batches (Loop Over Items): This n8n node controls the iteration over the list of video URLs retrieved from the Google Sheet.
HTTP Request (HTTP Request - Get Comments): Fetches comment data from the YouTube API, configured to use YouTube OAuth2 credentials and crucially, includes built-in pagination to retrieve more than the default limit of comments per video.
Split Out (Split Out): Processes the paginated API response, splitting the body.items array into separate n8n items, one per comment, enabling item-level processing by the AI.
If (Check If - Comment Exists): Checks if the split item contains a valid comment snippet before proceeding to the expensive AI step, also providing a route to update the video status if no comments are found.
Google Gemini Chat Model: The language model n8n node providing the inference backbone for the sentiment analysis.
AI Agent - Analyze Sentiment Of Every Comment: A specialized AI n8n node that uses the Gemini model to classify the comment text into 'Positive', 'Neutral', or 'Negative' categories.
Google Sheets (Insert Comment Data & Analysis): An output n8n node that performs an appendOrUpdate operation, saving the extracted comment data and the AI-generated sentiment analysis to the 'Results' sheet.
Automate YouTube social listening using this advanced n8n workflow. Fetch comments, analyze sentiment & keywords with Gemini AI via OpenRouter, store results in Google Sheets, and send Telegram reports. Get started with this n8n template.

Use this powerful n8n workflow to automate YouTube channel analysis. It leverages Google Sheets, an HTTP Request n8n node for content extraction, Azure OpenAI (GPT-4o-mini) for detailed reporting, and automatically sends the final output via a configured Gmail n8n node.

Automate the diagnosis of failed n8n workflow executions using OpenAI. This n8n template automatically creates FreshDesk support tickets and sends rich, contextual alerts to Slack.

Use this powerful n8n workflow to analyze YouTube video performance, calculate engagement scores, and automatically export viral content data, including channel statistics, to Google Sheets.

Use this powerful n8n workflow to create an AI agent capable of parsing and answering questions about external XML files using OpenAI, LangChain, and specialized n8n nodes. Automate complex data extraction.

Use this comprehensive n8n workflow to pull top performing pages from Google Analytics, scrape content using Firecrawl, and generate AI-driven topical summaries and content gaps using InfraNodus. Perfect for content marketing SEO optimization.

Agent Circle - A growing marketplace of AI agents, workflows, and toolkits — built to help teams automate smarter and scale faster







































