aresbit/matebot2tg/notebooklm
Claude Code and agent skill by aresbit/matebot2tg
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Automate Google NotebookLM - create notebooks, add sources, generate podcasts/videos/quizzes, download artifacts. Activates on explicit /notebooklm or intent like "create a podcast about X"
Install
npx vskill@latest install aresbit/matebot2tg/notebooklmSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as aresbit/matebot2tg/notebooklm.
NotebookLM Automation
Automate Google NotebookLM: create notebooks, add sources, chat with content, generate artifacts (podcasts, videos, quizzes), and download results.
Prerequisites
IMPORTANT: Before using any command, you MUST authenticate:
If commands fail with authentication errors, re-run notebooklm login.
CI/CD, Multiple Accounts, and Parallel Agents
For automated environments, multiple accounts, or parallel agent workflows:
| Variable | Purpose | |
|---|---|---|
NOTEBOOKLM_HOME | Custom config directory (default: ~/.notebooklm) | |
NOTEBOOKLM_AUTH_JSON | Inline auth JSON - no file writes needed |
CI/CD setup: Set NOTEBOOKLM_AUTH_JSON from a secret containing your storage_state.json contents.
Multiple accounts: Use different NOTEBOOKLM_HOME directories per account.
Parallel agents: The CLI stores notebook context in a shared file (~/.notebooklm/context.json). Multiple concurrent agents using notebooklm use can overwrite each other's context.
Solutions for parallel workflows:
- Always use explicit notebook ID (recommended): Pass
-n <notebook_id>(forwait/downloadcommands) or--notebook <notebook_id>(for others) instead of relying onuse - Per-agent isolation: Set unique
NOTEBOOKLM_HOMEper agent:export 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:
notebooklm status→ Should show "Authenticated as: email@..."notebooklm list --json→ Should return valid JSON (even if empty notebooks list)- 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"
- "Add these sources to NotebookLM"
Autonomy Rules
Run automatically (no confirmation):
notebooklm status- check contextnotebooklm list- list notebooksnotebooklm source list- list sourcesnotebooklm artifact list- list artifactsnotebooklm artifact wait- wait for artifact completion (in subagent context)notebooklm source wait- wait for source processing (in subagent context)notebooklm research status- check research statusnotebooklm research wait- wait for research (in subagent context)notebooklm use <id>- set context (⚠️ SINGLE-AGENT ONLY - use-nflag in parallel workflows)notebooklm create- create notebooknotebooklm ask "..."- chat queriesnotebooklm source add- add sources
Ask before running:
notebooklm delete- destructivenotebooklm generate *- long-running, may failnotebooklm download *- writes to filesystemnotebooklm artifact wait- long-running (when in main conversation)notebooklm source wait- long-running (when in main conversation)notebooklm research wait- long-running (when in main conversation)
Quick Reference
| Task | Command | |
|---|---|---|
| Authenticate | notebooklm login | |
| List notebooks | notebooklm list | |
| Create notebook | notebooklm create "Title" | |
| Set context | notebooklm use <notebook_id> | |
| Show context | notebooklm status | |
| Add URL source | notebooklm source add "https://..." | |
| Add file | notebooklm source add ./file.pdf | |
| Add YouTube | notebooklm source add "https://youtube.com/..." | |
| List sources | notebooklm source list | |
| Wait for source processing | notebooklm source wait <source_id> | |
| Web research (fast) | notebooklm source add-research "query" | |
| Web research (deep) | notebooklm source add-research "query" --mode deep --no-wait | |
| Check research status | notebooklm research status | |
| Wait for research | notebooklm research wait --import-all | |
| Chat | notebooklm ask "question" | |
| Chat (new conversation) | notebooklm ask "question" --new | |
| Chat (specific sources) | notebooklm ask "question" -s src_id1 -s src_id2 | |
| Generate podcast | notebooklm generate audio "instructions" | |
| Generate podcast (specific sources) | notebooklm generate audio -s src_id1 -s src_id2 | |
| Generate video | notebooklm generate video "instructions" | |
| Generate quiz | notebooklm generate quiz | |
| Check artifact status | notebooklm artifact list | |
| Wait for completion | notebooklm artifact wait <artifact_id> | |
| Download audio | notebooklm download audio ./output.mp3 | |
| Download video | notebooklm download video ./output.mp4 | |
| Delete notebook | notebooklm notebook delete <id> |
Parallel safety: Use explicit notebook IDs in parallel workflows. Commands supporting -n shorthand: artifact wait, source wait, research wait/status, download *. Other commands use --notebook. For chat, use --new to start fresh conversations (avoids conversation ID conflicts).
Partial IDs: Use first 6+ characters of UUIDs. Must be unique prefix (fails if ambiguous). Works for: use, delete, wait commands. For automation, prefer full UUIDs to avoid ambiguity.
Command Output Formats
Commands with --json return structured data for parsing:
Create notebook:
Add source:
Generate artifact:
Extract IDs: Parse the id, source_id, or artifact_id field from JSON output.
Generation Types
All generate commands support -s, --source to use specific source(s) instead of all sources.
| Type | Command | Downloadable | |
|---|---|---|---|
| Podcast | generate audio | Yes (.mp3) | |
| Video | generate video | Yes (.mp4) | |
| Slides | generate slide-deck | Yes (.pdf) | |
| Infographic | generate infographic | Yes (.png) | |
| Quiz | generate quiz | No (view in UI) | |
| Flashcards | generate flashcards | No (view in UI) | |
| Mind Map | generate mind-map | No (view in UI) | |
| Data Table | generate data-table | No (export to Sheets) | |
| Report | generate report | No (export to Docs) |
Common Workflows
Research to Podcast (Interactive)
Time: 5-10 minutes total
notebooklm create "Research: [topic]"— if fails: check auth with `notebooklm login`notebooklm source addfor each URL/document — if one fails: log warning, continue with others- Wait for sources:
notebooklm source list --jsonuntil all status=READY — required before generation notebooklm generate audio "Focus on [specific angle]"(confirm when asked) — if rate limited: wait 5 min, retry once- Note the artifact ID returned
- Check
notebooklm artifact listlater for status notebooklm download audio ./podcast.mp3when complete (confirm when asked)
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
source waitor checksource list --json) - Run
notebooklm generate audio "..." --json→ parseartifact_idfrom output - 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
artifact waitreturns exit code 2 (timeout): Report timeout, suggest checkingartifact 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]"notebooklm source add ./doc.pdf(or URLs)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 ``
notebooklm source listto verify
Source limits: Max 50 sources per notebook Supported types: PDFs, YouTube URLs, web URLs, Google Docs, text files
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
--jsonto capture IDs:
``bash notebooklm 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-wait:
When to use each mode:
--mode fast: Specific topic, quick overview needed (5-10 sources, seconds)--mode deep: Broad topic, comprehensive analysis needed (20+ sources, 2-5 min)
Research sources:
--from web: Search the web (default)--from drive: Search Google 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 --json flag for machine-readable output:
JSON schemas (key fields):
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/notebooklm/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aresbit/matebot2tg/notebooklm)