YouTube comment analysis with GPT-4o & automated email reports via Gmail
Needs changesWhat this workflow does
This AI workflow has 12 nodes and runs on Google Sheets events. Along the way it connects YouTube, Gmail, Google Sheets and Azure OpenAI Chat Model.
How it runs
Trigger: On Google Sheets events.
- If: checks a condition and branches into true / false
- Limit: keeps the first few items
- Set Video Details (Edit Fields (Set)): sets or maps fields
- Get Youtube Video Details (YouTube): uses YouTube
- Get Youtube Video Comments (HTTP Request): calls an HTTP API
- Prepare Comments Data (Code): runs custom JavaScript code
- AI Agent: runs an AI agent, with model: Azure OpenAI Chat Model
- Prepare HTML for Email (Code): runs custom JavaScript code
- Gmail: uses Gmail
- Update Status on Google Sheet (Google Sheets): uses Google Sheets
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Sheets + Azure OpenAI templates (88) · Other YouTube + Google Sheets templates (78)
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in AI Agent (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Agent (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (11)
- Limit
n8n-nodes-base.limit - AI Agent
@n8n/n8n-nodes-langchain.agent - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - YouTube
n8n-nodes-base.youTube - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Gmail
n8n-nodes-base.gmail - Google Sheets
n8n-nodes-base.googleSheets - Google Sheets Trigger
n8n-nodes-base.googleSheetsTrigger - Azure OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatAzureOpenAi
From the author
Description: Leverage the power of ChatGPT and YouTube API to monitor, analyze, and report on video feedback automatically. This n8n automation template fetches comments from a YouTube video, performs advanced AI sentiment analysis, identifies key themes, and…