Automatically sync WeChat Official Account articles to Google NotebookLM for AI-powered analysis, summarization, and content generation
- ๐ One-click sync - Automatically fetch WeChat articles and add them to NotebookLM
- ๐ Markdown conversion - Clean, well-formatted Markdown output
- ๐ค AI-powered - Leverage NotebookLM's AI for analysis and content generation
- ๐๏ธ Content generation - Create podcasts, videos, and quizzes from articles
- ๐ฌ Interactive chat - Ask questions and get insights from your articles
This skill automates the entire workflow of getting a WeChat article into NotebookLM:
- Fetches the article content from the URL
- Converts to clean Markdown format
- Creates a NotebookLM notebook
- Uploads the article as a source
- Returns the notebook ID for further interaction
Use this skill when you:
- Have a WeChat Official Account article URL (
mp.weixin.qq.com) - Want to save the article to NotebookLM for analysis
- Want to create a podcast/video from the article
- Want to chat with the article content using AI
- Want to summarize or extract insights from the article
- Claude Code - This skill requires Claude Code CLI
- NotebookLM CLI - Install and authenticate NotebookLM CLI:
# Install NotebookLM CLI
npm install -g @notebooklm/cli
# Authenticate with Google
notebooklm login
# Verify authentication
notebooklm statusClone this repository to your local skills directory:
# Navigate to your Claude skills directory
cd ~/.claude/skills
# Clone the repository
git clone https://github.com/zstmfhy/wechat-to-notebooklm.gitSimply provide a WeChat article URL:
Sync this WeChat article to NotebookLM: https://mp.weixin.qq.com/s/xxxxx
The skill will:
- โ Fetch the article content
- โ Convert to Markdown
- โ Create a notebook
- โ Upload the article
- โ Return the notebook ID
User: "Sync this WeChat article to NotebookLM: https://mp.weixin.qq.com/s/xxxxx"
Agent response:
โ
Fetching article from WeChat...
โ
Converting to Markdown...
โ
Creating notebook "Article Title"...
โ
Uploading to NotebookLM...
โ
Done!
๐ Notebook: Article Title
ID: abc-123-def
๐ Source: article_title.md
ID: source-xyz-789
๐ก Next steps:
- Chat: notebooklm ask "Summarize this article"
- Generate: notebooklm generate audio "Create a podcast"
# List existing notebooks
notebooklm list --json
# Add to specific notebook
notebooklm source add /tmp/article.md --notebook <existing_notebook_id> --json# Create a collection notebook
notebooklm create "WeChat Articles Collection" --json
# Add multiple articles to the same notebook
# (The skill will handle this automatically)After uploading, you can:
Generate a Podcast:
notebooklm generate audio "Create an engaging podcast about this article"Create a Video:
notebooklm generate video "Make an explanatory video"Generate Quiz:
notebooklm generate quiz "Test understanding of key concepts"Ask Questions:
notebooklm ask "What are the key insights?"
notebooklm ask "Summarize in 3 bullet points"| Task | Command/Tool |
|---|---|
| Fetch article | mcp__web_reader__webReader |
| Create notebook | notebooklm create "Title" --json |
| Upload file | notebooklm source add file.md --notebook <id> --json |
| Check sources | notebooklm source list --notebook <id> --json |
| Chat with article | notebooklm use <id>; notebooklm ask "question" |
| Generate podcast | notebooklm generate audio "instructions" --notebook <id> |
- Error: Failed to fetch content
- Solution: Verify the URL is correct and accessible
- Alternative: Try copying the article content manually
- Error: Auth/cookie error
- Solution: Run
notebooklm loginagain - Check:
notebooklm statusto verify
- Error: Invalid file or upload error
- Solution: Check if Markdown file was created correctly
- Verify: File path and permissions
- Error: Rate limiting or API error
- Solution: Wait a few minutes and retry
- Alternative: Add to existing notebook with
--notebookflag
- WeChat articles only: Optimized for
mp.weixin.qq.comURLs - Text content: Focuses on text, images are preserved as links
- Public articles: Requires publicly accessible articles
- Rate limits: NotebookLM has rate limits on uploads
- Use descriptive notebook titles - Extract from article title or topic
- Keep articles organized - Use separate notebooks for different topics
- Verify uploads - Check
notebooklm source listafter upload - Clean up temp files - Remove
/tmpfiles after successful upload - Handle rate limits - If uploads fail, wait 5-10 minutes before retry
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Claude Code - The AI CLI tool that powers this skill
- NotebookLM - Google's AI-powered research and note-taking tool
- WeChat - The source of amazing content
- GitHub: @zstmfhy
- Issues: Create an issue