🔓 Unlock all 10,000+ workflows & prompts free Join Newsletter →
✅ Full access unlocked — explore all 10,000 AI workflow and prompt templates Browse Templates →
Home n8n Workflow
January 22, 2026

YouTube to Gmail, comment insights sent ready to share

Lisa Granqvist Partner Workflow Automation Expert

You open YouTube Studio to “quickly” check comments, and suddenly it’s been an hour. You scroll, you spot a few patterns, then you lose them again because there’s no clean way to summarize what people are actually saying.

This YouTube comment insights automation hits content creators first, honestly. But a marketing manager reporting on campaigns and an agency lead juggling client channels feel the same pain: too much raw feedback, not enough clarity. The outcome is simple. You get a share-ready email summary with sentiment, themes, questions, and next actions.

You’ll learn what the workflow does, what you need to run it, and how to adapt it so your team gets insights without living in the comments tab.

How This Automation Works

Here’s the complete workflow you’ll be setting up:

n8n Workflow Template: YouTube to Gmail, comment insights sent ready to share

Why This Matters: Turning Comment Noise Into Decisions

Comments are one of the best “free” research streams you have, but they’re messy. The useful bits are scattered between compliments, inside jokes, and random arguments, and it’s on you to turn all that into something you can act on. Most people try to skim a few dozen comments and call it done. Then a week later you realize viewers asked the same question 50 times, or a negative theme kept repeating, and you missed it because it didn’t jump out in one sitting.

The friction compounds. Not because any single step is hard, but because you repeat it for every video, every week, forever.

  • Reading 100 comments per video is manageable once, but it becomes a recurring time sink when you publish consistently.
  • Important feedback gets buried, so you end up making content decisions based on hunches instead of patterns.
  • Sharing insights with a client or team turns into copy-pasting screenshots and trying to explain “the vibe.”
  • Without status tracking, you re-check the same videos and still miss new ones that should be reviewed.

What You’ll Build: Google Sheets → AI Analysis → Gmail Report

This workflow turns a simple spreadsheet into a lightweight YouTube research pipeline. You log a YouTube video ID in Google Sheets and mark it as “Pending.” From there, n8n pulls the video’s metadata, fetches up to 100 top comments via the YouTube API (ordered by relevance), and calculates basic engagement metrics from what it collected. Then an AI Agent powered by the OpenAI Chat Model (GPT-4) reads a curated set of comments and produces a structured analysis: sentiment, recurring themes, common questions, and practical recommendations. Finally, the workflow builds a polished HTML email and sends it to you in Gmail, then updates the sheet to “Mail Sent” so it won’t process the same row again.

The flow starts in Google Sheets. It moves through comment collection and AI summarization, then ends with a formatted email you can forward to a client or drop into a weekly report. No extra dashboards to babysit.

What You’re Building

Expected Results

Say you publish 3 videos a week and you want real insight from the top 100 comments on each. Manually skimming, sorting, and summarizing usually takes about 45 minutes per video, so you’re spending around 2–3 hours a week just to produce a “best guess” summary. With this workflow, adding the ID to Google Sheets takes a minute, and the rest runs in the background. You typically get the Gmail report after a short wait while comments are fetched and analyzed, and you’re done for the week.

Before You Start

  • n8n instance (try n8n Cloud free)
  • Self-hosting option if you prefer (Hostinger works well)
  • Google Sheets for logging video IDs and status.
  • Gmail to send the formatted report email.
  • YouTube API credentials (get them from Google Cloud Console APIs & Services).
  • OpenAI API key (get it from the OpenAI dashboard).

Skill level: Intermediate. You’ll connect accounts, add API keys, and slightly adjust prompts and email recipients.

Want someone to build this for you? Talk to an automation expert (free 15-minute consultation).

Step by Step

A Google Sheet row is marked “Pending.” The workflow watches your spreadsheet for new or updated rows and only proceeds when the Status column is set correctly.

The workflow fetches YouTube details and comments. Using the YouTube Video ID, it pulls basic metadata, then collects up to 100 top comments via an HTTP request to the YouTube API.

