YouTube comment sentiment analysis with Google Gemini AI and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 14 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Sheets, Google Gemini Chat Model and QuickChart.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Get comments (Google Sheets): uses Google Sheets
- ID Video (Edit Fields (Set)): sets or maps fields
- Loop Over Comments (Loop Over Items (Split in Batches)): loops over the items in batches
- Get API Comments (HTTP Request): calls an HTTP API
- Sentiment Analysis: scores sentiment with AI, with model: Google Gemini
- Multipage? (If): checks a condition and branches into true / false
- Comments (Code): runs custom JavaScript code
- Update sentiment (Google Sheets): uses Google Sheets
- nextPageToken (Edit Fields (Set)): sets or maps fields
- Split comments (Split Out): splits a list into separate items
…plus 2 more steps. See the full node list below.
Services it uses
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 (11)
- Manual Trigger
n8n-nodes-base.manualTrigger - Sentiment Analysis
@n8n/n8n-nodes-langchain.sentimentAnalysis - Code
n8n-nodes-base.code - Split Out
n8n-nodes-base.splitOut - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - QuickChart
n8n-nodes-base.quickChart
From the author
This workflow automatically collects all comments from a specified YouTube video and analyzes the sentiment of each comment using an AI model (e.g., GPT, Claude or Gemini). The sentiment (Positive, Neutral, or Negative), its strength, and confidence score are…