{"product_id":"n8n-telegram-workflow-analyze-youtube-comments-with-gemini","title":"n8n Telegram Workflow: Analyze YouTube Comments with Gemini","description":"\u003ch3\u003eTurn any YouTube link into actionable audience insights—automatically in Telegram\u003c\/h3\u003e\n\u003cp\u003eThis \u003cstrong\u003en8n Telegram workflow\u003c\/strong\u003e lets you paste a YouTube video URL in a Telegram chat and instantly receive an AI-powered analysis of the video’s \u003cstrong\u003eaudience sentiment and recurring themes\u003c\/strong\u003e—including exactly \u003cstrong\u003eseven new video ideas\u003c\/strong\u003e.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTelegram trigger:\u003c\/strong\u003e Starts when the Telegram bot receives a message containing a YouTube video URL.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eURL validation:\u003c\/strong\u003e Validates the URL, extracts the video ID, and replies in Telegram with an error if the URL is invalid.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eYouTube Data API fetch:\u003c\/strong\u003e Calls the \u003cstrong\u003eYouTube Data API\u003c\/strong\u003e to retrieve video metadata and the \u003cstrong\u003etop 100 relevant comment threads\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eComment cleaning:\u003c\/strong\u003e Extracts key fields, removes empty entries, and \u003cstrong\u003ededuplicates by comment text\u003c\/strong\u003e to build a clean comment set.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGemini analysis:\u003c\/strong\u003e Sends video metadata and aggregated comments to \u003cstrong\u003eGoogle Gemini\u003c\/strong\u003e to produce a structured audience analysis (including sentiment and repeated questions\/content opportunities).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGenerate ideas:\u003c\/strong\u003e Uses Gemini again to generate \u003cstrong\u003eexactly seven\u003c\/strong\u003e new video ideas based on the repeated questions and highest-scoring opportunities.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReporting \u0026amp; logging:\u003c\/strong\u003e Appends the final report to \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e and sends a formatted summary back in Telegram.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eCreators and SaaS operators: quickly research what viewers are asking about a specific video.\u003c\/li\u003e\n  \u003cli\u003eContent teams: transform recurring comments into a prioritized list of next video topics.\u003c\/li\u003e\n  \u003cli\u003eAutomation engineers: build a repeatable \u003cstrong\u003en8n YouTube-to-AI-to-analytics\u003c\/strong\u003e workflow with messaging and logging.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTelegram\u003c\/strong\u003e node: receives the YouTube URL and replies with results.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eYouTube Data API\u003c\/strong\u003e: two HTTP requests for video details and \u003cstrong\u003ecommentThreads\u003c\/strong\u003e (top 100).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGoogle Gemini (Google PaLM)\u003c\/strong\u003e: two Gemini chat-mode calls for audience analysis and idea generation.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e: appends the analysis report.\u003c\/li\u003e\n  \u003cli\u003eCore n8n logic nodes: \u003cstrong\u003eif, set, filter, split out, telegram, aggregate\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cp\u003e\u003cstrong\u003eSetup required:\u003c\/strong\u003e connect a Telegram bot, add a \u003cstrong\u003eYouTube Data API key\u003c\/strong\u003e, and add \u003cstrong\u003eGoogle Gemini (Google PaLM) API credentials\u003c\/strong\u003e.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45814416212147,"sku":"N8N-18025","price":69.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/cUbK06be-b7t3-XFdIDbR_BEH0bue8.png?v=1786438935","url":"https:\/\/buyflowscripts.com\/products\/n8n-telegram-workflow-analyze-youtube-comments-with-gemini","provider":"N8N Commerce","version":"1.0","type":"link"}