Skip to main content

Youtube RAG search with frontend using Apify, Qdrant and AI

Workflow preview

Workflow preview
100%
Youtube RAG search with frontend using Apify, Qdrant and AI preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Ever wanted to build your own RAG search over Youtube videos? Well, now you can! This n8n template shows how you can build a very capable Youtube search engine powered by Apify, Qdrant and your LLM...

Best for

  • Market Research automation workflows
  • AI RAG automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.httprequest, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.vectorstoreqdrant, @n8n/n8n-nodes-langchain.documentdefaultdataloader, @n8n/n8n-nodes-langchain.embeddingsopenai, @n8n/n8n-nodes-langchain.textsplitterrecursivecharactertextsplitter, n8n-nodes-base.splitinbatches

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Jimleuk.

Original n8n.io source

1.1 Workflow description

Title
Youtube RAG search with frontend using Apify, Qdrant and AI
Workflow name
Youtube RAG search with frontend using Apify, Qdrant and AI

Ever wanted to build your own RAG search over Youtube videos? Well, now you can! This n8n template shows how you can build a very capable Youtube search engine powered by Apify, Qdrant and your LLM of choice to quickly and efficiently browse over many videos for research.

I originally started to template to ask questions on the "n8n @ scale office-hours" livestream videos but then extended it to include the latest videos on the official channel.

Check out a demo here: https://jimleuk.app.n8n.cloud/webhook/n8n_videos

How it works

  • Stage 1 is to collect the Youtube video transcripts and push them into a vector database. For this, I've used Apify to scrape Youtube and Qdrant to store the embeddings.
  • Transcripts are broken down into smaller chunks and carefully tagged with metadata to assist in later search and filtering.
  • Stage 2 is to build a web frontend for the user to query the vectorised transcripts. I'm using a webhook to serve a simple web app and API to dynamically fetch the results.
  • When searching for a video, I've opted to use Qdrant's search groups API which in this use-case, performs better as it returns a wider range of videos results.
  • In the web frontend, when the user clicks on the results, the matching Youtube video plays in an embedded video player.

How to use

  • Once credentials are all set, first run steps 1 - 3 to populate your vector store.
  • Next, set the workflow to active to expose the web frontend. Visit the webhook URL in your browser to use it.
  • If only for personal use, you may want to remove the rate limiting mechanism in step 4.

Requirements

  • Apify for Youtube Channel and Video Scraping
  • Qdrant for Vector store
  • OpenAI for LLM and Embeddings

Customising the template

  • Not interested in official n8n videos? Swap to a different channel - this template will work on many as long as videos are not private or set to prevent embeds.
  • Technically any vector store should work but may not have the same grouping API. Use the simple vector store node and revert back to basic searching instead.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking ‘Test workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Get Video Subtitles

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 3 - Chunk Subtitles

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 4 - Qdrant Vector Store

Type / Role
@n8n/n8n-nodes-langchain.vectorStoreQdrant - vectorStoreQdrant
Config choices
Version 1

Block 5 - Default Data Loader

Type / Role
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - documentDefaultDataLoader
Config choices
Version 1

Block 6 - Embeddings

Type / Role
@n8n/n8n-nodes-langchain.embeddingsOpenAi - embeddingsOpenAi
Config choices
Version 1.2

Block 7 - Text Splitter

Type / Role
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - textSplitterRecursiveCharacterTextSplitter
Config choices
Version 1

Block 8 - For Each Video

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 9 - Video Ref

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 10 - For Each Chunk

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 11 - Wait

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 12 - Clean Up Output

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 13 - Sort By Video ID

Type / Role
n8n-nodes-base.sort - sort
Config choices
Version 1

Block 14 - Respond to Webhook

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

Block 15 - Extract Results

Type / Role
@n8n/n8n-nodes-langchain.informationExtractor - informationExtractor
Config choices
Version 1

Block 16 - SEARCH API

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 17 - Get Query

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 18 - Generate Template

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 19 - Answer Query

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.5

Block 20 - Has Results?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 21 - Generate Empty Response

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 22 - Map Fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 23 - Incr Rate Limit

Type / Role
n8n-nodes-base.redis - redis
Config choices
Version 1

Block 24 - 10req/min

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Showing the first 24 of 62 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Youtube RAG search with frontend using Apify, Qdrant and AI
Complexity advanced
Nodes 62
Categories Market Research, AI RAG
Author Jimleuk
Published 22 Mar 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3288/3288.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Youtube RAG search with frontend using Apify, Qdrant and AI do?

Ever wanted to build your own RAG search over Youtube videos? Well, now you can! This n8n template shows how you can build a very capable Youtube search engine powered by Apify, Qdrant and your LLM...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research, AI RAG use case.