Automate YouTube Video Analysis Using n8n & AI Models

Discover how to automatically extract, analyze, and summarize YouTube video transcripts using n8n integrated with AI models. This workflow saves you time and effort in content research and planning by delivering structured insights via email.
manualTrigger
code
httpRequest
+9
Workflow Identifier: 2169
NODES in Use: Manual Trigger, Code, HTTP Request, Set, If, Email Send, Sticky Note, Analyze LLM Chain, OpenAI Chat Model, OpenRouter Chat Model, DeepSeek Chat Model, Structured Output Parser
Automate YouTube video analysis with n8n and AI models

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Automation Does

This workflow automatically takes a YouTube video URL and finds its transcript using the youtube-transcript.io API.
It then checks if the transcript exists before using AI models like OpenAI GPT-4o-mini to analyze the text and make a clear summary.
Finally, the workflow sends the video summary by email.

This saves time by removing manual reading and creating neat summaries fast.


Who Should Use This Workflow

People who need to study many YouTube videos and want quick summaries.
Anyone working with video research, digital content, or marketing research that needs accurate, fast video insights.
No heavy tech skills needed. Basic n8n knowledge works fine.


Tools / Services Used

  • youtube-transcript.io API: Retrieves video transcripts.
  • OpenAI GPT-4o-mini, OpenRouter, DeepSeek: AI models for text summary.
  • SMTP Email Service: Sends summary emails.
  • n8n Automation Platform: Runs and connects all nodes.

Beginner Step-by-Step: How to Use This Workflow in Production

Download and Import Workflow

  1. Click the Download button on this page to save the workflow file.
  2. Inside the n8n editor, click the main menu and select “Import from File”.
  3. Choose the downloaded workflow file to add it to n8n.

Configure API and Email Settings

  1. Add your youtube-transcript.io API key in the HTTP Request node named Generate transcript.
  2. Enter OpenAI or chosen AI service API credentials in the linked nodes.
  3. Update the Email Send node with correct SMTP details and recipient email addresses.
  4. If needed, update any IDs, channels, or user emails in the nodes as per your needs.

Test and Activate

  1. Run the workflow once using the Manual Trigger node to confirm all settings work.
  2. Fix any errors shown in the execution log.
  3. Turn the workflow toggle on to activate for regular use.

For advanced production, consider replacing the Manual Trigger with a Webhook node to accept URLs from a web form.
For self hosting or more control, check resources for self-host n8n.


Inputs, Processing, and Outputs

Inputs

  • YouTube video URL (set in Set YouTube URL node or via webhook).
  • API keys and credentials for transcript extraction and AI.

Processing Steps

  1. Extract video ID from the YouTube URL using Code node.
  2. Send video ID to youtube-transcript.io API to fetch transcript via HTTP Request node.
  3. Extract transcript text and language using Set node.
  4. Confirm transcript exists with an If node.
  5. Concatenate transcript pieces into full text.
  6. Send full transcript to AI for summarization using Analyze LLM Chain node.
  7. Receive a structured summary with title and bullet points.
  8. Send summary email with result.

Outputs

  • Clear bullet-point summary of video content.
  • Email sent with video title and summary.

Edge Cases and Failure Handling

  • Videos without transcripts trigger checks that stop further processing.
  • Invalid YouTube URLs lead to empty video IDs; workflow pauses to avoid errors.
  • Missing or wrong API keys cause HTTP errors which show in logs for easy fixes.
  • Errors from AI summarization indicate credential or usage problems.
  • Email failures usually come from wrong SMTP settings; testing separately helps.

Check the execution logs in n8n to pinpoint failed steps.


Customization Ideas

  • Change between AI models by switching Analyze LLM Chain connections.
  • Add a Webhook node to get YouTube URLs from a web form dynamically.
  • Send emails to multiple addresses by entering comma-separated emails in Email Send node.
  • Include logic to filter transcripts by language before summarizing.

Summary of Benefits

✓ Saves hours spent watching videos and taking notes.
✓ Delivers accurate, clear summaries with technical details.
✓ Stops errors from missing transcripts automatically.
✓ Sends professional email summaries without manual work.
✓ Gives flexible AI model options and easy customization.


Automate YouTube video analysis with n8n and AI models

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

The workflow uses the youtube-transcript.io API to fetch the transcript by sending the video ID extracted from the YouTube URL.
The workflow uses a check to stop further processing if the transcript is missing, avoiding errors later in the nodes.
The workflow supports OpenAI GPT-4o-mini, OpenRouter, and DeepSeek models for text summarization.
Multiple email addresses can be added as a comma-separated list in the “To” field of the Email Send node.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.