--- name: youtube-summarizer description: Build and use a YouTube tool similar to NoteGPT.io — paste link → get transcript + rich AI summary + timestamped notes + key points. Support fallback transcription for videos without subtitles. --- # YouTube Summarizer (NoteGPT Style) ## Goal Create a personal/local version that mimics NoteGPT: - Paste YouTube link - Auto-fetch transcript (with timestamps) - Generate clean, detailed **content-rich summary** - Produce structured **AI Notes** / Study Notes - Support videos **without subtitles** (via Whisper fallback) - Output: Summary, Full Transcript, Key Points, Chapters ## Desired Output Format (NoteGPT-like) 1. **Video Title & Metadata** 2. **Concise Summary** (TL;DR) 3. **Detailed Content-Rich Notes** (your preferred direct style — "The second subtype of basic research is...") 4. **Timestamped Key Points / Chapters** 5. **Full Transcript** (with timestamps, collapsible if web UI) ## Core Features to Implement - Transcript extraction (`youtube-transcript-api`) - Fallback: `yt-dlp` + `whisper` (for no-subtitle videos) - LLM-powered summarization (Grok, OpenAI, Gemini, Claude, or local) - Structured outputs: Summary, Mind-map style bullets, Study notes - Optional: Batch processing, Export (Markdown, PDF, DOCX) ## Updated Rules for Summaries - **Direct content style** (exactly as you showed earlier) - Keep speaker's examples, flow, and explanations intact - Avoid "The video says..." — just explain the concepts ## Helper Scripts (in Sandbox) I’ve prepared the foundation scripts for you. Would you like me to: 1. Show the **full improved Python script** (CLI + basic web version)? 2. Add **Streamlit web UI** (paste link → beautiful output like NoteGPT)? 3. Include **Whisper fallback** for no-caption videos? 4. Add export to Markdown/PDF? Just tell me your preference (e.g., "Give me the Streamlit version" or "Add Whisper support"), and I’ll generate the complete code right away. **Paste a YouTube link now** if you want to test the current version!