From the course: Build with AI: Vibe Code a Prompt Engineering Agent to Drive LLM Adoption
Setting up a Google Drive folder for automated outputs
From the course: Build with AI: Vibe Code a Prompt Engineering Agent to Drive LLM Adoption
Setting up a Google Drive folder for automated outputs
- [Narrator] It's time to set up a Google Drive folder so we can automatically store all of the creative assets that are going to be generated by our workflow. So in order to add Google Drive here, you just click this plus button and then you would search for Google Drive. And we want to be able to create a folder. So, you have to set up authentication for your Google Drive account here. I've already done that. And it's not the most straightforward process, so I'm going to walk you through how you can do that on your own. The first thing you need to do is select Create new credential, and then select OAuth2. So we'll just leave this page open as we're setting up authentication within Google Console, and come back and copy that. So let's open up a new tab, and you'll want to go to console.cloud.google.com. And I'll just walk through this like I haven't done this already. So you can see we have an n8n integration, and that's essentially what I've already built for this project. But we'll start a new one. So, I'll just call this project name n8n demo. Once you have done that, you just hit Create. Okay, so now we need to make sure we're in the right project. And as you can see, it's still in the n8n integration project, which is not what we need. S, just click on the project, Open project picker, and then you would select n8n, and you know, for me it's demo, but for you, if you're creating a new project, then you'll need to just make sure you've changed that out. Then what we need to do is go to APIs & Services. So if you click on the hamburger menu in the upper-left, then scroll down, you'll see options for APIs & Services. And we want to enable APIs & Services. So click that. And then you want to go down to the OAuth consent screen and hit Get Started. And you'll need to make a name for the application. So, I'm just going to say again, n8n demo. You'll want to enter an email address for user support. And then Next. This is an internal audience. Next. Contact information. Fill something out there. Next. Read the user data policy, agree and then Continue. And then hit Create. Okay, now over here, you need to go to Branding, and scroll to Authorized domains. We need to add a domain. So, because we're going to be using n8n cloud services, we need to add the domain n8n.cloud, and then just scroll down and Save. Okay, the next thing we need to do, is then go back to this section on APIs & Services, and go to Credentials. And you want to Create credentials. So, you select this button at the top, and then we want the OAuth client ID. So select that. For the application type, we'll select Web application. And then you need to name it, so I'm just going to call it n8n demo. Close the Branding changes, and then hit Create. What you'll want to do is copy the Client ID in secret that are being provided to here, and copy and paste them into your Client ID and field inside of n8n here. Now you see it's giving us this button, Sign in with Google. So, you would then just click this button and give permissions for n8n to connect with your Google Drive account. And once you grant permissions through the sign in process, then you will be good to go. And you can just press Save, and you'll have set up your Google Drive account to work directly inside of n8n. The next thing we'll need to do is create a parent folder in which this workflow can output data. So to do that, you just want to go over to your Google Drive. Okay, so here we are inside of my Google Drive, and what I'm going to do is I'll just create a folder called n8n demo. And that's going to be the parent folder for this workflow. And then I will go back to n8n. Okay, so the next thing we need to do is just set the Parent Drive and the Parent Folder. So we'll start with Parent Drive. Let's just find it from the list, and go here. And since the Google Drive is integrated with n8n we can actually just pick our folders through drag and drop. Now we need to find the Parent Folder. So we'll just do From list. And I'm just going to search for the n8n demo. And that's here. So that's our folder. And in terms of the Folder Name, what we actually want to do is set that equal to the seoKeyword. So, let's bring that in over here, so that essentially every time this program runs, we're going to get a new folder that's named according to the seoKeyword. Once you have that set up, hit Execute step. We can actually go test to make sure that came through properly. Yeah, and we have an empty folder with our Lovable vs Replit seoKeyword. So, that's amazing. I'm going to just delete this 'cause we want to keep this space clean. Now that we have connected Google Drive and created a folder for our outputs, we'll connect the Canva API, so we can start generating visuals at scale. I'm just going to close out of this and save it so we don't lose any of our progress.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.