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 this 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](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 vectorized 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 video 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 ## Customizing 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.
New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.
Related bundle
Content Repurposing Engine
8 hand-picked workflows for $29.00.
That is $3.63 each, vs $24.99 for this one alone.
View bundleSecure checkout powered by Stripe
Support
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related AI workflows
- Launch Your First AI-Powered Chatbot with Actionable Tools$9.99
- Automate AI Video Creation and YouTube Upload with Google Sheets$14.99
- Build a WhatsApp Assistant with Memory, Google Suite, Multi-AI, Research, and Imaging$24.99
- Automate Blog Post Creation and Publishing with GPT, Leonardo AI, and WordPress$14.99
- Email Agent$500.99
- Automate SEO Keyword Generation with ChatGPT from Google Sheets$3.99
More from Jimleuk
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.