Turn a YouTube channel into a second brain with Neo4j GraphRAG and GPT-4o-mini
AI-powered "Second Brain" that can answer questions about any YouTube channel's content using Neo4j Graph Database and RAG.
Turn any YouTube channel into a searchable knowledge base. The AI agent understands relationships between videos, topics, tools, and concepts - enabling powerful queries like "Which videos talk about automation AND mention n8n?" or "What are the most discussed topics?".
Good to know
Neo4j Aura Free Tier is sufficient for most channels (up to 200k nodes) Apify credits are required for YouTube scraping (~$5 for 500 videos) LLM costs are minimal (~$0.01 per video for entity extraction)
How it works
Ingestion Flow**: Scrapes YouTube videos via Apify, including titles, descriptions, and transcripts. Entity Extraction**: GPT-4o-mini analyzes each video and extracts Topics, Tools, and Concepts mentioned. Graph Storage**: Data is stored in Neo4j with relationships: Video → COVERS → Topic, Video → USES → Tool, Video → EXPLAINS → Concept. AI Agent**: Receives user questions, generates Cypher queries to search the graph, and returns natural language responses with relevant video links.
How to use
Set up a free Neo4j Aura instance and save credentials Convert your Neo4j username:password to Base64 for authentication Configure Apify with your target YouTube channel URL Run the ingestion workflow to populate the database Chat with the AI agent to query your video knowledge base
Requirements
Neo4j Aura account (free tier available) Apify account for YouTube scraping OpenAI API key (GPT-4o-mini) for entity extraction Anthropic API key (Claude) or OpenAI for the AI agent
Customization
Modify the system prompt to change response style or language Add more entity types (e.g., People, Companies, Frameworks) Connect multiple YouTube channels into one knowledge base Extend to other content sources (blogs, podcasts, Notion docs)
Related Templates
AI SEO Readability Audit: Check Website Friendliness for LLMs
Who is this for? This workflow is designed for SEO specialists, content creators, marketers, and website developers who ...
Reply to Outlook Emails with OpenAI
Who is this template for? This template is for any Microsoft Outlook user who wants a trained AI agent to reason and rep...
Use OpenRouter in n8n versions <1.78
What it is: In version 1.78, n8n introduced a dedicated node to use the OpenRouter service, which lets you to use a lot...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments