Analyze YouTube comments and generate video ideas with Gemini and Telegram
Ready for 3.0What this workflow does
This AI workflow has 22 nodes and runs on Telegram events (message). Along the way it connects Telegram, Google Gemini Chat Model and Google Sheets. It also calls googleapis.com over HTTP.
How it runs
Trigger: On Telegram events (message).
- Set Message Info (Edit Fields (Set)): sets 2 fields: messageText, chatId
- If: checks a condition and branches into true / false
- Set Video ID (Edit Fields (Set)): sets 2 fields: videoId, videoUrl
- Send Invalid URL Reply (Telegram): uses Telegram
- Fetch YouTube Video Details (HTTP Request): calls googleapis.com
- Fetch YouTube Comments (HTTP Request): calls googleapis.com
- Split Comment Items (Split Out): splits a list into separate items
- Set Comment Fields (Edit Fields (Set)): sets 4 fields: commentText, likeCount, author…
- Filter: keeps only the items that match a condition
- Deduplicate by Comment Text (Remove Duplicates): removes duplicate items
…plus 8 more steps. See the full node list below.
Services it uses
Other Google Gemini + Google Sheets templates (819) · Other Telegram + Google Sheets templates (674) · Other Telegram + Google Gemini templates (354)
HTTP calls to: googleapis.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (13)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Telegram
n8n-nodes-base.telegram - HTTP Request
n8n-nodes-base.httpRequest - Split Out
n8n-nodes-base.splitOut - Filter
n8n-nodes-base.filter - Remove Duplicates
n8n-nodes-base.removeDuplicates - Aggregate
n8n-nodes-base.aggregate - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Google Sheets
n8n-nodes-base.googleSheets
From the author
Quick overview Youtube Video: https://youtu.be/YtHfQONV4A4 This workflow accepts a YouTube video URL via Telegram, pulls the video metadata and top 100 comments using the YouTube Data API, analyzes audience sentiment and themes with Google Gemini, generates…