← All N8N workflows
AI & researchAgentChain LLMChat TriggerCodeDocument Default Data Loader

⚡AI-Powered YouTube Playlist & Video Summarization and Analysis v2

Configured with Agent, Chain LLM, Chat Trigger, Document Default Data Loader, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
AI & modelsGoogle Gemini ChatModel1LM Chat Google GeminiAI & modelsHandle QueriesAgentTransformSplit OutSplit OutAI & modelsSummarize & AnalyzeTranscriptChain LLMTransformConcatenateSummarizeTransformSplit Out1Split OutTransformLimitLimitData storeQdrant Vector StoreVector Store QdrantTransformRecursive CharacterText SplitterText Splitter Recursive …AI & modelsEmbeddings GoogleGeminiEmbeddings Google GeminiAI & modelsGoogle Gemini ChatModel2LM Chat Google GeminiAI & modelsEmbeddings GoogleGemini1Embeddings Google GeminiTriggerChatChat TriggerTransformVideo TitlesSplit OutTransformMergeMergeTransformEdit FieldsEdit FieldsAI & modelsAI AgentAgentAI & modelsGoogle Gemini ChatModel4LM Chat Google GeminiWeb / APIDelete CollectionHTTP RequestFiles / mediaDefault Data LoaderDocument Default Data Lo…Data storeChat Buffer MemoryMemory Buffer WindowTransformFull SummarySummarizeData storeChat Buffer Memory1Memory Buffer WindowFiles / mediaYouTube TranscriptYoutube TranscripterAI & modelsMessage IntentAgentTransformStructured OutputParser1Output Parser StructuredData storeUpdate Context IntentRedisData storeGet Previous ContextIntentRedisRoutingRoute Message IntentSwitchCodeProcess StatusCodeData storeSimple MemoryMemory Buffer WindowData storeSimple Memory3Memory Buffer WindowAI & modelsGoogle Gemini ChatModel6LM Chat Google GeminiAI & modelsNumb of VideosAgentCodeDefault IntentCodeRoutingPlaylist LimitIfRoutingPlaylist or VideoSwitchCodeGet Fields for SummaryCodeData storeUpdate Context ProcessDone1RedisAI & modelsGoogle Gemini ChatModel8LM Chat Google GeminiWeb / APIPlaylist HTTP RequestHTTP RequestFiles / mediaYouTube Transcript1Youtube TranscripterWeb / APIVideo HTTP RequestHTTP RequestCodeGet Title and DescCodeTransformSplit Out2Split OutTransformConcatenate1SummarizeCodeGet VideosCodeCodeGet Playlist VideosDataCodeAI & modelsEmbeddings GoogleGemini2Embeddings Google GeminiData storeQdrant Vector Store3Vector Store QdrantAI & modelsAnswer questions with avector storeTool Vector StoreData storeQdrant Vector Store4Vector Store QdrantAI & modelsAnswer questions with avector store1Tool Vector StoreAI & modelsGoogle Gemini ChatModelLM Chat Google GeminiAI & modelsGoogle Gemini ChatModel3LM Chat Google GeminiData storeQdrant Vector Store2Vector Store QdrantAI & modelsEmbeddings GoogleGemini4Embeddings Google GeminiRoutingIfIfTransformCount ContentSummarizeData storeUpdate Context Intent1Redis

