YouTube Comment Sentiment Analyzer
Configured with Google Sheets, HTTP Request, OpenAI Chat Model, Sentiment Analysis, and additional nodes. Review the connections and setup before adapting this template.
Node categories in this workflow
- Transform
- AI & models
- Routing
- Data store
- Web / API
- Trigger
Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.
Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.
How it works
The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.
| Node | Category | Type | Operation |
|---|---|---|---|
| Split Out | Transform | Split Out | See node parameters |
| OpenAI Chat Model | AI & models | OpenAI Chat Model | See node parameters |
| No Operation, do nothing | Routing | No Op | See node parameters |
| Get Video Urls from Google Sheet | Data store | Google Sheets | See node parameters |
| check next fetch time is available or not | Routing | If | See node parameters |
| check next fetch time is before the current time | Routing | If | See node parameters |
| Get Comments for video urls | Web / API | HTTP Request | See node parameters |
| Analyze sentiment of every comment | AI & models | Sentiment Analysis | See node parameters |
| Format fields as required to save in google sheet | Transform | Edit Fields | See node parameters |
| Insert and update comment in google sheet | Data store | Google Sheets | appendOrUpdate |
| Update last fetched time and next_fetch_time | Data store | Google Sheets | appendOrUpdate |
| No Operation, do nothing1 | Routing | No Op | See node parameters |
| When clicking ‘Test workflow’ | Trigger | Manual Trigger | See node parameters |
| Check Success Response | Routing | If | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.
Requirements
An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.
Credential types declared in the source
googleApihttpQueryAuthopenAiApi
Workflow notes
**How to Use This Workflow:**
How to Use This Workflow:
📝 YouTube Comment Sentiment Analyzer
-
🔘 Trigger: Click "Execute Workflow" to run it manually.
-
📄 Your Google Sheet should have 2 sheets:
-
Sheet1 (Results with Sentiment):
- Column A:
commentId(YouTube comment id) - Column B:
video_url(url of video) - Column C:
comment(YouTube comment) - Column D:
authorName(Name of author as per Youtube) - Column E:
likes(Number of likes on that particular comment) - Column f:
reply(Number of replies on that particular comment) - Column g:
sentiment(Analyzed sentiment of the comment) - Column h:
published_at(timestamp of comment published)
- Column A:
-
Sheet2 (Video URLs):
- Column A:
video_urls(list of YouTube video URLs) - Column B:
last_fetched_time(timestamp of the last fetch) - Column C:
next_fetch_time(time for the next fetch)
- Column A:
-
-
🔐 Make sure these credentials are set up:
- Google Sheets (Service Account)
- YouTube Data API v3
- OpenAI API Key (for sentiment analysis)
-
✅ What this workflow does:
- Reads video URLs from Sheet2.
- Checks last fetched time (if applicable).
- Fetches new comments from YouTube.
- Analyzes sentiment using OpenAI.
- Appends comment, sentiment, video ID, and timestamp to Sheet1.
- Updates last_fetched timestamp in Sheet2.
-
💡 Tip:
- You can replace the Manual Trigger with a Cron node for automatic execution at specified intervals.
YouTube Comment Sentiment Analyzer
YouTube Comment Sentiment Analyzer
Purpose and structure
This folder contains the YouTube Comment Sentiment Analyzer workflow. Its executable nodes use googleSheets, httpRequest, if, lmChatOpenAi, manualTrigger, noOp, sentimentAnalysis, set, splitOut. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.
Setup
Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.
Entry points
When clicking ‘Test workflow’
Verification
Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.
Attribution
https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Splitout/2016_Splitout_Noop_Automation_Webhook.json MIT; preserve source notices.
Canvas section labels
These name areas of the original canvas; they do not include explanatory instructions.
- 🚀 YouTube Comment Sentiment Analyzer with Google Sheets & OpenAI