π¬ π₯ Gemini AI video analysis
β‘ 3,743 views Β· π¬ Content Creation & Video
Description
π 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
-
π Get a Gemini API Key
- Register at ai.google.dev and create an API key.
- Before running the workflow, set your Gemini API key as an environment variable named
GeminiKeyfor secure access within the workflow. - In the
Set Inputnode, reference this environment variable instead of hardcoding the key.
-
π Configure Video URL
- Replace the sample URL in the
Set Inputnode with your desired public video URL. - Ensure the video is directly accessible (no login or special permissions required).
- Replace the sample URL in the
-
π Optional: Customize the Analysis
- Edit the prompt in the
Analyze video Gemininode to focus on the most relevant video details for your use case (e.g., branding, key actions, visual elements).
- Edit the prompt in the
-
π 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.
- Use n8nβs credentials manager or environment variables (like
π How It Works
- π₯ Download the video from the provided URL.
- βοΈ Upload the video to Geminiβs server for processing.
- β³ Wait for Gemini to complete processing.
- π€ Analyze the video with Gemini AI using your customized prompt.
- π 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
- Set your Gemini API key as the
GeminiKeyenvironment variable and configure your video URL in the workflow. - Execute the workflow.
- Retrieve your rich, AI-generated video description for downstream use such as automation, tagging, or reporting.
π Nodes Used
HTTP Request
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File