FM
FlowMarket
Video & Media Intermediate ⚑ 10 n8n Nodes

Gemini AI video analysis

πŸ“ Overview This workflow leverages Google Gemini 2.0 Flash multimodal AI to automatically generate detailed descriptions of video content from any public UR...

πŸ”Œ Nodes & Integrations Used (1)

HTTP Request

πŸ“– Implementation & Setup Guide

πŸ“ Overview

This workflow leverages Google Gemini 2.0 Flash multimodal AI to automatically generate detailed descriptions of video content from any public URL. It streamlines video understanding, making it ideal for content cataloging, accessibility, and content moderation.

πŸ’‘ Use Cases

  • β™Ώ **Accessibility**: Automatically generate detailed video descriptions for visually impaired users.
  • πŸ›‘οΈ **Content Moderation**: Detect inappropriate or off-brand material without manual watching.
  • πŸ—‚οΈ **Media Cataloging**: Enrich your media library with automatically extracted metadata.
  • πŸ“ˆ **Marketing & Branding**: Gain fast insights into key elements, tone, and branding in video content.

βš™οΈ Setup Instructions

  1. **πŸ”‘ Get a Gemini API Key**
  2. - Register at [ai.google.dev](https://ai.google.dev/) and create an API key.
  3. - **Before running the workflow, set your Gemini API key as an environment variable named `GeminiKey`** for secure access within the workflow.
  4. - In the `Set Input` node, reference this environment variable instead of hardcoding the key.

2. **🌐 Configure Video URL** - Replace the sample URL in the `Set Input` node with your desired public video URL. - Ensure the video is directly accessible (no login or special permissions required).

3. **πŸ“ Optional: Customize the Analysis** - Edit the prompt in the `Analyze video Gemini` node to focus on the most relevant video details for your use case (e.g., branding, key actions, visual elements).

4. **πŸ”’ Security Tip** - Use n8n's credentials manager or environment variables (like `GeminiKey`) to store your API key securely. - Avoid hardcoding API keys directly in workflow nodes, especially in production environments.

πŸ”„ How It Works

  1. πŸ“₯ **Download** the video from the provided URL.
  2. ☁️ **Upload** the video to Gemini’s server for processing.
  3. ⏳ **Wait** for Gemini to complete processing.
  4. πŸ€– **Analyze** the video with Gemini AI using your customized prompt.
  5. πŸ“„ **Output** a comprehensive description of the video as `videoDescription`.

⚑ Technical Details

  • Uses HTTP Request nodes to interact with Gemini API endpoints.
  • Handles file download, upload, status checking, and result retrieval.
  • Customizable Gemini AI parameters for fine-tuned response.
  • Main output: `videoDescription` (detailed text describing video content).

πŸš€ Quickstart

  1. Set your Gemini API key as the `GeminiKey` environment variable and configure your video URL in the workflow.
  2. Execute the workflow.
  3. Retrieve your rich, AI-generated video description for downstream use such as automation, tagging, or reporting.

⚑ How to import this workflow into n8n:

  1. Click the Direct Download JSON button above to save __ Gemini AI video analysis.json.
  2. Log in to your n8n Cloud or self-hosted n8n instance.
  3. In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
  4. Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
  5. Click Execute Workflow to test and switch to Active!

Related Video & Media Workflows

View All in Video & Media β†’