notebooklm
Original:🇺🇸 English
Translated
Deep research and slide presentation generator using NotebookLM MCP. Performs deep research on topics, then generates professional slide presentations with white background and Arial font based on research sources.
10installs
Sourcealfredang/skills
Added on
NPX Install
npx skill4agent add alfredang/skills notebooklmTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →NotebookLM Deep Research & Slide Generator
Primary Workflow
When user requests a presentation or research on a topic:
Step 1: Deep Research via NotebookLM MCP
- Invoke the NotebookLM MCP to perform deep research on the topic
- Gather comprehensive sources and insights
- Extract key findings, data points, and citations
Step 2: Generate Highly Infographic Slide Presentation
Based on the user's topic outline, create visually-rich infographic slides:
Design Specifications:
- Background: White (#FFFFFF)
- Font: Arial (all text)
- Style: HIGHLY INFOGRAPHIC - visual-first design
- Content: Based exclusively on deep research sources
- Citations: Include source references on each slide
Infographic Elements (REQUIRED on every content slide):
- 📊 Charts & Graphs - Bar charts, pie charts, line graphs for data
- 📈 Statistics Callouts - Large numbers with context (e.g., "87% of users...")
- 🎯 Icons - Use relevant icons for each concept
- 🔲 Flowcharts - Process diagrams, decision trees
- 📋 Comparison Tables - Side-by-side comparisons
- 🗺️ Diagrams - Concept maps, timelines, hierarchies
- 💡 Highlight Boxes - Key takeaways in colored boxes
- ➡️ Visual Hierarchy - Clear information flow
Infographic Design Rules:
- Minimal text - Max 6 bullet points per slide, each under 10 words
- Data visualization - Convert all statistics to visual charts
- Icon-driven - Every section header has an icon
- Color coding - Use consistent colors for categories
- White space - 40% of slide should be empty for clarity
- One idea per slide - Don't overcrowd
Slide Structure:
- Title Slide - Topic name, subtitle, date, hero image/icon
- Agenda/Outline - Visual roadmap with icons
- Content Slides - Infographic-style, one concept per slide
- Key Statistics - Large numbers with visual context
- Key Findings - Summary infographic
- Sources/References - Clean list with icons
Step 3: Output Format
Generate slides as:
- Markdown format (for review)
- Or HTML/reveal.js format (for presentation)
NotebookLM API Reference
Complete programmatic access to Google NotebookLM—including capabilities not exposed in the web UI. Create notebooks, add sources (URLs, YouTube, PDFs, audio, video, images), chat with content, generate all artifact types, and download results in multiple formats.
Installation
From PyPI (Recommended):
bash
pip install notebooklm-pyFrom GitHub (use latest release tag, NOT main branch):
bash
# Get the latest release tag (using curl)
LATEST_TAG=$(curl -s https://api.github.com/repos/teng-lin/notebooklm-py/releases/latest | grep '"tag_name"' | cut -d'"' -f4)
pip install "git+https://github.com/teng-lin/notebooklm-py@${LATEST_TAG}"⚠️ DO NOT install from main branch (). The main branch may contain unreleased/unstable changes. Always use PyPI or a specific release tag, unless you are testing unreleased features.
pip install git+https://github.com/teng-lin/notebooklm-pyAfter installation, install the Claude Code skill:
bash
notebooklm skill installPrerequisites
IMPORTANT: Before using any command, you MUST authenticate:
bash
notebooklm login # Opens browser for Google OAuth
notebooklm list # Verify authentication worksIf commands fail with authentication errors, re-run .
notebooklm loginCI/CD, Multiple Accounts, and Parallel Agents
For automated environments, multiple accounts, or parallel agent workflows:
| Variable | Purpose |
|---|---|
| Custom config directory (default: |
| Inline auth JSON - no file writes needed |
CI/CD setup: Set from a secret containing your contents.
NOTEBOOKLM_AUTH_JSONstorage_state.jsonMultiple accounts: Use different directories per account.
NOTEBOOKLM_HOMEParallel agents: The CLI stores notebook context in a shared file (). Multiple concurrent agents using can overwrite each other's context.
~/.notebooklm/context.jsonnotebooklm useSolutions for parallel workflows:
- Always use explicit notebook ID (recommended): Pass (for
-n <notebook_id>/waitcommands) ordownload(for others) instead of relying on--notebook <notebook_id>use - Per-agent isolation: Set unique per agent:
NOTEBOOKLM_HOMEexport NOTEBOOKLM_HOME=/tmp/agent-$ID - Use full UUIDs: Avoid partial IDs in automation (they can become ambiguous)
Agent Setup Verification
Before starting workflows, verify the CLI is ready:
- → Should show "Authenticated as: email@..."
notebooklm status - → Should return valid JSON (even if empty notebooks list)
notebooklm list --json - If either fails → Run
notebooklm login
When This Skill Activates
Explicit: User says "/notebooklm", "use notebooklm", or mentions the tool by name
Intent detection: Recognize requests like:
- "Create a podcast about [topic]"
- "Summarize these URLs/documents"
- "Generate a quiz from my research"
- "Turn this into an audio overview"
- "Create flashcards for studying"
- "Generate a video explainer"
- "Make an infographic"
- "Create a mind map of the concepts"
- "Download the quiz as markdown"
- "Add these sources to NotebookLM"
Autonomy Rules
Run automatically (no confirmation):
- - check context
notebooklm status - - diagnose auth issues
notebooklm auth check - - list notebooks
notebooklm list - - list sources
notebooklm source list - - list artifacts
notebooklm artifact list - - list supported languages
notebooklm language list - - get current language
notebooklm language get - - set language (global setting)
notebooklm language set - - wait for artifact completion (in subagent context)
notebooklm artifact wait - - wait for source processing (in subagent context)
notebooklm source wait - - check research status
notebooklm research status - - wait for research (in subagent context)
notebooklm research wait - - set context (⚠️ SINGLE-AGENT ONLY - use
notebooklm use <id>flag in parallel workflows)-n - - create notebook
notebooklm create - - chat queries
notebooklm ask "..." - - add sources
notebooklm source add
Ask before running:
- - destructive
notebooklm delete - - long-running, may fail
notebooklm generate * - - writes to filesystem
notebooklm download * - - long-running (when in main conversation)
notebooklm artifact wait - - long-running (when in main conversation)
notebooklm source wait - - long-running (when in main conversation)
notebooklm research wait
Quick Reference
| Task | Command |
|---|---|
| Authenticate | |
| Diagnose auth issues | |
| Diagnose auth (full) | |
| List notebooks | |
| Create notebook | |
| Set context | |
| Show context | |
| Add URL source | |
| Add file | |
| Add YouTube | |
| List sources | |
| Wait for source processing | |
| Web research (fast) | |
| Web research (deep) | |
| Check research status | |
| Wait for research | |
| Chat | |
| Chat (new conversation) | |
| Chat (specific sources) | |
| Chat (with references) | |
| Get source fulltext | |
| Get source guide | |
| Generate podcast | |
| Generate podcast (JSON) | |
| Generate podcast (specific sources) | |
| Generate video | |
| Generate quiz | |
| Check artifact status | |
| Wait for completion | |
| Download audio | |
| Download video | |
| Download report | |
| Download mind map | |
| Download data table | |
| Download quiz | |
| Download quiz (markdown) | |
| Download flashcards | |
| Download flashcards (markdown) | |
| Delete notebook | |
| List languages | |
| Get language | |
| Set language | |
Parallel safety: Use explicit notebook IDs in parallel workflows. Commands supporting shorthand: , , , . Download commands also support . Other commands use . For chat, use to start fresh conversations (avoids conversation ID conflicts).
-nartifact waitsource waitresearch wait/statusdownload *-a/--artifact--notebook--newPartial IDs: Use first 6+ characters of UUIDs. Must be unique prefix (fails if ambiguous). Works for: , , commands. For automation, prefer full UUIDs to avoid ambiguity.
usedeletewaitCommand Output Formats
Commands with return structured data for parsing:
--jsonCreate notebook:
$ notebooklm create "Research" --json
{"id": "abc123de-...", "title": "Research"}Add source:
$ notebooklm source add "https://example.com" --json
{"source_id": "def456...", "title": "Example", "status": "processing"}Generate artifact:
$ notebooklm generate audio "Focus on key points" --json
{"task_id": "xyz789...", "status": "pending"}Chat with references:
$ notebooklm ask "What is X?" --json
{"answer": "X is... [1] [2]", "conversation_id": "...", "turn_number": 1, "is_follow_up": false, "references": [{"source_id": "abc123...", "citation_number": 1, "cited_text": "Relevant passage from source..."}, {"source_id": "def456...", "citation_number": 2, "cited_text": "Another passage..."}]}Source fulltext (get indexed content):
$ notebooklm source fulltext <source_id> --json
{"source_id": "...", "title": "...", "char_count": 12345, "content": "Full indexed text..."}Understanding citations: The in references is often a snippet or section header, not the full quoted passage. The / positions reference NotebookLM's internal chunked index, not the raw fulltext. Use to locate citations:
cited_textstart_charend_charSourceFulltext.find_citation_context()python
fulltext = await client.sources.get_fulltext(notebook_id, ref.source_id)
matches = fulltext.find_citation_context(ref.cited_text) # Returns list[(context, position)]
if matches:
context, pos = matches[0] # First match; check len(matches) > 1 for duplicatesExtract IDs: Parse the , , or field from JSON output.
idsource_idtask_idGeneration Types
All generate commands support:
- to use specific source(s) instead of all sources
-s, --source - to set output language (defaults to configured language or 'en')
--language - for machine-readable output (returns
--jsonandtask_id)status - to automatically retry on rate limits with exponential backoff
--retry N
| Type | Command | Options | Download |
|---|---|---|---|
| Podcast | | | .mp3 |
| Video | | | .mp4 |
| Slide Deck | | | |
| Infographic | | | .png |
| Report | | | .md |
| Mind Map | | (sync, instant) | .json |
| Data Table | | description required | .csv |
| Quiz | | | .json/.md/.html |
| Flashcards | | | .json/.md/.html |
Features Beyond the Web UI
These capabilities are available via CLI but not in NotebookLM's web interface:
| Feature | Command | Description |
|---|---|---|
| Batch downloads | | Download all artifacts of a type at once |
| Quiz/Flashcard export | | Export as JSON, Markdown, or HTML (web UI only shows interactive view) |
| Mind map extraction | | Export hierarchical JSON for visualization tools |
| Data table export | | Download structured tables as CSV |
| Source fulltext | | Retrieve the indexed text content of any source |
| Programmatic sharing | | Manage sharing permissions without the UI |
Common Workflows
Research to Podcast (Interactive)
Time: 5-10 minutes total
- — if fails: check auth with
notebooklm create "Research: [topic]"notebooklm login - for each URL/document — if one fails: log warning, continue with others
notebooklm source add - Wait for sources: until all status=READY — required before generation
notebooklm source list --json - (confirm when asked) — if rate limited: wait 5 min, retry once
notebooklm generate audio "Focus on [specific angle]" - Note the artifact ID returned
- Check later for status
notebooklm artifact list - when complete (confirm when asked)
notebooklm download audio ./podcast.mp3
Research to Podcast (Automated with Subagent)
Time: 5-10 minutes, but continues in background
When user wants full automation (generate and download when ready):
- Create notebook and add sources as usual
- Wait for sources to be ready (use or check
source wait)source list --json - Run → parse
notebooklm generate audio "..." --jsonfrom outputartifact_id - Spawn a background agent using Task tool:
Task( prompt="Wait for artifact {artifact_id} in notebook {notebook_id} to complete, then download. Use: notebooklm artifact wait {artifact_id} -n {notebook_id} --timeout 600 Then: notebooklm download audio ./podcast.mp3 -a {artifact_id} -n {notebook_id}", subagent_type="general-purpose" ) - Main conversation continues while agent waits
Error handling in subagent:
- If returns exit code 2 (timeout): Report timeout, suggest checking
artifact waitartifact list - If download fails: Check if artifact status is COMPLETED first
Benefits: Non-blocking, user can do other work, automatic download on completion
Document Analysis
Time: 1-2 minutes
notebooklm create "Analysis: [project]"- (or URLs)
notebooklm source add ./doc.pdf notebooklm ask "Summarize the key points"notebooklm ask "What are the main arguments?"- Continue chatting as needed
Bulk Import
Time: Varies by source count
notebooklm create "Collection: [name]"- Add multiple sources:
bash
notebooklm source add "https://url1.com" notebooklm source add "https://url2.com" notebooklm source add ./local-file.pdf - to verify
notebooklm source list
Source limits: Max 50 sources per notebook
Supported types: PDFs, YouTube URLs, web URLs, Google Docs, text files, Markdown, Word docs, audio files, video files, images
Bulk Import with Source Waiting (Subagent Pattern)
Time: Varies by source count
When adding multiple sources and needing to wait for processing before chat/generation:
- Add sources with to capture IDs:
--jsonbashnotebooklm source add "https://url1.com" --json # → {"source_id": "abc..."} notebooklm source add "https://url2.com" --json # → {"source_id": "def..."} - Spawn a background agent to wait for all sources:
Task( prompt="Wait for sources {source_ids} in notebook {notebook_id} to be ready. For each: notebooklm source wait {id} -n {notebook_id} --timeout 120 Report when all ready or if any fail.", subagent_type="general-purpose" ) - Main conversation continues while agent waits
- Once sources are ready, proceed with chat or generation
Why wait for sources? Sources must be indexed before chat or generation. Takes 10-60 seconds per source.
Deep Web Research (Subagent Pattern)
Time: 2-5 minutes, runs in background
Deep research finds and analyzes web sources on a topic:
- Create notebook:
notebooklm create "Research: [topic]" - Start deep research (non-blocking):
bash
notebooklm source add-research "topic query" --mode deep --no-wait - Spawn a background agent to wait and import:
Task( prompt="Wait for research in notebook {notebook_id} to complete and import sources. Use: notebooklm research wait -n {notebook_id} --import-all --timeout 300 Report how many sources were imported.", subagent_type="general-purpose" ) - Main conversation continues while agent waits
- When agent completes, sources are imported automatically
Alternative (blocking): For simple cases, omit :
--no-waitbash
notebooklm source add-research "topic" --mode deep --import-all
# Blocks for up to 5 minutesWhen to use each mode:
- : Specific topic, quick overview needed (5-10 sources, seconds)
--mode fast - : Broad topic, comprehensive analysis needed (20+ sources, 2-5 min)
--mode deep
Research sources:
- : Search the web (default)
--from web - : Search Google Drive
--from drive
Output Style
Progress updates: Brief status for each step
- "Creating notebook 'Research: AI'..."
- "Adding source: https://example.com..."
- "Starting audio generation... (task ID: abc123)"
Fire-and-forget for long operations:
- Start generation, return artifact ID immediately
- Do NOT poll or wait in main conversation - generation takes 5-45 minutes (see timing table)
- User checks status manually, OR use subagent with
artifact wait
JSON output: Use flag for machine-readable output:
--jsonbash
notebooklm list --json
notebooklm auth check --json
notebooklm source list --json
notebooklm artifact list --jsonJSON schemas (key fields):
notebooklm list --jsonjson
{"notebooks": [{"id": "...", "title": "...", "created_at": "..."}]}notebooklm auth check --jsonjson
{"checks": {"storage_exists": true, "json_valid": true, "cookies_present": true, "sid_cookie": true, "token_fetch": true}, "details": {"storage_path": "...", "auth_source": "file", "cookies_found": ["SID", "HSID", "..."], "cookie_domains": [".google.com"]}}notebooklm source list --jsonjson
{"sources": [{"id": "...", "title": "...", "status": "ready|processing|error"}]}notebooklm artifact list --jsonjson
{"artifacts": [{"id": "...", "title": "...", "type": "Audio Overview", "status": "in_progress|pending|completed|unknown"}]}Status values:
- Sources: →
processing(orready)error - Artifacts: or
pending→in_progress(orcompleted)unknown
Error Handling
On failure, offer the user a choice:
- Retry the operation
- Skip and continue with something else
- Investigate the error
Error decision tree:
| Error | Cause | Action |
|---|---|---|
| Auth/cookie error | Session expired | Run |
| "No notebook context" | Context not set | Use |
| "No result found for RPC ID" | Rate limiting | Wait 5-10 min, retry |
| Google rate limit | Wait and retry later |
| Download fails | Generation incomplete | Check |
| Invalid notebook/source ID | Wrong ID | Run |
| RPC protocol error | Google changed APIs | May need CLI update |
Exit Codes
All commands use consistent exit codes:
| Code | Meaning | Action |
|---|---|---|
| 0 | Success | Continue |
| 1 | Error (not found, processing failed) | Check stderr, see Error Handling |
| 2 | Timeout (wait commands only) | Extend timeout or check status manually |
Examples:
- returns 1 if source not found or processing failed
source wait - returns 2 if timeout reached before completion
artifact wait - returns 1 if rate limited (check stderr for details)
generate
Known Limitations
Rate limiting: Audio, video, quiz, flashcards, infographic, and slide deck generation may fail due to Google's rate limits. This is an API limitation, not a bug.
Reliable operations: These always work:
- Notebooks (list, create, delete, rename)
- Sources (add, list, delete)
- Chat/queries
- Mind-map, study-guide, report, data-table generation
Unreliable operations: These may fail with rate limiting:
- Audio (podcast) generation
- Video generation
- Quiz and flashcard generation
- Infographic and slide deck generation
Workaround: If generation fails:
- Check status:
notebooklm artifact list - Retry after 5-10 minutes
- Use the NotebookLM web UI as fallback
Processing times vary significantly. Use the subagent pattern for long operations:
| Operation | Typical time | Suggested timeout |
|---|---|---|
| Source processing | 30s - 10 min | 600s |
| Research (fast) | 30s - 2 min | 180s |
| Research (deep) | 15 - 30+ min | 1800s |
| Notes | instant | n/a |
| Mind-map | instant (sync) | n/a |
| Quiz, flashcards | 5 - 15 min | 900s |
| Report, data-table | 5 - 15 min | 900s |
| Audio generation | 10 - 20 min | 1200s |
| Video generation | 15 - 45 min | 2700s |
Polling intervals: When checking status manually, poll every 15-30 seconds to avoid excessive API calls.
Language Configuration
Language setting controls the output language for generated artifacts (audio, video, etc.).
Important: Language is a GLOBAL setting that affects all notebooks in your account.
bash
# List all 80+ supported languages with native names
notebooklm language list
# Show current language setting
notebooklm language get
# Set language for artifact generation
notebooklm language set zh_Hans # Simplified Chinese
notebooklm language set ja # Japanese
notebooklm language set en # English (default)Common language codes:
| Code | Language |
|---|---|
| English |
| 中文(简体) - Simplified Chinese |
| 中文(繁體) - Traditional Chinese |
| 日本語 - Japanese |
| 한국어 - Korean |
| Español - Spanish |
| Français - French |
| Deutsch - German |
| Português (Brasil) |
Override per command: Use flag on generate commands:
--languagebash
notebooklm generate audio --language ja # Japanese podcast
notebooklm generate video --language zh_Hans # Chinese videoOffline mode: Use flag to skip server sync:
--localbash
notebooklm language set zh_Hans --local # Save locally only
notebooklm language get --local # Read local config onlyTroubleshooting
bash
notebooklm --help # Main commands
notebooklm auth check # Diagnose auth issues
notebooklm auth check --test # Full auth validation with network test
notebooklm notebook --help # Notebook management
notebooklm source --help # Source management
notebooklm research --help # Research status/wait
notebooklm generate --help # Content generation
notebooklm artifact --help # Artifact management
notebooklm download --help # Download content
notebooklm language --help # Language settingsDiagnose auth: - shows cookie domains, storage path, validation status
Re-authenticate:
Check version:
Update skill:
notebooklm auth checknotebooklm loginnotebooklm --versionnotebooklm skill install