Automate YouTube Video Summaries & Transcripts with n8n

Struggling to manually extract insights from YouTube videos? This n8n workflow automates transcription, summarization, and visual scene analysis with Google’s Gemini API — delivering fast, detailed video content insights that save hours.
manualTrigger
set
switch
+4
Workflow Identifier: 1006
NODES in Use: Manual Trigger, Set, Switch, HTTP Request, Code, If, Sticky Note
Automate YouTube video summaries with n8n and Google API

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

Learn how to Build this Workflow with AI:

What This Workflow Does

This workflow takes a YouTube video URL and sends it to Google’s Gemini AI to get text outputs that help understand the video quickly.
It can make transcripts, summaries, scene details, or social media clips based on your choice.
This saves many hours of watching and writing by hand.

You input a video link and select what you want: full text, timestamps, summary, or scenes.
The workflow handles requests and returns useful text you can use fast.


Who Should Use This Workflow

This is good for anyone who works with video content and needs text results quickly.
Examples include bloggers, social media managers, teachers, and marketers.

If spending many hours typing transcripts or summaries wastes time, this workflow helps a lot.
It also fits users who want fast text info for video analysis without heavy manual work.


Tools and Services Used

  • n8n Automation Platform: to build and run the workflow.
  • Google Gemini AI API: for generating text content from videos.
  • YouTube: source of public videos for analysis.

The workflow connects these to automate video text extraction smoothly.


Inputs, Processing, and Outputs

Inputs

  • YouTube video URL (must be public).
  • API Key for Google Gemini AI.
  • Prompt type indicating desired output (e.g. transcript, summary).

Processing

  • Workflow picks prompt type and sets the right AI prompt.
  • Sends a detailed request to Google Gemini’s API including video URL.
  • Receives AI-generated text results and merges them with existing data.
  • Prepares clean outputs including text and token usage statistics.

Outputs

  • Text transcript or summary or scene description based on selection.
  • Token counts and AI model version for monitoring.

Beginner Step-by-Step: Using This Workflow in Production

Import Workflow

  1. Download the workflow file using the Download button on this page.
  2. Open the n8n editor where all workflows are managed.
  3. Click on “Import from File” and choose the downloaded workflow file.

Configure Settings

  1. Find the Set: Define Initial Variables node.
  2. Enter your Google API Key exactly, and paste the YouTube video URL to analyze.
  3. Choose prompt type from: transcript, timestamps, summary, scene, clips.
  4. Update any IDs, emails, or folder names if the workflow uses external services.

Test and Activate

  1. Run the workflow once using the Manual Trigger node to check outputs.
  2. Look at the output, fix any errors or wrong inputs.
  3. When satisfied, activate the workflow by toggling the active switch in n8n.

If self-hosting n8n, see self-host n8n for deployment tips.


Workflow Breakdown

Step 1: Manual Trigger

This node starts the process when clicked manually.
Useful for testing or on-demand runs.

Step 2: Set Initial Variables

This sets key info like API Key, video URL, and prompt type.
These feed into later nodes.

Step 3: Switch Node

Switch chooses which branch to run based on prompt type.
Routes the workflow to desired output format.

Step 4: Set Prompt Nodes

Each output type has its own Set node with a special text prompt.
The prompt guides Gemini AI on what text to generate.

Step 5: Merge Data

A Set node merges previous info to prepare for API call.
Keeps all important data together.

Step 6: HTTP Request to Google Gemini

Sends a POST request with prompt and video URL.
Receives AI text results.

Step 7: Code Node Merges Output

This JavaScript merges AI response with prior node data.
Ensures no info is lost in transformation.

Step 8: Set Final Fields

This cleans the AI response into named fields.
Makes output easy to read and use.

Step 9: Optional Error Handling

If enabled, checks for API errors and handles them properly.
Helps keep workflow stable.


Customizations

  • Change model names in Set nodes to test different AI versions.
  • Use a Webhook node instead of Manual Trigger for automatic runs.
  • Connect output to Notion, Google Docs, or Airtable to save text results.
  • Send multiple prompts in one run by duplicating branches from the Switch node.
  • Edit prompt text to fit specific video types or add SEO keywords.

Troubleshooting

  • Unauthorized Errors: Check API Key is correct and active in Google Cloud Console.
  • Empty or Wrong Output: Confirm YouTube URL is public and correct.
  • Code Node Reference Errors: Confirm exact node names in JavaScript code.

Pre-Production Checklist

  • Verify API Key is valid and not expired.
  • Ensure YouTube video URL is publicly accessible.
  • Check all prompt texts are correct and complete.
  • Run tests for all prompt types manually.
  • Backup workflow before changes.

Deployment Guide

Turn the workflow active in n8n.
If using scheduled runs or webhooks, set triggers accordingly.

Watch execution logs to confirm correct responses.
Add notifications or saving actions after processing if needed.


Conclusion

This workflow cuts down manual video text work by using Google Gemini AI inside n8n.
Inputting a YouTube link and selecting output type gives fast transcripts or summaries.

It saves time, increases productivity, and reduces errors.
Users get clear, ready text they can use immediately.

Try importing and testing the workflow to see how much manual effort can be removed.


Summary

✓ Saves hours of manual video transcription and summarization.
✓ Lets user choose type of output text from one video link.
✓ Sends clear prompts to Google Gemini AI for precise results.
✓ Runs inside n8n for easy automation and extension.
✓ Works well for content creators, marketers, and educators who handle video text.


Automate YouTube video summaries with n8n and Google API

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Possibly yes if the video URL format is supported and public. The HTTP request may need changes.
API usage depends on video length and number of requests. Check Google Gemini API pricing for details.
Verify the Google API Key is correct and has permission in Google Cloud Console.
Data goes over HTTPS to Google. Keep API keys private to protect data security.

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.