Video AI Analyzer
Perform AI-powered video Operations (analysis, Review, Summarize, etc). <br><em>Beta: Currently supports Google Gemini models only. More AI providers coming soon!</em>
Overview
The Video AI Analyzer node enables AI-powered analysis of videos using Google Gemini models. It downloads a video from a provided URL, applies a custom prompt for analysis, and returns the AI-generated result. This node is ideal for scenarios such as:
- Summarizing video content automatically.
- Extracting insights or generating reviews from video files.
- Applying custom instructions (prompts) to analyze specific aspects of a video.
Practical examples:
- Automatically generate a summary of a YouTube lecture.
- Analyze customer sentiment in a product review video.
- Extract key points from a webinar recording.
Properties
| Name | Type | Meaning |
|---|---|---|
| Video URL | String | URL of the video to analyze. The node will download the video from this address. |
| Custom Prompt | String | Custom instruction or question for the AI to use when analyzing the video. |
| Model | Options | Selects which Google Gemini model to use for the analysis. |
| Temperature | Number | (Options > Temperature) Controls randomness of the AI output (0.0 = deterministic, 1.0 = very random). Default is 0.5. |
| Maximum Video Size (MB) | Number | (Options > Maximum Video Size) Sets the maximum allowed size (in MB) for the video to be downloaded and analyzed. Default is 25 MB. |
Note: There is also a non-functional branding notice property ("Created by HadidizFlow.com") that does not affect execution.
Output
The node outputs an array of items, each with a json field containing:
{
"text": "<AI generated analysis or summary based on your prompt>"
}
- If an error occurs and "Continue On Fail" is enabled, the output will be:
{
"error": "<Error message>"
}
No binary data is produced; all results are returned as JSON text.
Dependencies
- Google Generative AI API: Requires a valid API key via n8n credentials named
googlePalmApi. - External Libraries: Uses
@google/generative-aiandnode-fetch(bundled). - Internet Access: The node must be able to access the video URL and connect to Google's API.
Troubleshooting
Common Issues:
- Invalid Video URL: If the video cannot be downloaded (e.g., due to a broken link or network issue), you will receive an error like:
Failed to download video: <statusText>
- Video Too Large: If the video exceeds the specified maximum size, the error will be:
Video size (<actual size> MB) exceeds maximum allowed size (<limit> MB)
- API Key Issues: If the Google API key is missing or invalid, authentication errors will occur.
- Unsupported Video Format: If the video format is not supported by the AI model, the analysis may fail.
How to resolve:
- Double-check the video URL and ensure it is accessible.
- Increase the "Maximum Video Size" option if your video is too large.
- Ensure your Google API key is correctly configured in n8n credentials.
- Use standard video formats (e.g., MP4).