Analyze YouTube comments and generate video ideas with Gemini and Telegram
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 YouTub...
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 new video ideas, logs the report to Google Sheets, and replies with the results in Telegram.
How it works
- Triggers when a Telegram bot receives a message containing a YouTube video URL.
- Validates the URL, extracts the video ID, and replies in Telegram with an error if the URL is invalid.
- Calls the YouTube Data API to fetch the video’s details and the top 100 most relevant comment threads.
- Cleans the comment list by extracting key fields, removing empty entries, and deduplicating by comment text.
- Sends the video metadata and aggregated comments to Google Gemini to produce a structured audience analysis including sentiment, repeated questions, and scored content opportunities.
- Uses Google Gemini again to generate exactly seven new video ideas based on the top repeated questions and highest-scoring opportunities.
- Appends the final report to Google Sheets and sends a formatted summary back to the requester in Telegram.
Setup
- Create/connect a Telegram bot credential in n8n and start a chat with the bot so it can receive messages.
- Add a YouTube Data API key and replace the placeholder values in both YouTube HTTP requests (video details and commentThreads).
- Add Google Gemini (Google PaLM) API credentials for the two Gemini chat model nodes.
- Connect Google Sheets using a Google Service Account, share the target spreadsheet with that service account, and select the document and sheet to append results to.
- Review the Telegram reply formatting and ensure the workflow sends the response to the incoming chat ID.
production deployment
Need this workflow deployed or tailored for your business?
I customize n8n pipelines, build proprietary API nodes, and connect production databases with sub-100ms reliability.
creator
iamvaar
Top 50 Verified Creator
AI Automation Engineer building production-grade n8n systems, custom nodes, and LLM pipelines.
n8n.io/creators/iamvaarspecs
related automations
More workflows from iamvaar
Track daily LLM brand visibility with Gemini, Groq, OpenRouter, Sheets and Slack
Quick overview Youtube Video: https://youtu.be/BOodBD6HWSU?si=yEenUFBdYOq1RVj This workflow runs daily at 7AM to generate buyer-style prompts with Google Gemini, query Groq, Ope...
Route weather-based delivery holds with Open-Meteo, Gemini, Postgres, and ServiceNow
Quick overview Demo Video: https://youtu.be/ccEy0J-LKY
Generate company due diligence PDFs with Google Gemini, SEC EDGAR, Serper and Gmail
Quick Overview This workflow starts from an n8n form submission and compiles due diligence research from SEC EDGAR, Google News RSS, the target website’s HTTP headers, and Serpe...
Want this workflow running in your stack?
Book a free 30-minute session. I'll inspect your current infrastructure, review required API credentials, and map out the deployment.