Skip to main content

Analyze YouTube comments sentiment & keywords with Gemini AI and Telegram reporting

Workflow preview

Workflow preview
100%
Analyze YouTube comments sentiment & keywords with Gemini AI and Telegram reporting preview
Open on n8n.io

Important notice

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

1. Workflow Overview

YouTube Comment Sentiment & Keyword Extractor Template Google Sheets: Click here to open This...

Best for

  • Market Research automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.googlesheets, n8n-nodes-base.splitinbatches, n8n-nodes-base.httprequest, n8n-nodes-base.set, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.chainllm, @n8n/n8n-nodes-langchain.outputparserstructured

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Budi SJ.

Original n8n.io source

1.1 Workflow description

Title
Analyze YouTube comments sentiment & keywords with Gemini AI and Telegram reporting
Workflow name
Analyze YouTube comments sentiment & keywords with Gemini AI and Telegram reporting

YouTube Comment Sentiment & Keyword Extractor

Template Google Sheets: Click here to open

This workflow automatically retrieves comments from YouTube videos listed in Google Sheets, analyzes sentiment and keywords using an LLM, stores the results, then generates an aggregate summary and sends a report to Telegram.


✨ Key Features

  • Automated Scheduling – Runs the process at regular intervals.
  • Google Sheets Integration – Fetches a list of videos and stores analysis results directly in Google Sheets.
  • YouTube Comment Retrieval – Retrieves top-level comments (up to 100 per video; can be extended with pagination).
  • Comment Parsing – Flattens the API response into one item per comment.
  • AI Sentiment & Keyword Analysis – Powered by an LLM model to extract:
    • Sentiment (positive, neutral, negative)
    • Sentiment score (-1 to 1)
    • Keywords (cleaned from stopwords, emojis, hashtags)
    • Language (ISO 639-1, 2-letter code)
  • Data Normalization – Ensures LLM output is consistent and safe to write to the sheet.
  • Telegram Reporting – Sends a concise report for each video directly to a Telegram chat.

🔐 Required Credentials

  • Google Sheets OAuth2 API – Read & write access to the spreadsheet.
  • YouTube Data API Key – To fetch comments via commentThreads.
  • OpenRouter API Key – To access the LLM model.
  • Telegram Bot API – To send reports via a Telegram bot.

🎁 Benefits

  • End-to-End Automation – From comment retrieval to reporting, no manual steps required.
  • No Duplication – Each comment is uniquely tracked by comment_id.
  • Data Transparency – Raw and analyzed data stored neatly in Google Sheets.
  • Actionable Insights – Sentiment and keyword summaries ready for content strategy decisions.
  • Scalable – Can be extended for pagination, reply comment analysis, or additional metrics.
  • Cross-Platform – Direct Telegram integration for easy monitoring on any device.

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 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 2 - Get row(s) in sheet

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

Block 3 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 4 - HTTP Request

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

Block 5 - Youtube API Key

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

Block 6 - Code

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

Block 7 - Basic LLM Chain

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 8 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 9 - OpenRouter Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Block 10 - Code1

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

Block 11 - Append or update row in sheet

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

Block 12 - Aggregate

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

Block 13 - Code2

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

Block 14 - Send a text message

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 15 - No Operation, do nothing

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

Block 16 - Sticky Note1

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

Block 17 - Sticky Note

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

Block 18 - Sticky Note2

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

Block 19 - Sticky Note3

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

Block 20 - Sticky Note4

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

3. Summary Table

Workflow Analyze YouTube comments sentiment & keywords with Gemini AI and Telegram reporting
Complexity advanced
Nodes 20
Categories Market Research, Multimodal AI
Author Budi SJ
Published 15 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7434/7434.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 Analyze YouTube comments sentiment & keywords with Gemini AI and Telegram reporting do?

YouTube Comment Sentiment & Keyword Extractor Template Google Sheets: Click here to open This...

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, Multimodal AI use case.