Automate YouTube video analysis using a powerful n8n workflow. Generate transcripts, summaries, scene descriptions, and social media clips using the Gemini API. This n8n template speeds up content creation.
Download this n8n workflow template and start using it instantly.
Manually analyzing video content, creating transcripts, or writing detailed scene descriptions is time-consuming and inefficient. This specialized n8n workflow solves this by utilizing the Google Gemini API's multimodal capabilities, allowing the AI to 'watch' the video linked via URL.
This single n8n template can execute five distinct tasks based on a simple input variable (promptType). Whether you need a simple summary, a full transcript, or complex visual analysis (like scene identification), this n8n automation delivers structured, high-quality output. The structure of this n8n node setup ensures that the automation is easily adaptable; you can modify the default prompts or switch the initial n8n trigger to integrate this processing into a larger system (like connecting it to a Google Sheets or Airtable data source).
The n8n workflow begins with the 'When clicking ‘Test workflow’' n8n trigger, which initiates manual execution. The flow then proceeds through the following steps:
youtubeURL, the necessary apiKey for the Gemini API, and the crucial promptType (e.g., 'transcript', 'summary', 'clips').promptType. This core logic element routes the flow to one of five specialized Set nodes, each containing a different, highly optimized instruction set for the AI model.model (gemini-1.5-flash) to the item data.file_data field, enabling multimodal analysis.answerAIGenerated), token counts, and the model version used, providing a clean final output ready for the next step in your n8n workflow.To deploy this useful n8n workflow template, follow these steps:
enter-your-api-key-here in the apiKey assignment with your actual Google API key.youtubeURL to the public URL of the video you wish to analyze.promptType to one of the following lowercase values: transcript, timestamps, summary, scene, or clips. Manual Trigger n8n Trigger: Starts the n8n workflow upon manual initiation, ideal for testing or ad-hoc runs.
Set: Define Initial Variables (Set n8n node): Crucial for defining the video URL and the desired operation (promptType). This centralized configuration makes the n8n template easily reusable.
Switch: What kind of question do we want to ask? (Switch n8n node): This core control flow n8n node directs the automation based on the promptType input variable, allowing one n8n workflow to handle multiple content generation tasks efficiently.
Set: [Prompt Name] (Set n8n nodes): Defines the specific, optimized text prompt and the gemini-1.5-flash model for the AI request. Examples include creating social media clips or generating a verbatim transcript.
HTTP Request to Google (HTTP Request n8n node): The main execution n8n node. It dynamically constructs the Gemini API request, embedding the YouTube URL as a file URI for multimodal processing.
Code: Merge data from prior nodes with HTTP Output (Code n8n node): A technical n8n node that ensures data integrity by combining the original input data with the processed API response, simplifying subsequent data access.
answerAIGenerated and various token counts for analysis.Automate content repurposing using this advanced n8n workflow. Converts YouTube transcripts fetched via Dumpling AI into professional newsletter drafts using GPT-4o, logging output to Google Sheets.

Automate content ideation using this powerful n8n workflow. Scrape YouTube comments, filter viable ideas with AI, research topics using Tavily, and generate hooks and outlines using GPT-4.1-mini.

Automate short-form video creation using an n8n workflow. This pipeline pulls TikTok comments, generates scripts with GPT-4, creates AI avatar videos via Captions.ai, and enhances them with Submagic, saving the final product to Airtable.

Use this robust n8n workflow to monitor multiple RSS feeds hourly. Receive instant email digests containing new posts directly to your inbox, leveraging the n8n node for conditional checks and Gmail integration.

Use this n8n workflow to set up physical notifications via Home Assistant. Trigger a smart light color change whenever an update occurs in your GitHub repository using an n8n trigger.








































