Skip to content
MORNINGMETHOD
Split OutOpenAI Chat ModelNo Operation, do …Get Video Urls fr…check next fetch …check next fetch …Get Comments for …Analyze sentiment…Format fields as …Insert and update…Update last fetch…No Operation, do …When clicking ‘Te…Check Success Res…
The workflow you get14 nodes
  • n8n
  • OpenAI
  • Google Sheets
  • HTTP Request
  • Sentiment Analysis

YouTube Comment Sentiment Analyzer

The AI reads your YouTube comments and tells you if people are happy or not.

Best for: Creators reading audience feedback

$19.00Regular price $49.0061% off
  • Card or PayPal
  • Instant download
  • Setup guide included
Delivery
Download after payment
Format
n8n workflow + guide (ZIP)
Access
Re-download any time

Setup

What you need, and how to set it up

It starts when you click the button. No code needed. Follow the steps in order.

What you need

  • An n8n account

    The app that runs the automation.

    Free to self-host, or a free trial on n8n Cloud.

  • OpenAI API keyPay as you go, usually a few cents a day

    A secret password that lets n8n use ChatGPT's brain.

    Get it: Go to platform.openai.com, open API keys, and click Create new secret key. Copy it. Show me how to connect OpenAI API key (opens n8n docs)

    Used by: OpenAI Chat Model

  • Google service accountFree

    A robot Google account n8n signs in with.

    Get it: In Google Cloud, create a service account and download its JSON key. Show me how to connect Google service account (opens n8n docs)

    Used by: Get Video Urls from Google, Insert and update comment , Update last fetched time a

  • API key for a web service

    A secret password for the website this workflow talks to.

    Get it: Sign up on that service and copy its API key. Show me how to connect API key for a web service (opens n8n docs)

    Used by: Get Comments for video url

Setup in 6 easy steps

  1. Step 1: Get n8n

    n8n is the app that runs your automation. Make a free account at n8n.io. That is the easy way. You can also put it on your own computer for free.

  2. Step 2: Download your file

    After you pay, open My downloads and download the ZIP. Double-click it to open it. Inside is a file called workflow.json.

  3. Step 3: Put it in n8n

    In n8n, click Create workflow. Click the three dots (⋯) at the top, then Import from file, and pick workflow.json. Now you see the same boxes as in the picture above.

  4. Step 4: Connect your accounts

    Some boxes show a little red triangle. That means they need a key. Click the box, click Create new credential, and paste the key from your list. Do this for each red box.

  5. Step 5: Try it once

    Click Test workflow. Green ticks on the boxes mean it worked.

  6. Step 6: Use it

    Click Save. Each time you want it to run, open it and click Test workflow.

Stuck? Email support@morningmethod.co and we will help you.

Category: Automations › Social Media & Content · Best for: Creators reading audience feedback · Platform: n8n · Steps: 14

What it does

The AI reads your YouTube comments and tells you if people are happy or not.

YouTube Comment Sentiment Analyzer with Google Sheets & OpenAI

Works with: OpenAI, Google Sheets, Sentiment Analysis

What you get

  • The n8n workflow file (workflow.json), ready to import
  • This setup guide
  • The list of fields to change for your own accounts (see Install below)
  • Email support if you get stuck

Before you start

  1. An n8n account. Easiest: n8n Cloud (free trial). Self-host for free with Docker: docker run -it --rm -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n, then open http://localhost:5678.

  2. Accounts and API keys for these services:

    • OpenAI API key: how to connect (used by OpenAI Chat Model)
    • Google (Sheets, Gmail, Drive, Calendar, Docs): how to connect (used by Get Video Urls from Google Sheet, Insert and update comment in google sheet, Update last fetched time and next_fetch_time)
    • API key sent as a query parameter (see the node for which service): how to connect (used by Get Comments for video urls)

