Claude Code + NotebookLM = CHEAT CODE
By Chase AI
Summary
Topics Covered
- Unlock Claude Code with Notebook LM
- Demo Automates YouTube to Infographics
- Notebook LM Replaces Costly Research Stacks
- Free YouTube Search Skill Setup
- Offload Analysis to Save Tokens
Full Transcript
Claude Code might be the most powerful research agent on the planet, but you need to add this one tool to unlock it.
Now, most people's version of Claude Code research is just telling it to use the web search tool and praying that whatever it comes back with is good enough. But we can do better because
enough. But we can do better because what if I told you with just five minutes of setup, we could create workflows inside of Cloud Code that are able to scrape any section of YouTube,
pull their captions, push that information to a free, robust, pre-built rag system that is able to do all the heavy lifting and analysis for us, and
then take that analysis and give us deliverables like slide decks, infographics, podcasts, you name it. All
while costing us virtually zero tokens.
Now, if that sounds way too good to be true, you would normally be right, but not in this case. So, let me introduce you to the most underrated AI tool in
the game today, Notebook LM. So, in
today's video, I'm going to show you how to combine the powers of Claude Code and Notebook LM to replace a research stack for free that would otherwise cost you
hundreds of dollars a month to build and maintain. I'm really excited to show you
maintain. I'm really excited to show you guys this one. So, let's hop into it.
So, let's kick this video off with a demo so you can see how we can use Claude Code to harness all the features of Notebook LM without us ever leaving the terminal. Now, this prompt's going
the terminal. Now, this prompt's going to have Claude Code do a number of things. First, we are going to use our
things. First, we are going to use our custom YouTube search skill to find the latest trending videos on Claude Code skills. And don't worry, I will show you
skills. And don't worry, I will show you all these skills and how to get them in a second. After we find the video URLs,
a second. After we find the video URLs, I want Claude Code to send those URLs over to Notebook LM using the Notebook LM skill. I then want Notebook LM to do
LM skill. I then want Notebook LM to do analysis on those videos to figure out what are the top load skills and I want to get that analysis sent to us.
Furthermore, I want a deliverable. I
don't just want the text analysis. I
want an infographic in a handwritten blueprint style depicting that analysis on the top skills. So, with one prompt, we are going to scrape YouTube. We're
going to source all of our data. We're
going to essentially put it into a rag system because that's what notebook LLM is. We're going to have notebook LM do
is. We're going to have notebook LM do all the analysis and the deliverables for us offsite which means we don't pay for that in tokens and we get all that for free. So let's see how it works. So
for free. So let's see how it works. So
here's what we got. Claude Code uploaded 20 YouTube sources into Notebook LM for analysis. Notebook LM then came back
analysis. Notebook LM then came back with the top five cloud code skills that you see here as well as emerging trends for how they're used. It then created that infographic deliverable for us
which automatically populated inside of our project folder. So here's a look at that infographic. Again, this is Nano
that infographic. Again, this is Nano Banana Pro under the hood that's actually being called and the text here and all the visuals a fit the style that we called for which was like a
handwritten blueprint type style. And
secondly, and more importantly, all this content is based on the videos and the analysis of those videos. This is it isn't just making stuff up. And we can also see here inside of Cloud Code the videos it grabbed, the title, the creator, the views, the duration, and
the date. And all this is reflected
the date. And all this is reflected inside of notebook LM itself. I can see all the sources it upload. I can see all the analysis. I can see the blueprint
the analysis. I can see the blueprint guide that we asked for. And while this demo might seem like a rather simplistic application of this, I cannot stress enough the value ad of combining these
two tools because this goes way beyond just automating the source process for notebook LM. Everything we did here, we
notebook LM. Everything we did here, we could have done manually inside of notebook LM, right? I could have gone through YouTube manually. I could have found all the videos I want. I could
have copy pasted them in. I could have gotten the analysis and I could have gotten a deliverable. The fact that we can automate that is nice, but it's more than that. It's the fact that I can
than that. It's the fact that I can bring all that analysis into my cloud code ecosystem effortlessly. And the use cases of that workflow are pretty much
infinite. And the second reason why this
infinite. And the second reason why this combination of tools is so powerful has everything to do with the straightup power of notebook LM. If you tried to recreate what notebook LM does, which is
like a scraping system into a rag system into an analysis system into a deliverable system, right, with the infographics, the slide deck, all of that. it would be a gigantic pain in the
that. it would be a gigantic pain in the butt to do. As someone who has tried it, at least on the research side, with things like Naden, it's not a simple process. Furthermore, it costs money and
process. Furthermore, it costs money and this whole thing is free, which is in large part why I'm so excited to share it with you. And another reason you should be pumped is because how simple it is to set this whole thing up, which
is what we're going to cover now. So,
when it comes to setting this up, you're probably thinking, "Hey, Chase, how do we actually connect Notebook LM to Cloud Code considering the fact that Notebook LM does not have a public API?" Well,
luckily for us, there's people much smarter than you or I who have already solved this problem. In this case, it is Tang Ling, and we will be standing on his shoulders today as we use the
Notebook LM-PI GitHub repo to essentially act as an unofficial Python API for Notebook LM. But before we set up Notebook LM, we need to solve the first part of our pipeline, which is
actually the YouTube search and the sourcing of the data we want notebook LM to do analysis on. And for that, I have a custom YouTube search skill for Claude
Code that does all of this for you. It
uses a Python script that relies on the YT- DLP dependency to scrape YouTube's metadata for us. So, when I ask it for, hey, Claude Code skills, it's just like us going on YouTube and searching in
Claude Code Skills. It grabs title, views, author, all that important stuff.
And this skill you see right here inside of Claude Code teaches Cloud Code how to best use this script. Now, there's two ways to get this skill and this script up and running. The first is rather
simple. You just go inside of Cloud Code
simple. You just go inside of Cloud Code and explain that you wanted to build this custom skill for you that you want to use the YTDLP dependency to create a custom YouTube scraper. Or if you want
this entire YouTube search skill setup MD file and you can just download it and hand it to Claude Code, you can do that too. and you can get it by heading to my
too. and you can get it by heading to my free school community which you can find a description for. Now, speaking of my school communities, inside of Chase AI Plus, you can also find my Claude Code master class, which I just released a
few days ago. So, if you're someone who is kind of in the beginning of their AI journey, is trying to figure out how can I best leverage Claude Code, even if I'm not technical, but I really want to master what is definitely the most
powerful AI tool in the game. Well,
that's the place for you. And if you're interested in that, just check the link in the pin comment. So once you download the YouTube search skill setup file, just give it to Claude Code and tell it to go to work or you can just manually prompt Cloud Code to build it for you.
Now let's head back here and set up the notebook LM connection. So I'll put a link to this down in the description as well. And the install is pretty simple.
well. And the install is pretty simple.
So to install this, we are just going to copy these commands, paste it inside of our terminal, which means, hey, if you're looking at cloud code, you're wrong. You need to open a second
wrong. You need to open a second terminal that looks like this, and paste in those commands. After you run these initial installation commands, what you want to do is scroll down here and we're gonna have to run one more command in
the CLI and that's the notebook LM login command. Same thing as before, head into
command. Same thing as before, head into another terminal, paste this in there.
That's going to open a new window in Chrome. All you have to do is login. You
Chrome. All you have to do is login. You
just have to do it once and you're all set. Now, after you authenticate with
set. Now, after you authenticate with the notebook LM login, there's one more thing you have to do and we need to do the skill. So to do the skill inside of
the skill. So to do the skill inside of claude code right you can either run this command in the terminal or just tell cloud code to do it. So understand
also what we've done we've done two things on the notebook lm side. You have
the skill and then you have like the actual API the program. Remember skills
are just prompts. It's just text telling cloud code how to do something in a specific manner. So all this information
specific manner. So all this information you see here about hey here's how we generate content. Here's how we create
generate content. Here's how we create the notebook. This skill is teaching
the notebook. This skill is teaching Cloud Code how to do that. So once it's installed, you just need to tell Cloud Code, hey, I want you to use Notebook LM to create flashcards or an infographic or slide deck. It's that easy.
Everything's just in plain language. And
if you're wondering what exactly you can do with this program, well, it's all here inside of the GitHub. Anything you
can do in Notebook LM manually, you can do with the API. And some as you can see here, beyond the web UI, we can also do batch downloads, export the quiz and flashcards, etc., etc. So we actually
get more functionality using this program than you would do just loading up notebook yourself. So let's actually go through it one step at a time so you understand how it's working. So the
first thing is that YouTube search skill. So like any skill, we can either
skill. So like any skill, we can either use it as a slash command or you can just use plain language. But if I do yt- search, you see we have query and then the count. So what are we looking for?
the count. So what are we looking for?
Hey, we're looking for claude code skills. And so while in the demo we did
skills. And so while in the demo we did everything at once, I think it's useful to break it up sometimes. So you can first get eyes on what your sources are actually going to be. So here's the
results it comes back with right at any time. We can also check the YouTube
time. We can also check the YouTube links ourselves. And what's nice with
links ourselves. And what's nice with this skill is it will also give you some insight about what's actually going on with what it brought back. So if you're happy with the sources now, we can push it into Notebook LM. So again, you can just use plain language. Create a new
notebook in Notebook LM titled Chase Demo with these sources we just pulled.
And we can see it created the notebook and now it's going to be populating it with its sources. So after a couple minutes all 20 sources are loaded and you're limited to 50 sources with notebook LM. And at this point you can
notebook LM. And at this point you can have notebook do whatever you want. So
we can say based on those videos what does notebook LM believe is the number one cloud code skill. Now again the cool thing with this is all this analysis is offloaded. Cloud code isn't doing this
offloaded. Cloud code isn't doing this analysis. Cloud code isn't spending
analysis. Cloud code isn't spending tokens. It's only spending a small
tokens. It's only spending a small amount of tokens to send that request to notebook LM and bring it back. But all
the thinking is done by Google and they're paying for it. So Claude Code grabbed Notebook LM's analysis and we can see that reflected here inside of notebook LM itself. So you can always double check and click inside of
notebook LM if you wanted to see like what captions it's referencing to. And
this cadence also applies for all the deliverables. So right if you want the
deliverables. So right if you want the audio overview, the mind map, the flashcards, the infographics, anything you see over here on the right, just prompt cloud code and it will do it for you. It's that easy. So, how you end up
you. It's that easy. So, how you end up leveraging this research workflow is ultimately up to you, but I really can't stress enough how wild this thing is. It
seems pretty simple on the surface, but I'm telling you, if you've tried to deal with anything like this, especially with the YouTube video stuff and actually trying to create some like corpus of knowledge from these videos in a way
that claude code or some other agent coder can interact with it, it's pretty difficult, right? And it's very
difficult, right? And it's very timeconuming and it can be rather brittle. yet all of this is abstracted
brittle. yet all of this is abstracted away for free with notebook LM. So I
think this is an awesome tool. I hope
you can get some use out of it. As
always, like I said before, all the resources can be found in my school communities. If you need the MD file for
communities. If you need the MD file for the uh skill for the YouTube search skill, make sure you see that in the free one. And again, if you're a little
free one. And again, if you're a little more serious about this stuff and you're like, I really just want to have like a cloud code master class that gets me from like zero to AI dev, make sure to check out Chase AI Plus. So, let me know what you thought of this in the
comments.
Loading video analysis...