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.
Download this n8n workflow template and start using it instantly.
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.
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.
A Markdown-formatted string explaining the flow.
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.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."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.Analysis result Form n8n node, presenting the generated summary or analysis.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.A Markdown-formatted string with installation instructions.
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.Get Input Form Trigger n8n node is activated. Copy the displayed webhook URL to access the public analysis form.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.
Use this powerful n8n workflow to automatically find high-engagement YouTube trends in your niche, calculate performance metrics, and save filtered results to Google Sheets.

Automate video processing with this powerful n8n workflow. Transcribe YouTube videos, summarize and translate content using Google Gemini AI, and save the final document to Google Docs.

Generate professional YouTube thumbnails automatically using this powerful n8n workflow. It scrapes transcripts via Apify, generates DALL·E prompts with GPT-4o, and resizes the final image to 1280x720.

Leverage this advanced n8n workflow to automate YouTube SEO optimization using GPT-4o, run A/B title tests, monitor comments, and distribute optimized content across all social platforms.

Automate generating YouTube video summaries using the GPT-4o-mini n8n node, store data in Google Sheets, enforce human approval via Slack, and automatically publish the final content to Reddit. Get this n8n workflow template.

Automate YouTube video summarization and transcription using this powerful n8n workflow. Integrate Gemini AI to process content and deliver results instantly to Google Sheets, WhatsApp, and Telegram. Deploy high-value n8n templates today.


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!







































