Skip to main content

YouTube video content analyzer & summarizer with Gemini AI

Workflow preview

Workflow preview
100%
YouTube video content analyzer & summarizer with Gemini AI preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow takes two inputs, YouTube video URL (required) and a description of what information to extract from the video. If the description/"what you want" field is left empty, the default pro...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.formtrigger, n8n-nodes-base.code, n8n-nodes-base.httprequest, n8n-nodes-base.form

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Adrian Bent.

Original n8n.io source

1.1 Workflow description

Title
YouTube video content analyzer & summarizer with Gemini AI
Workflow name
YouTube video content analyzer & summarizer with Gemini AI

This workflow takes two inputs, YouTube video URL (required) and a description of what information to extract from the video. If the description/"what you want" field is left empty, the default prompt will generate a detailed summary and description of the video's contents. However, you can ask for something more specific using this field/input. ++ Don't forget to make the workflow Active and use the production URL from the form node.

Benefits

  • Instant Summary Generation - Convert hours of watching YouTube videos to familiar, structured paragraphs and sentences in less than a minute
  • Live Integration - Generate a summary or extract information on the contents of a YouTube video whenever, wherever
  • Virtually Complete Automation - All that needs to be done is to add the video URL and describe what you want to know from the video
  • Presentation - You can ask for a specific structure or tone to better help you understand or study the contents of the video

How It Works

  1. Smart Form Interface:
  • Simple N8N form captures video URL and description of what's to be extracted
  • Designed for rapid and repeated completion anywhere and anytime
  1. Description Check:
  • Uses JavaScript to determine if the description was filled in or left empty
  • If the description field was left empty, the default prompt is, "Please be as descriptive as possible about the contents being spoken of in this video after giving a detailed summary."
  • If the description field is filled, then the filled input will be used to describe what information to extract from the video
  1. HTTP Request:
  • We're using Gemini API, specifically the video understanding endpoint
  • We make a post HTTP request passing the video URL and the description of what information to extract

Setup Instructions:

HTTP Request Setup:

  1. Sign up for a Google Cloud account, join the Developer Program and get your Gemini API key

  2. Get curl for Gemini Video Understanding API

The video understanding relies on the inputs from the form, code and HTTP request node, so correct mapping is essential for the workflow to function correctly. Feel free to reach out for additional help or clarification at my Gmail: [email protected], and I'll get back to you as soon as I can.

Setup Steps:

  1. Code Node Setup:
  • The code node is used as a filter to ensure a description prompt is always passed on. Use the JavaScript code below for that effect: // Loop over input items and add a new field called 'myNewField' to the JSON of each one for (const item of $input.all()) { item.json.myNewField = 1;

    if ($input.first().json['What u want?'].trim() == "") { $input.first().json['What do you want?'] = "Please be as descriptive as possible about the contents being spoken of this video after giving a detailed summary";

}

}

return $input.all(); // End of Code

  1. HTTP Request:
  • To use Gemini Video Understanding, you'll need your Gemini API key
  • Go to https://ai.google.dev/gemini-api/docs/video-understanding#youtube. This link will take you directly to the snippet. Just select REST programming language, copy that curl command, then paste it into the HTTP Request node
  • Replace "Please summarize the video in 3 sentences." with the code node's output, which should either be the default description or the one entered by the user (second output field variable)
  • Replace "https://www.youtube.com/watch?v=9hE5-98ZeCg" with the n8n form node's first output field, which should be the YouTube video URL variable
  • Replace $GEMINI_API_KEY with your API key
  1. Redirect:
  • Use n8n form node, page type "Final Ending" to redirect user to the initial n8n form for another analysis or preferred destination

1.2 Logical Blocks

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.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Get Input

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.2

Block 4 - Check if description is empty

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - Get analysis from Google Gemini

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 6 - Analysis result

Type / Role
n8n-nodes-base.form - form
Config choices
Version 1

Block 7 - Redirect for another analysis

Type / Role
n8n-nodes-base.form - form
Config choices
Version 1

3. Summary Table

Workflow YouTube video content analyzer & summarizer with Gemini AI
Complexity intermediate
Nodes 7
Categories Content Creation, Multimodal AI
Author Adrian Bent
Published 18 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6152/6152.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

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.

Frequently asked questions

What does YouTube video content analyzer & summarizer with Gemini AI do?

This workflow takes two inputs, YouTube video URL (required) and a description of what information to extract from the video. If the description/"what you want" field is left empty, the default pro...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

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 Content Creation, Multimodal AI use case.