Marketing
🎦🚀 YouTube Video Comment Analysis Agent
This n8n workflow retrieves YouTube video details and all comments. An AI agent (GPT-4o-mini) analyzes this data, generating a comprehensive report for creators. The report includes sentiment analysis, content opportunities, and actionable recommendations, which is then emailed…
Built · ~6 hours saved per week
YouTube Video Comment Analysis Agent
Workflow Overview This workflow automates the in-depth analysis of a specific YouTube video. It initiates by fetching comprehensive details about the video and, crucially, gathers _all_ of its comments using a paginated API approach. This consolidated data is then passed to a powerful AI agent. The agent, guided by a highly detailed and structured prompt, performs a multi-faceted analysis—covering sentiment, common themes, viewer pain points, and audience demographics. The final output is a comprehensive, actionable report formatted in Markdown, which is then automatically delivered as an HTML email via Gmail and saved as a document in Google Drive.
The primary goal is to transform raw video statistics and a sea of user comments into a strategic brief for content creators, providing data-driven insights to guide future content, improve engagement, and understand the audience on a deeper level.
Technologies Used - Core Platform: n8n - AI Model: OpenAI's gpt-4o-mini via the LangChain integration - APIs: Google (YouTube Data API v3) - Services: Gmail, Google Drive - Data Formats: JSON, Markdown, HTML - Languages: JavaScript (within Code nodes)
AI Integration The AI is the analytical engine of this workflow, functioning as a specialized "YouTube Analyst Agent."
- Model: The workflow uses the gpt-4o-mini model through the n8n LangChain Agent node. - Integration: After the workflow collects and consolidates all the video details and comments into a single JSON object, it sends this data to the AI agent. The agent is governed by an extensive system prompt that instructs it to perform a specific, structured analysis. - Function: The AI is tasked with generating a detailed report with eight distinct sections: 1. Video Overview: Summarizes video topics and performance metrics. 2. Comment Analysis: Conducts sentiment analysis and identifies common themes, engagement drivers, and viewer pain points. 3. Content Opportunities: Suggests topics for future videos based on comments. 4. Audience Profile: Infers audience expertise and interests. 5. Actionable Recommendations: Provides concrete steps for the creator. 6.
Tags: Reports & Analytics, Admin, Data Transformation, Google, Manual Trigger, Research
Integrations: Code, HTTP, Email, OpenAI, AI Agent, Google Drive