Install

  1. In n8n, click Create workflow (top right).
  2. Click the ⋯ menu → Import from file and choose workflow.json. Or open the file, copy everything and paste it onto the empty canvas with Ctrl/Cmd + V.
  3. Open each node with a red warning triangle and pick or create the matching credential from the list above.
  4. Point these fields at your own sheets, chats and accounts:
    • Get Video Urls from Google Sheet → sheetName: choose your own
    • Get Video Urls from Google Sheet → documentId: choose your own
    • Insert and update comment in google sheet → sheetName: choose your own
    • Insert and update comment in google sheet → documentId: choose your own
    • Update last fetched time and next_fetch_time → sheetName: choose your own
    • Update last fetched time and next_fetch_time → documentId: choose your own
  5. Click Save.

Test it

  1. Click Test workflow (or Execute workflow). When clicking ‘Test workflow’ starts it. Trigger it once with real sample data.
  2. Click each node to check its output. A green tick means the step worked.
  3. Fix any red node: it's almost always a credential or a field that still points at a sheet or chat that isn't yours.

Go live

Toggle Active (top right). From now on it runs on its own. Check Executions in the left sidebar to see every run.

How it works, step by step

  1. When clicking ‘Test workflow’ starts the workflow (Manual).
  2. OpenAI Chat Model uses AI (OpenAI).
  3. Get Video Urls from Google Sheet uses Google Sheets.
  4. Analyze sentiment of every comment uses AI (Sentiment Analysis).
  5. check next fetch time is available or not checks a condition and routes items accordingly.
  6. Format fields as required to save in google sheet reshapes the data for the next step.
  7. Get Comments for video urls calls an external API (https://www.googleapis.com/youtube/v3/commentThreads).
  8. check next fetch time is before the current time checks a condition and routes items accordingly.
  9. Insert and update comment in google sheet uses Google Sheets to appendOrUpdate.
  10. Check Success Response checks a condition and routes items accordingly.
  11. No Operation, do nothing uses No Op.
  12. Update last fetched time and next_fetch_time uses Google Sheets to appendOrUpdate.
  13. Split Out uses Split Out.
  14. No Operation, do nothing1 uses No Op.

Extra setup notes

These notes are also on the canvas as yellow sticky notes:

YouTube Comment Sentiment Analyzer with Google Sheets & OpenAI

How to Use This Workflow:

YouTube Comment Sentiment Analyzer

  1. Trigger: Click "Execute Workflow" to run it manually.

  2. Your Google Sheet should have 2 sheets:

  • Sheet1 (Results with Sentiment):

    • Column A: commentId (YouTube comment id)

    • Column B: video_url (url of video)

    • Column C: comment (YouTube comment)

    • Column E: likes (Number of likes on that particular comment)

    • Column f: reply (Number of replies on that particular comment)

    • Column g: sentiment (Analyzed sentiment of the comment)

    • Column h: published_at (timestamp of comment published)

  • Sheet2 (Video URLs):

    • Column A: video_urls (list of YouTube video URLs)
    • Column B: last_fetched_time (timestamp of the last fetch)
    • Column C: next_fetch_time (time for the next fetch)
  1. Make sure these credentials are set up:
  • Google Sheets (Service Account)
  • YouTube Data API v3
  • OpenAI API Key (for sentiment analysis)
  1. What this workflow does:
  • Reads video URLs from Sheet2.
  • Checks last fetched time (if applicable).
  • Fetches new comments from YouTube.
  • Analyzes sentiment using OpenAI.
  • Appends comment, sentiment, video ID, and timestamp to Sheet1.
  • Updates last_fetched timestamp in Sheet2.
  1. Tip:
  • You can replace the Manual Trigger with a Cron node for automatic execution at specified intervals.

Troubleshooting

  • "Credentials not found": open the node and select your credential again.
  • Google "access blocked": in Google Cloud, add your email as a test user on the OAuth consent screen.
  • Webhook not firing: copy the node's Production URL (not Test URL) into the other app, and make sure the workflow is Active.
  • AI node errors: check your API key has billing enabled and the model name exists on your plan.
  • Nothing happens on schedule: the workflow must be Active, and self-hosted n8n must stay running.

Need help?

Reply to your Morning Method order email and we'll help you get it running.


© Morning Method

$19.00Regular price $49.0061% off
YouTube Comment Sentiment Analyzer | n8n Automation | Morning Method