Templates / Auto-generate YouTube chapters with Gemini AI & YouTube Data API v3

Auto-generate YouTube chapters with Gemini AI & YouTube Data API v3

Ready for 3.0

by irfan saeed ✓ · 5,280 views · created 2025-04-06 · Content Creation, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 10 nodes and runs manually, when you click “Execute workflow”. Along the way it connects YouTube and Google Gemini Chat Model.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Set Video ID (Edit Fields (Set)): sets 1 field: video_id
  2. Get Video Meta Data (YouTube): get (video)
  3. Get Caption ID (HTTP Request): calls an HTTP API
  4. Get Captions (HTTP Request): calls an HTTP API
  5. Extract Captions (Extract from File): extracts data from a file (text)
  6. Tag Chapters in Description (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model; output parser: Structured Captions
  7. Update Chapters (YouTube): update (video)

Services it uses

YouTubeGoogle Gemini Chat Model

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (8)

From the author

Auto-Generate YouTube Chapters with AI-Powered Transcript Analysis Overview This workflow uses YouTube Data API v3 and Google Gemini 1.5 Flash AI to automatically generate timestamped chapters for videos by analyzing SRT captions. It enhances viewer…

Excerpt from irfan saeed's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.