YouTube Video Content Analyzer and Summarizer using Gemini AI - n8n Workflow

Use this powerful n8n workflow to instantly analyze YouTube videos using Gemini AI. Customize analysis prompts, handle conditional logic, and display summaries. Explore modern n8n templates for content creation.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

A Markdown-formatted string containing a bulleted list of user personas.

Technical Bloggers and Content Researchers who need rapid analysis of video transcripts.
Data Scientists and Analysts seeking to integrate video content analysis into their automation pipelines.
n8n users looking for advanced examples of how to combine Form Triggers, custom Code n8n node logic, and external AI APIs.
Developers interested in showcasing functional n8n templates that use multimodal AI.

Overview

This automation provides a user-friendly web interface that serves as a powerful front-end for Google's Gemini AI. The core problem it solves is the manual effort required to summarize and extract specific information from long-form videos. This n8n workflow takes a YouTube URL and an optional prompt from the user. Crucially, it employs a custom Code n8n node to ensure a robust default prompt is used if the user's request is empty, making the automation fail-safe. By demonstrating this powerful pattern, this example serves as one of the most effective n8n templates for AI integration.

How it Works

A Markdown-formatted string explaining the flow.


  1. Form Trigger Initiation: The n8n workflow starts with the Get Input Form Trigger n8n node. This presents a public web form where users input the required Video URL and an optional prompt describing the desired analysis (e.g., "Summarize in three sentences"). This n8n trigger waits for submission.

  2. Conditional Prompt Check: The data flows into the Check if description is empty Code n8n node. This node uses JavaScript to evaluate the input prompt. If the prompt is empty, the n8n node dynamically injects a detailed default prompt: "Please be as descriptive as possible about the contents being spoken of in this video after giving a detailed summary."

  3. AI Analysis Request: The prepared data moves to the Get analysis from Google Gemini HTTP Request n8n node. This n8n node is configured to communicate with the Gemini-2.0-flash API, sending the YouTube URL (as the file URI) and the optimized text prompt in the request body.

  4. Display Results: The AI response is captured and displayed to the user via the Analysis result Form n8n node, presenting the generated summary or analysis.

  5. Redirect for Repeat Use: Finally, the Redirect for another analysis Form n8n node is used to automatically send the user back to the initial Form Trigger, facilitating continuous use of this valuable n8n workflow without manual navigation.

Installation Guide

A Markdown-formatted string with installation instructions.


  1. Import the n8n workflow: Copy the provided JSON data and paste it directly into your n8n instance using the 'New' button and selecting 'Import from JSON'.

  2. Configure Gemini Credentials: The Get analysis from Google Gemini HTTP Request n8n node requires an API key in the header parameter x-goog-api-key. You must obtain a Google Gemini API key and configure it as a credential or insert it directly into the n8n node configuration.

  3. Activate the Trigger: Ensure the Get Input Form Trigger n8n node is activated. Copy the displayed webhook URL to access the public analysis form.

  4. Test the n8n template: Run the n8n workflow manually or access the published form URL to test the analysis using a valid YouTube video link.

Node Details

A Markdown-formatted string detailing specific node configurations.

Get Input (Form Trigger n8n trigger):
Function: Serves as the public entry point for the n8n workflow.
Key Configuration: Requires 'Video URL' as a mandatory input and includes an optional 'What do you want?' field for the specific analysis prompt.
Check if description is empty (Code n8n node):
Function: Implements core logic flow control. It checks if the user-provided prompt is blank (.trim() == "") and substitutes it with a rich default prompt if empty. This ensures the Gemini model always receives meaningful instruction.
Key Configuration: Custom JavaScript to modify the incoming data item based on conditional logic.
Get analysis from Google Gemini (HTTP Request n8n node):
Function: Connects the n8n workflow to the external Gemini API for multimodal analysis.
Key Configuration: Uses the POST method to the gemini-2.0-flash:generateContent endpoint. The JSON body dynamically inserts the processed prompt and the YouTube URL using n8n expressions ({{ $json.Video }}).
Analysis result (Form n8n node):
Function: Displays the final output from the AI to the user.
Key Configuration: The form description is dynamically set to the AI's output using the expression: {{ $json.candidates[0].content.parts[0].text }}.
Redirect for another analysis (Form n8n node):
Function: Provides seamless loop functionality, redirecting the user back to the initial n8n trigger form.
* Key Configuration: Operation set to completion with respondWith: redirect, targeting the URL of the initial Get Input n8n node.

Related n8n Workflows

Free

Nodes: 5 Nodes
Updated: December 26 2025
View all
Created by
Adrian Bent
Adrian Bent

Hey I'm Adrian. I got into automation to help me better understand and build systems. If you have any questions about my n8n templates/builds, feel free to ask, and I'll be happy to respond via email at [email protected]. Thanks for the time!

Featured*