I just built an infinite content ideas machine in n8n and I'm sharing it to everyone because this AI system curates the best YouTube videos that you can copy daily and you can build it too without a single line of code because what does AI agent does is you give it any keyword in your Niche it scours the whole of YouTube for videos uploaded in the past week then from those hundreds of videos you can see there's 510 it filters out the bad ones copies the good ones into a Google sheet for your weekly inspiration then takes the best videos from that already curated list and it sends it to me over at slack along with what the video is about why that video is performing and most importantly how I can make it my own and that's all automated every day if you want to and in this video I'll teach you the simplest way to do this without writing any single line of code and I'm confident that anyone from any background can create this if you just invest time to learn about AI in the next few minutes so watch Till the End by the way if you're new here my name is Jay and it is my sole mission to make AI easy to understand for anyone who wants to learn it especially if you want to make a living from this wave in fact to make this as easy as possible what I've done is to colate all of the resources and prompts you need in this lesson in this page which you can access in the link by the video description with an important call out for this blueprint file because if you download that and import it in the no code tool that we will be using then it will create for you that same automation which will save you tons of time in just setting it up and if in case you're not yet part of the community the robo nuggets Community is basically a group of AI professionals who are learning together on how to take advantage of this AI wave to make money or save time or just grow their businesses and inside the community you'll find step-by-step lessons around Ai and how to create agents that do your work for you or earn you passive income and within each of those lessons are ready to load AI blueprints that you can just import similar to what I've demonstrated just a few seconds ago and we also have a growing network of professionals who are using AI to do their work for them and you can see there's a lot of good discussion here around some of the interesting things that people are doing with artificial intelligence so check that out if you are Keen okay let's dip into this so there's basically three parts to this autom the first part is basically this top row where we'll be getting details of the videos that we will be scouring YouTube for and ending it with a filter for videos that perform which is here on the right the second row here basically appends all of those good videos into your Google sheet list and then filters that further for the outliers only the top videos in that cohort and finally part three is getting our AI agent to recommend a video idea to US based on that top video and send it to slack or any messaging app that you use frequently and the very first thing that you want to do is to go to nn. which if in case you're not aware what that is it's basically a no code automation tool which is similar to zapier or make. com if you're familiar with those tools but quite recently as in just a few weeks ago it has actually surpassed the search demand already for both zapier and make combined because of how easy it is to setup and just the amount of AI Integrations that you can do with n8n so go to nn.
click get started and once you get to the homepage just click on create workflow here at the top right and if you look at our end in mind here basically we'll be setting up five modules very quickly and a very first one is a trigger which is basically the command on how the automation will start so for our use case we'll just select this schedule trigger node and then if you see this there's a pretty simple config here what I like to do is set it to run on a weekly basis and then we can just leave this as is depending on what you need and then just click on test step to make sure that works and you can see it return to you the time right now which is what it's using to check if the trigger should be run and the next module is of course YouTube because that's where we will be getting our information and what you would want to select is this get many videos action because that will basically allow you to search for a keyword and then get all of the videos in YouTube's database that satisfies your conditions so if you just double click that the very first thing that you need to do is to connect any end to your YouTube and you can see I already have that here and I'll actually go through it because some people may find this complex but it's quite easy to set up you just need to click on a few things and if you just start with creating a new credential you will see that it's looking for a client ID and client secret and to get that if I just go to our community page here I've already linked out this URL which you can just click and this documentation by n8n actually goes through how to create a new Google credential so just go ahead and create a Google Cloud account first click on that and once you're logged in just make sure to click on console and this is basically the space where you can set up a lot of the connections and essentially there's just a few simple steps that you need to do the first one is for you to create a project within that space so just click on this area and then click on new project so let's create a new one here and then just go ahead and click create and just make sure that you are switched to that project by clicking here and then navigating to your project by clicking there so that you just ensure that the credentials you're setting up are in the right project so that's good the next thing to do is to go to navigation apis and services and click on library and here Google has a lot of apis obviously we'll be getting the one for YouTube and select YouTube data API V3 which is basically the API that allows ows you to crawl YouTube's database so click on enable and now you have YouTube enabled for your project now the last few things to do is to go to apis and services once again and now click on oo consent screen and this is just something you need to do once so that you can configure this project to enable oo so click get started for the app name provide NN there and then just select the most relevant user support email most likely yours and then under audience click on external click on next and then again for email address just provide your contact information there and click on finish and then once you're here you just need to add Ann under branding and look for authorized domains and click on ADD domain and in n8n documentation it asks us to add nn. Cloud so I'll just copy that nn. cloud click on ADD domain and click on save so the last thing you want to set up is to set up your credentials just click on create credentials here select ooth client ID and then for the application type select web application and then just give it a name and under authorized redirect URL you would want to add a value here which you can get from anyn and in this YouTube setup screen you can just click on this to copy it and paste it here and click on Create and now it has provided you with this client ID and client secret which you should keep to yourself and then you can just copy that over to nit end Within These relevant fields and before you click sign in with Google just go back to your Google Cloud console and under the oo consent screen just click on audience and make sure to have this app published so click on that and confirm and if you go back to anyn now you can use this signin with Google feature and in the popup since it's your app just click on Advance if this shows to you and go to any.
Cloud provide it the credentials and click on continue and there you go it has provided Ed you with the confirmation that it is successful so click away on that and now you have your credential that has been successfully set up so now for us to test this out just a few tweaks to the attributes here later by the end we'll toggle this on to return all of the results of the search but for now to save a bit on memory let's just set it to something like 10 entries so that we'll only get a result of 10 for every search result we do and then for the filter you just want to provide a published after filter and if you go back to our community page under the YouTube filter date just copy this and paste it there and what that basically does is it gets for you a date that is 7 days ago which today is February 17 you can see it's returning to me February 10th so we'll be getting all the videos published after that date and then another filter would be this query which is basically your search keyword so for now I'll put an n8n but if you have a different Niche go ahead and type in like your specific Niche here and it will return you the videos that are relevant to you and then under options you just have an option here for the Sorting order which is good so that we can sort by relevance and under save search you can set it to monitor it so that you can filter out some undesirable results all right so if you click on test step you can now see an output here on the right which we'll go through in a bit but just to step back and quickly Explain how n8n works because this is quite fundamental because every node in n8n is pretty much structured this way where you have the input meaning all the attributes that get passed onto this node here on the left side you have the configuration which is the one you just set up for YouTube here at the center in the green area and then you have the output out here on the right edge of the screen so this is pretty standard with n8n and it's quite confusing in the beginning but honestly it it's much simpler when viewed in this framework so if I go back to our example for this YouTube node you can see the input here is coming from that schedule trigger node that we first set up and then you have the configuration for YouTube that when you click on test step provided you with this output that provided 10 items because we filtered for 10 and then if you scroll to the right you can see that there is some video information here like what the YouTube title is a snippet of what the description is and a few other important information but what is missing if you can see is there are no metrics around views comments how many likes and all that good stuff so that is what we will be getting in this next node which is basically going to be an HTTP request so click on that and as you build the automation you can see the inputs here neatly being passed forward by n8n which is great and for this config keep the method to get for the URL if you go back to the Community page you can just copy this URL for that HTTP request and paste it here and then just toggle send query parameters so under the queries here we'll be sending three parameters so just make sure there's three there and then we'll name them as key which is going to be your API key or password for YouTube one that's named part which is the sections that we'll be getting from YouTube for the video details and one called ID which is the specific video ID that's unique to every video and this would be done once we get those three information so the very first one is to get this key so this API key if you just go back to your Google Cloud console and then make sure you're in the project that you are operating in and under apis and services click on credentials again and now you'll create a credential here but select API key and with that click of a button it now has provided you your API key which again you should keep to your yourself but just copy that to clipboard and paste it here and then if I scroll down under part you just want to type in snippet and statistics which are some defined values from YouTube's API and under ID what you want to put here is under schema in this input window expand this YouTube section and look for the video ID that looks something like this string so drag that across in value and you're done you can now test this step click on that and you can see it provided you with the 10 videos that you got from before once again but this time if you scroll down data that you got all the way to the bottom you now have some statistics like how many views this video got so far how many likes how many comments Etc so that's done and now you can click away and that's good but what's actually missing are some of the metrics that are quite important to assess a video's performance which if we just go to our end in mind sheet here that we're about to fill up we have here these Tre values the like rate which is basically the amount of likes divided by the views as a percentage you have the comment rate which is the comments divided by the views as a percentage again and the views per hour because obviously these are published in different days and so by dividing the views based on how long they've been live so far then you'll be able to compare them in a much more fair way so how do you get this information and the way you do that is to just add a fort node here and look for for code and then set this mode to run once for each item and under this JavaScript section if you go back to our community page you can just type this out or copy it and paste that in there and what this basically does in a nutshell is it contains a JavaScript that calculates for you the like rate the comment rate and the views per hour and then returns them into a table so if I click on test step now it once again provided me with those most 10 videos but provided a pretty good data table with the title of the video the URL of that video when it's published The Views likes comments as well as these specific metrics which are important to assess which ones are good and that's done so just click away so now the last thing to set up is an if node where you will basically set three filters which you can just amend depending on what you feel is relevant for your Niche but just drag in from this code node the like rate the comment rate and the views and then set this filter to is greater than for the three of them and then just provide this with some numbers based on what you observed depending on how many videos you want filtered or not so for me I've set it as these values and then click on convert types when required and then click on test step so now you can see these values where there are four items out of the 10 which satisfied our filter n six which did not and in n8n it has provided that view as well so now we will click on this plus icon under true so that we can extend it for our next section which is all about adding it to our Google Sheets data so just click on that and then click on append Row in sheet and here to set it up you just need to set up your credential and this one's quite simple just click on create new credential and sign in with Google and that will allow you to integrate directly with Google Sheets and for you to be able to select the document from this list you first need to create it so if you just head back to our community page and then click on this link it will take you to this Google sheet template which you can just copy by clicking on file and click on make a copy and once you have that copied onto your Google Drve you'll be able to select that from your list in my case it would be this one and then under sheet just select sheet one and then for each column you just need to map them to the relevant fields which should be quite easy because you have them cleanly laid out here in your latest node anyway so just drag them across published ad goes to here views goes to here likes goes there comments like right com VI and there you go so now there are a few remaining pieces here which is this ID column and that's just the video ID that you can find if you remember under HTTP request and then this ID just drag that across and then if you scroll down to the bottom you have this video description which you can again find under that HTTP request drag that across and then this added date is basically the date that this automation has added this row into your Google sheet so what you would want to put there is an expression that will return today's date and if you go back to our community page there is a piece of JavaScript there that you can just copy and put it here and you can see it is returning today's date as an example there so now if I click on test step what this has now done is provided you four items which are the ones that we filtered as good videos and now if I go back to my sheet n8n has now filled out those videos for me so now I have four really great performing videos in the past week filtered amongst the dozens upon dozens of videos that you can find on YouTube so now that alone is already valuable because now you can just look at these videos and assess if they are videos that you'd like to take inspiration from but if you go to our final automation here you can see we have a section where we take it a step further and you have your AI agent get the best performing videos from that good video cohort and actually provide you with some insights around how you can make it your own as well as potential enhancements to the video in question so to do that there's just a few more nodes to set up but let's just quickly clean this up and then set up our next node which is another Google sheet one specifically this get row function and this is quite simple just choose that same document that you were working with for me is this Google sheet and then that same sheet again and then under filter just add a filter for your column called added date and then for the value you want this to return today's date which again you can just get from this string and put it there and make sure to set it as an expression and you can see is returning today's date as an example so test that step and you can see it returns 16 items which should not be the case because what I forgot to set is under settings have it execute only once because we do need to read that Google sheet only once to return the four rows that's contained in that sheet if you just click on test step again so now you have the latest values here on n8n you can now add another filter so another if node and then this time we'll only filter for only the top videos and this is once again is an optional step if you don't want to get dozens of slack messages in my case what I like to do is to set the like rate into an even greater amount so that I only get the one that it's really performing the best something like 5.