Metrics are calculated and the AI generates insights. A code step prepares comment stats and a trimmed comment set, then the AI Agent (GPT-4 via the OpenAI Chat Model) produces sentiment, themes, viewer questions, and clear recommendations.

A formatted Gmail report is sent and the sheet is updated. Another code step builds the HTML email, Gmail sends it, and the workflow marks the row as “Mail Sent” so you don’t get duplicates.

You can easily modify the analysis prompt to focus on brand mentions, product feedback, or content ideas based on your needs. See the full implementation guide below for customization options.

Step-by-Step Implementation Guide

Step 1: Configure the Google Sheets Trigger

This workflow starts when new or updated rows are detected in your Google Sheet via Retrieve Sheet Video IDs.

  1. Add Retrieve Sheet Video IDs and set Document to [YOUR_ID] and Sheet to Youtube_Video.
  2. Set the polling schedule to Every Minute (already configured in pollTimes).
  3. Credential Required: Connect your Google Sheets credentials.

Step 2: Connect Google Sheets

Use the incoming row data to filter pending items and prepare your video parameters.

  1. In Check Pending Status, confirm the condition compares Status to Pending using {{ $json.Status }}.
  2. In Throttle Items, keep the default limit or set a custom item cap if you want to control throughput.
  3. In Map Video Parameters, set videoId to {{ $json['Youtube video id'] }} and maxComments to 100.
Keep your Google Sheet column names consistent with Youtube video id and Status to avoid missing data when Map Video Parameters runs.

Step 3: Set Up YouTube Data Retrieval

Fetch metadata and comments for the target video ID, then compute summary statistics.

  1. In Fetch YouTube Metadata, set Video ID to {{ $json.videoId }}, Resource to video, and Operation to get.
  2. Credential Required: Connect your YouTube OAuth2 credentials.
  3. In Retrieve YouTube Comments, set URL to https://www.googleapis.com/youtube/v3/commentThreads and keep Authentication as predefinedCredentialType with nodeCredentialType set to youTubeOAuth2Api.
  4. Confirm the query parameters include part snippet, videoId {{ $('Map Video Parameters').item.json.videoId }}, maxResults 100, and order relevance.
  5. In Process Comment Metrics, keep the existing JavaScript to calculate totals, averages, top comments, and sentiment counts.
Credential Required: Connect your YouTube OAuth2 credentials to both Fetch YouTube Metadata and Retrieve YouTube Comments.

Step 4: Set Up AI Analysis

The AI layer analyzes comment text and produces a structured JSON response used in the email report.

  1. In Analyze Comments with AI, keep the Text field as Analyze these comments from the video "{{ $json.videoTitle }}": ... {{ $json.commentTexts }} to pass metrics and comment text into the prompt.
  2. Set or confirm the System Message requires JSON output with keys: overall_sentiment_breakdown, main_themes, common_questions, key_feedback_points, actionable_insights.
  3. In OpenAI Chat Engine, select the model gpt-4o-mini and set Response Format to json_object.
  4. Credential Required: Connect your OpenAI credentials in OpenAI Chat Engine (the AI tool for Analyze Comments with AI).
If the AI response isn't valid JSON, update the system prompt in Analyze Comments with AI to emphasize strict JSON output.

Step 5: Configure Output Actions

Build an HTML email report and send it, then mark the original row as completed.

  1. In Build Email HTML, keep the JavaScript that parses $json.output and generates emailHTML and subject.
  2. In Send Email Report, set Send To to [YOUR_EMAIL], Message to {{ $json.emailHTML }}, and Subject to {{ $json.subject }}.
  3. Credential Required: Connect your Gmail credentials in Send Email Report.
  4. In Mark Sheet as Sent, set Operation to update, match on Id, and update Status to Mail Sent using {{ $('Retrieve Sheet Video IDs').item.json.Id }}.
  5. Credential Required: Connect your Google Sheets credentials in Mark Sheet as Sent.
⚠️ Common Pitfall: If the email content appears blank, confirm Analyze Comments with AI returns valid JSON and Build Email HTML uses JSON.parse($json.output) successfully.

Step 6: Test and Activate Your Workflow