Node categories in this workflow

  • AI & models
  • Transform
  • Data store
  • Trigger
  • Web / API
  • Files / media
  • Routing
  • Code

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
Google Gemini Chat Model1AI & modelsLM Chat Google GeminiSee node parameters
Handle QueriesAI & modelsAgentSee node parameters
Split OutTransformSplit OutSee node parameters
Summarize & Analyze TranscriptAI & modelsChain LLMSee node parameters
ConcatenateTransformSummarizeSee node parameters
Split Out1TransformSplit OutSee node parameters
LimitTransformLimitSee node parameters
Qdrant Vector StoreData storeVector Store QdrantSee node parameters
Recursive Character Text SplitterTransformText Splitter Recursive Character Text SplitterSee node parameters
Embeddings Google GeminiAI & modelsEmbeddings Google GeminiSee node parameters
Google Gemini Chat Model2AI & modelsLM Chat Google GeminiSee node parameters
Embeddings Google Gemini1AI & modelsEmbeddings Google GeminiSee node parameters
ChatTriggerChat TriggerSee node parameters
Video TitlesTransformSplit OutSee node parameters
MergeTransformMergeSee node parameters
Edit FieldsTransformEdit FieldsSee node parameters
AI AgentAI & modelsAgentSee node parameters
Google Gemini Chat Model4AI & modelsLM Chat Google GeminiSee node parameters
Delete CollectionWeb / APIHTTP RequestPOST
Default Data LoaderFiles / mediaDocument Default Data LoaderSee node parameters
Chat Buffer MemoryData storeMemory Buffer WindowSee node parameters
Full SummaryTransformSummarizeSee node parameters
Chat Buffer Memory1Data storeMemory Buffer WindowSee node parameters
YouTube TranscriptFiles / mediaYoutube TranscripterSee node parameters
Message IntentAI & modelsAgentSee node parameters
Structured Output Parser1TransformOutput Parser StructuredSee node parameters
Update Context IntentData storeRedisset
Get Previous Context IntentData storeRedisget
Route Message IntentRoutingSwitchSee node parameters
Process StatusCodeCodeSee node parameters
Simple MemoryData storeMemory Buffer WindowSee node parameters
Simple Memory3Data storeMemory Buffer WindowSee node parameters
Google Gemini Chat Model6AI & modelsLM Chat Google GeminiSee node parameters
Numb of VideosAI & modelsAgentSee node parameters
Default IntentCodeCodeSee node parameters
Playlist LimitRoutingIfSee node parameters
Playlist or VideoRoutingSwitchSee node parameters
Get Fields for SummaryCodeCodeSee node parameters
Update Context Process Done1Data storeRedisset
Google Gemini Chat Model8AI & modelsLM Chat Google GeminiSee node parameters
Playlist HTTP RequestWeb / APIHTTP RequestSee node parameters
YouTube Transcript1Files / mediaYoutube TranscripterSee node parameters
Video HTTP RequestWeb / APIHTTP RequestSee node parameters
Get Title and DescCodeCodeSee node parameters
Split Out2TransformSplit OutSee node parameters
Concatenate1TransformSummarizeSee node parameters
Get VideosCodeCodeSee node parameters
Get Playlist Videos DataCodeCodeSee node parameters
Embeddings Google Gemini2AI & modelsEmbeddings Google GeminiSee node parameters
Qdrant Vector Store3Data storeVector Store QdrantSee node parameters
Answer questions with a vector storeAI & modelsTool Vector StoreSee node parameters
Qdrant Vector Store4Data storeVector Store QdrantSee node parameters
Answer questions with a vector store1AI & modelsTool Vector StoreSee node parameters
Google Gemini Chat ModelAI & modelsLM Chat Google GeminiSee node parameters
Google Gemini Chat Model3AI & modelsLM Chat Google GeminiSee node parameters
Qdrant Vector Store2Data storeVector Store QdrantSee node parameters
Embeddings Google Gemini4AI & modelsEmbeddings Google GeminiSee node parameters
IfRoutingIfSee node parameters
Count ContentTransformSummarizeSee node parameters
Update Context Intent1Data storeRedisset

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • googlePalmApi
  • qdrantApi
  • redis

Workflow notes

RAG & Reply to User Query

RAG & Reply to User Query

  • Retrieves and provides answers to user queries combining retrieval-augmented generation.
  • Processes messages without specific routing rules.
Fetch and prepare Playlist video transcripts data for processing

Fetch and prepare Playlist video transcripts data for processing

  • Collects and organizes playlist video transcripts.
  • Prepares data for analysis and summarization.
Summarize & Analyze Transcript

Summarize & Analyze Transcript

  • Creates summarized data from transcripts.
Store Embeddings

Store Embeddings

  • Saves embedded data for future use.
  • Updates current context to maintain the flow of the conversation.
First Summary Analysis

First Summary Analysis

  • Conducts initial analysis of summarized data.
  • Return to the user insights from processed transcripts.
Message intent routing

Message intent routing

  • Retrieves the previous context for continuity.
  • Ensures data integrity before processing.
  • Routes incoming messages based on intent.
Update Context

Update Context

  • Updates any issues detected in the context.
  • Prepares data for workflow progression.
Fetch and prepare single video transcripts data for processing

Fetch and prepare single video transcripts data for processing

  • Retrieves and pre-processes single video transcripts.
  • Prepares data for analysis and summarization.
Process or ask for more details

Process or ask for more details

  • Decides next steps based on workflow conditions e.g. missing number of playlist videos to process.
  • Route to Playlist or Video processing.
Already Processed?

Already Processed?

  • Check if we already have embeddings in the vector store.
AI-Powered YouTube Playlist & Video Summarization and Analysis Chat Bot

