Skip to content
Back to skills

notebooklm-video-research

ASecurity

Automate NotebookLM notebook creation from YouTube videos. Given a YouTube video URL, extract information about people featured in the video, research them online, create a new NotebookLM notebook with the video and research as sources, and generate an audio overview. Uses screenshot-first automation to reliably target UI elements.

  • 76 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added February 8, 2026
developmentjavascriptpythongojavaangular

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add BayramAnnakov/notebooklm-youtube-skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of notebooklm-video-research?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for notebooklm-video-research
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/bayramannakov-notebooklm-video-research/badge)](https://www.skillsdirectory.com/skills/bayramannakov-notebooklm-video-research)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: notebooklm-video-research
description: Automate NotebookLM notebook creation from YouTube videos. Given a YouTube video URL, extract information about people featured in the video, research them online, create a new NotebookLM notebook with the video and research as sources, and generate an audio overview. Uses screenshot-first automation to reliably target UI elements.
---

# NotebookLM Video Research Skill

Automate NotebookLM notebook creation from YouTube videos with automatic research and Audio Overview generation.

## Core Principle

**Screenshot before every action** β€” verify UI state, identify correct elements, confirm success.

```
πŸ“Έ Screenshot β†’ πŸ‘€ Analyze β†’ 🎯 Target β†’ βœ… Verify β†’ πŸ–±οΈ Execute β†’ πŸ“Έ Screenshot β†’ βœ“ Confirm
```

---

## Quick Start Workflow

### Phase 1: Research

```python
# 1. Get video info
Control Chrome:open_url("https://www.youtube.com/watch?v=VIDEO_ID")
Control Chrome:get_page_content()

# 2. Research people mentioned
web_search("[Person Name] background career")

# 3. Create research document (keep under 500k chars)
```

### Phase 2: NotebookLM Automation

```python
# 1. Navigate
Control Chrome:open_url("https://notebooklm.google.com/")

# 2. Create notebook
# Click "Create new" button

# 3. Add YouTube source
# Click "Websites" β†’ Enter URL β†’ Click "Insert"

# 4. Add research document  
# Click "Add sources" β†’ "Copied text" β†’ Paste content β†’ Click "Insert"

# 5. Generate audio
# Click "Audio Overview" in Studio panel
```

---

## Critical: Element Targeting

### ⚠️ The Main Trap

NotebookLM has **multiple textareas**. Generic selectors grab the wrong one!

```
SIDEBAR (wrong)          CENTER MODAL (correct)
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Search box   β”‚         β”‚ URL/Text input   β”‚
β”‚ query-input  β”‚         β”‚ "Paste any links"|
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
```

### Correct Selectors

| Element | Selector |
|---------|----------|
| URL input | `textarea[placeholder="Paste any links"]` |
| Text input | `textarea[placeholder="Paste text here"]` |
| Sidebar (AVOID) | `textarea[placeholder*="Search"]` |

### Angular Event Pattern

```javascript
// Simple .value = doesn't work! Use this:
var setter = Object.getOwnPropertyDescriptor(
    HTMLTextAreaElement.prototype, 'value'
).set;
setter.call(textarea, 'content');
textarea.dispatchEvent(new Event('input', {bubbles: true}));
textarea.dispatchEvent(new Event('change', {bubbles: true}));
```

### Button State Check

```javascript
var btn = document.querySelector('button');
if (btn && !btn.disabled && !btn.className.includes('disabled')) {
    btn.click();
}
```

---

## Complete Code Snippets

### Enter YouTube URL

```javascript
var urlTextarea = document.querySelector('textarea[placeholder="Paste any links"]');
if (urlTextarea) {
    var setter = Object.getOwnPropertyDescriptor(
        HTMLTextAreaElement.prototype, 'value'
    ).set;
    setter.call(urlTextarea, 'https://www.youtube.com/watch?v=VIDEO_ID');
    urlTextarea.dispatchEvent(new Event('input', {bubbles: true}));
    urlTextarea.dispatchEvent(new Event('change', {bubbles: true}));
}
```

### Enter Research Text

```javascript
var pasteTextarea = document.querySelector('textarea[placeholder="Paste text here"]');
if (pasteTextarea) {
    var setter = Object.getOwnPropertyDescriptor(
        HTMLTextAreaElement.prototype, 'value'
    ).set;
    setter.call(pasteTextarea, RESEARCH_CONTENT);
    pasteTextarea.dispatchEvent(new Event('input', {bubbles: true}));
    pasteTextarea.dispatchEvent(new Event('change', {bubbles: true}));
}
```

### Click Button by Text

```javascript
var buttons = Array.from(document.querySelectorAll('button'));
var btn = buttons.find(b => b.textContent.includes('Insert'));
if (btn && !btn.disabled) {
    btn.click();
}
```

### Verify State

```javascript
// Check what textareas exist
var textareas = Array.from(document.querySelectorAll('textarea'));
textareas.map(t => ({
    placeholder: t.placeholder,
    value: t.value.substring(0, 50)
}));
```

---

## Checkpoint Summary

| Step | Verify Before | Verify After |
|------|---------------|--------------|
| Navigate | - | Home page loaded |
| Create notebook | Create button visible | Notebook opened |
| Add URL | **Correct textarea identified** | URL in center, not sidebar |
| Click Insert | **Button ENABLED** | Source added |
| Add text | **Correct textarea identified** | Text in center, not sidebar |
| Click Insert | **Button ENABLED** | 2 sources shown |
| Audio Overview | Studio panel visible | Generation started |

---

## Anti-Patterns

| ❌ Don't | βœ… Do |
|----------|-------|
| `document.querySelector('textarea')` | `textarea[placeholder="Paste any links"]` |
| Click without checking state | Verify button enabled first |
| Assume action succeeded | Screenshot to confirm |
| Rush through steps | Wait for async operations |

---

## Wait Times

| Action | Wait |
|--------|------|
| Page navigation | 3s |
| Dialog open | 2s |
| YouTube source processing | 8-10s |
| Text source processing | 5s |
| Audio generation | 5-10 minutes |

---

## Error Recovery

**Wrong input targeted:**
1. Clear sidebar: `document.querySelectorAll('.query-input').forEach(el => el.value = '')`
2. Re-target with specific selector

**Button disabled:**
1. Re-dispatch events on textarea
2. Verify content actually entered

**Modal didn't open:**
1. Wait longer
2. Click trigger button again

Files in this skill

  • SKILL.md5.5 KB
  • references/notebooklm_ui_guide.md4.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.