Run a manual test with a “Pending” row to confirm the data pipeline, AI response, and email report.

  1. In your sheet, add a row with a valid Youtube video id and set Status to Pending.
  2. Click Execute Workflow and verify the execution flow: Retrieve Sheet Video IDsCheck Pending StatusThrottle ItemsMap Video ParametersFetch YouTube MetadataRetrieve YouTube CommentsProcess Comment MetricsAnalyze Comments with AIBuild Email HTMLSend Email ReportMark Sheet as Sent.
  3. Confirm the email arrives with a subject like YouTube Analysis: [Video Title] - [#] comments analyzed.
  4. Verify the sheet row is updated to Mail Sent in the Status column.
  5. Turn the workflow Active to enable continuous monitoring.
🔒

Unlock Full Step-by-Step Guide

Get the complete implementation guide + downloadable template

Troubleshooting Tips

  • YouTube API credentials can expire or lack the right scopes. If fetching comments fails, check your Google Cloud Console project, enabled APIs, and quota first.
  • If you’re using Wait nodes or external processing, timing can be unpredictable. Increase the wait duration if the AI step runs before comments or metrics are fully available.
  • Default AI prompts are generic. Add your brand voice, what “good feedback” looks like, and the format you prefer early, because otherwise you will keep rewriting the email summary.

Quick Answers

What’s the setup time for this YouTube comment insights automation?

About 30 minutes if you already have your API keys.

Is coding required for this comment insights automation?

No. You’ll mostly connect Google Sheets, Gmail, and paste in API keys, then tweak the AI prompt.

Is n8n free to use for this YouTube comment insights workflow?

Yes. n8n has a free self-hosted option and a free trial on n8n Cloud. Cloud plans start at $20/month for higher volume. You’ll also need to factor in OpenAI API usage (often a few cents per report) and YouTube API quota limits.

Where can I host n8n to run this automation?

Two options: n8n Cloud (managed, easiest setup) or self-hosting on a VPS. For self-hosting, Hostinger VPS is affordable and handles n8n well. Self-hosting gives you unlimited executions but requires basic server management.

Can I modify this YouTube comment insights workflow for different use cases?

Yes, and you should. Most teams start by editing the AI Agent prompt to focus on brand mentions, product feedback, or content ideas, and by changing who receives the Gmail report. You can also adjust the “Retrieve YouTube Comments” step to pull fewer comments for faster runs, or expand it when you’re doing deeper research. If you want the results stored instead of emailed, swap the “Send Email Report” output for a Google Sheets update that writes the summary back into new columns.

Why is my Google Sheets connection failing in this workflow?

Usually it’s permissions or an expired OAuth connection. Reconnect your Google account in n8n, confirm the workflow has access to the exact spreadsheet, and double-check the column names match what the workflow expects (especially “YouTube Video ID” and “Status”).

What volume can this YouTube comment insights workflow process?

It’s designed to scale across many videos, but the practical limit is your n8n executions and API quotas. On n8n Cloud Starter, you can run thousands of executions per month, which is plenty for weekly reporting across a few channels. If you self-host, executions aren’t capped, so it mainly depends on your server and how many videos you queue as “Pending.” The workflow pulls up to 100 comments per video by default, so batching lots of videos at once can increase YouTube API usage and slow processing.

Is this YouTube comment insights automation better than using Zapier or Make?

Often, yes. This workflow benefits from n8n’s flexible logic (filters, code steps, and branching) and the ability to self-host when volume grows. Zapier or Make can work, but AI + API-heavy workflows tend to get expensive or awkward once you add “fetch comments, compute metrics, then format HTML.” If you only need a simple “new row in Sheets → send an email” flow, those tools can be faster to set up. If you’re unsure, Talk to an automation expert and explain your volume and reporting needs.

Once this is running, comment review becomes a repeatable system instead of a weekly rabbit hole. The workflow handles the scroll. You focus on what to change next.

Need Help Setting This Up?

Our automation experts can build and customize this workflow for your specific needs. Free 15-minute consultation—no commitment required.

Lisa Granqvist

Workflow Automation Expert

Expert in workflow automation and no-code tools.

×

Use template

Get instant access to this n8n workflow Json file

💬
Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Launch login modal Launch register modal