AI-Powered YouTube Playlist & Video Summarization and Analysis Chat Bot

This N8N workflow transforms YouTube playlists or individual videos into interactive knowledge bases. Instead of watching videos, users can chat with the workflow to get summaries and answers based on the video transcripts.

How it Works:

  1. Chat Interaction & Intent Detection:

    • The workflow starts via a chat interface (Chat Trigger), prompting the user for a YouTube playlist or video URL.
    • It retrieves any previous conversation context stored in Redis.
    • A Google Gemini AI agent (Message Intent) analyzes the user's input to determine if it contains a valid YouTube playlist URL, a video URL, or neither (NONE). It extracts the URL, the corresponding ID (Playlist ID or Video ID), and checks if the user specified a limit for the number of playlist videos to process.
    • The workflow maintains context (like the current URL, ID, and processing status) using Redis (Update Context Intent, Get Previous Context Intent).
  2. Routing & Pre-processing Checks:

    • Based on the detected intent and whether the content needs processing, a Switch node (Route Message Intent) directs the workflow.
    • If a valid URL is provided and hasn't been processed yet (status != 'DONE'), it proceeds to the processing pipeline.
    • It checks if embeddings for the given ID already exist in the Qdrant vector store (Qdrant Vector Store2, If). If they do, it skips processing and moves to the query handling stage.
    • If the input is a playlist URL but no video limit is specified (limit=0), it prompts the user to provide one (Numb of Videos agent).
  3. Video/Playlist Processing Pipeline:

    • Data Fetching:
      • For Playlists: Fetches the playlist page (Playlist HTTP Request), extracts video details using custom code (Get Playlist Videos Data), limits the videos if specified (Limit), and then fetches the transcript for each video (YouTube Transcript).
      • For Videos: Fetches the video page (Video HTTP Request), extracts title/description (Get Title and Desc), and fetches the transcript (YouTube Transcript1).
    • Transcript Processing & Summarization:
      • Transcripts are retrieved using the youtubeTranscripter node.
      • Transcripts are concatenated (Concatenate, Concatenate1).
      • Data (like video ID, title, transcript text) is merged and structured (Merge, Edit Fields).
      • Each video's transcript is summarized by a Google Gemini AI chain (Summarize & Analyze Transcript).
    • Embedding & Storage:
      • Any existing data for the playlist/video ID is cleared from the Qdrant vector store (Delete Collection).
      • The processed transcripts (potentially alongside summaries/metadata) are loaded (Default Data Loader).
      • Text is split into manageable chunks (Recursive Character Text Splitter).
      • Google Gemini generates vector embeddings for the text chunks (Embeddings Google Gemini).
      • These embeddings are stored in a Qdrant collection, indexed by the playlist or video ID (Qdrant Vector Store).
    • Status Update & Final Summary:
      • The context status in Redis is updated to 'DONE' (Update Context Process Done1).
      • All individual video summaries are combined (Full Summary).
      • An AI agent (AI Agent) may generate a final, comprehensive summary or response based on the processed data, using a tool to query the vector store (Answer questions with a vector store1).
  4. Query Handling (Chatting with Content):

    • If the user's input is identified as a query rather than a new URL to process (or if processing for a URL is complete), the workflow activates the main query handler.
    • A conversational AI agent (Handle Queries), powered by Google Gemini and equipped with chat memory (Chat Buffer Memory), answers user questions.
    • This agent uses a specialized tool (Answer questions with a vector store) that retrieves relevant information directly from the Qdrant vector store based on the user's query and the stored embeddings.
⚡AI-Powered YouTube Playlist & Video Summarization and Analysis v2

⚡AI-Powered YouTube Playlist & Video Summarization and Analysis v2

Purpose and structure

This folder contains the ⚡AI-Powered YouTube Playlist & Video Summarization and Analysis v2 workflow. Its executable nodes use agent, chainLlm, chatTrigger, code, documentDefaultDataLoader, embeddingsGoogleGemini, httpRequest, if, limit, lmChatGoogleGemini, memoryBufferWindow, merge, outputParserStructured, redis, set, splitOut, summarize, switch, textSplitterRecursiveCharacterTextSplitter, toolVectorStore, vectorStoreQdrant, youtubeTranscripter. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

Chat

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Limit/0971_Limit_Splitout_Automation_Webhook.json MIT; preserve source notices.

Canvas section labels

These name areas of the original canvas; they do not include explanatory instructions.

  • Ask number of Playlist videos to process

More in AI & research