Video Content Analyzer using Gemini AI (Form Upload & YouTube) - n8n Workflow

Use this powerful n8n workflow to analyze video content, summarizing uploaded files or public YouTube links instantly using the Google Gemini AI model. A great n8n template for media analysis.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Content marketers needing automated video summarization.
Researchers analyzing large video datasets.
Developers looking for advanced AI vision integration within an n8n workflow.
Anyone needing robust n8n templates for handling complex file uploads and external AI services.

Overview

This sophisticated n8n workflow provides dual functionality for video analysis using the Gemini 2.0 Flash model. It solves the common challenge of processing video content by offering two distinct entry points: secure file uploads via an n8n trigger form, and direct analysis of public YouTube links. Instead of manual transcription and summarization, this n8n automation extracts detailed descriptions or summaries automatically. This specific n8n workflow demonstrates advanced usage of the HTTP Request n8n node for file handling (for uploaded videos) and direct URL inference (for YouTube), making it a versatile and powerful addition to any automation suite. Utilizing this n8n workflow saves significant time in media processing.

How it Works

This n8n workflow operates via two main pathways, both leveraging the power of the Google Gemini AI via the HTTP Request n8n node:


  1. Form Upload Path (Video Files):

a. The process is started by the On form submission n8n trigger, which captures the uploaded video file.
b. The Upload File n8n node performs a multi-step HTTP POST request to the Google Generative API's upload endpoint, handling the binary data and staging the file.
c. A subsequent Wait n8n node introduces a short delay, ensuring the cloud infrastructure time to process the file URI.
d. The Get Analysis n8n node then calls the gemini-2.0-flash model, referencing the staged file URI and instructing the AI to provide a detailed description of the video.
e. Finally, the Video Analysis n8n node extracts the comprehensive textual description from the AI's response.


  1. YouTube Path (Public Links):

a. This path is initiated by a manual or test trigger.
b. The YouTube Video n8n node bypasses the upload step and calls the Gemini API directly, including the public YouTube URL in the file_data object and requesting a 3-sentence summary.
c. The Get Results n8n node processes and outputs the resulting summary text. This showcases how the same n8n workflow can handle different input types.

Installation Guide


  1. Import: Copy the provided n8n workflow JSON data and paste it into your n8n instance using the "Import Workflow" feature.

  2. API Key Setup: Obtain a Google Generative AI API Key (required for accessing Gemini).

  3. Credential Configuration: In your n8n instance, create an HTTP Query Auth credential using your Google API Key.

  4. Node Configuration: Apply this new credential to the following n8n node instances: Upload File, Get Analysis, and YouTube Video. These HTTP Request n8n nodes require authentication to function correctly.

  5. Activate: Save and activate the n8n workflow. The On form submission n8n trigger will immediately provide a usable URL for video file uploads, making this n8n template ready to use.

Node Details

On form submission (n8n trigger): The entry point for video file uploads. It is configured to require a single file input labeled "Video." This n8n trigger makes the automation highly accessible.
Upload File (HTTP Request n8n node): Crucial for handling large binary video data upload to the Google Generative API. It uses custom headers (X-Goog-Upload-Command) for multi-step file staging, a key technical aspect of this n8n workflow.
Get Analysis (HTTP Request n8n node): Sends the core analysis request to the gemini-2.0-flash model. It dynamically uses the uploaded file URI ({{ $json.file.uri }}) and includes a verbose text prompt for detailed video description.
Wait (n8n node): Used to introduce necessary delays in the processing path, ensuring the file upload is complete before the Get Analysis request is made.
Video Analysis / Get Results (Set n8n node): These nodes handle data manipulation, extracting the final descriptive text from the deeply nested structure of the Gemini API response.
YouTube Video (HTTP Request n8n node): This demonstrates a different capability of the Gemini n8n node integration, analyzing public YouTube URLs directly by including the URL in the request payload.

Related n8n Workflows

Free

Nodes: 6 Nodes
Updated: December 26 2025
View all
Created by
LeeWei
LeeWei

Featured*