🎬 Digest and analyse YouTube videos with Apify and Gemini Pro

⚑ 129 views · 🎬 Content Creation & Video

πŸ’‘ Pro Tip β€” YouTube’s API quotas can be a bottleneck when you’re pulling data at scale. ScraperNode is a community node with dedicated scrapers for channels, videos, and comments β€” no quota limits, just structured data.

View All Scrapers

Description

Video Digestion Workflow β€” n8n Template Description


How it works

This workflow takes any YouTube video URL and automatically extracts a rich, structured analysis β€” including transcript, key visual moments, video metadata, SEO keywords, and content section breakdowns. It’s designed as the foundation layer for content repurposing, feeding its output into downstream workflows for creating Shorts, LinkedIn posts, Twitter threads, blog articles, email newsletters, and more.

The pipeline:

  1. YouTube URL Input β€” A simple form trigger accepts any YouTube video URL.
  2. Video Download (Apify) β€” Downloads the video file at 720p via the Apify YouTube Video Downloader actor.
  3. Transcript Extraction (Apify) β€” Pulls the full transcript with timestamps from YouTube using the Apify YouTube Video Transcript actor. No audio processing needed β€” fast and reliable.
  4. Data Consolidation β€” A Code node merges both Apify outputs into a single structured object containing: video URL, transcript text, timestamped segments, video metadata (title, description, duration, channel info, like/comment counts, thumbnail, publish date).
  5. Visual Analysis (Google Gemini Pro) β€” Sends the actual video to Gemini’s video analysis endpoint, which watches the entire video and identifies key B-roll moments with precise timestamps, app detection, and webcam overlay awareness. It categorises clips as clean screen recordings vs. webcam overlays vs. talking head segments.
  6. Key Action Parsing β€” Filters and categorises the Gemini output into usable clips, removing talking-head-only segments and incomplete data. Outputs chronologically sorted clips with cropping metadata for downstream video editing.
  7. AI Section Analysis (OpenAI) β€” Sends the transcript + key moments to OpenAI with structured output (JSON schema) to generate: video summary, one-liner, main argument, target audience, content style, tone, key takeaways, problems addressed, tools mentioned, frameworks explained, suggested titles, and SEO keywords.
  8. Output β€” The final structured payload is ready to pass to any downstream workflow (e.g., Shorts creation, social media posting, blog generation).

Setup guide

Required accounts & API keys

You’ll need API credentials for the following services:

ServiceWhat it doesSign up
ApifyYouTube video downloading + transcript extractionhttps://apify.com
Google AI Studio (Gemini)Video analysis β€” watches the video and detects key visual momentshttps://aistudio.google.com
OpenAIStructured content analysis with JSON schema outputhttps://platform.openai.com

Required Apify actors

You need to add these two Apify actors to your account:

  1. YouTube Video Downloader by epctex β€” https://apify.com/epctex/youtube-video-downloader
  2. YouTube Video Transcript by starvibe β€” https://apify.com/starvibe/youtube-video-transcript

n8n credentials to configure

Steps

  1. Import the workflow into n8n
  2. Configure all three credential sets (Apify, Gemini, OpenAI)
  3. Ensure both Apify actors are added to your Apify account
  4. Activate the workflow
  5. Open the form trigger URL and paste any YouTube video URL
  6. The workflow outputs a comprehensive JSON payload ready for downstream workflows

What you can build with the output

The structured output from this workflow is designed to be piped into other workflows. Some ideas:

Nodes used


Built by @adamfreelances β€” The Anti-Guru Technical Educator. Real workflows, real implementation, no fluff.

πŸ”— Nodes Used

Execute Sub-workflow, n8n Form Trigger, OpenAI, Google Gemini

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup