Block 1 - Manual Run
- Type / Role
- n8n-nodes-base.manualTrigger - manualTrigger
- Config choices
- Version 1
This workflow is provided as-is. Please review and test before using in production.
Classify YouTube Trends and Generate Email Summaries with GPT 4 and Gmail  or normal, and auto‑generate LinkedIn/email summaries with GPT‑4. Deliver via Gmail or SMTP. Clear node names, examples, and auditable fields.
This template monitors YouTube channels via RSS or the YouTube Data API, retrieves video stats, classifies each video as viral (≥ 1000 likes) or normal, and produces concise LinkedIn/email summaries with OpenAI (GPT‑4 family). It can send a compact weekly briefing via Gmail (OAuth2) or SMTP. Built for creators, marketing teams, and agencies who want automated trend alerts and ready‑to‑use content.
This screenshot shows the Gmail-ready weekly briefing generated by the Generate Weekly Briefing (HTML) node in my YouTube Trend Detector workflow, confirming the end-to-end pipeline: RSS/API → stats → like-based classification (≥ 1000 = viral) → LLM summaries → HTML email.
channelId values snippet,statistics for likes and details classification to viral or normal YouTube_API_Key — Generic credential (field: apiKey) OpenAi account — OpenAI API Key Gmail account (OAuth2) or SMTP_Default (SMTP)channelId values (e.g., UC…). apiKey) Classify by Likes (Code) → const THRESHOLD = 1000; part=snippet,statistics to obtain likeCount likeCount / classification = "unknown" → ensure part=statistics and a valid API key credential. redirect_mismatch / access_denied → redirect must be https://<your-n8n-host>/rest/oauth2-credential/callback and test users added if restricted. 1) Classification (single video)
{
"videoId": "abc123XYZ",
"title": "How to Ship an n8n Workflow with OpenAI",
"likeCount": 1587,
"classification": "viral",
"needsStatsFetch": false
}
2) LinkedIn draft (viral)
Did you know how much faster prompt workflows get with structured inputs?
• Setup: n8n + YouTube API + OpenAI for auto-briefs
• Tip: include `part=statistics` for reliable like counts
Useful for teams tracking trending how-to content.
What’s your best “viral” signal besides likes?
#n8n #YouTubeAPI #OpenAI #Automation #Growth
3) Plain‑text email preview
Subject: Weekly AI Briefing — YouTube Trend Highlights
Hi team,
Highlights from our tracked channels:
• Viral: “How to Ship an n8n Workflow with OpenAI” (1.6k likes)
• Normal: “RSS vs API: What’s Best for Monitoring?”
Generated via n8n + GPT‑4.
License: MIT
Support/Contact: [email protected]
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Classify YouTube videos & generate email summaries with GPT-4 and Gmail |
|---|---|
| Complexity | advanced |
| Nodes | 22 |
| Categories | Market Research, AI Summarization |
| Author | Kai Hölters |
| Published | 14 Oct 2025 |
Use the JSON export at /data/workflows/9616/9616.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
Classify YouTube Trends and Generate Email Summaries with GPT 4 and Gmail ![YouTube](https://im...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research, AI Summarization use case.