AI Income LabJoin AI Income Lab ↗

n8n YouTube Shorts uploader: Google Drive to AI metadata

Jump to video chapters

Watch on YouTube ↗ Subscribe on YouTube ↗

By · · 9:23 · 864 views

Written guide: n8n Automations on Hostinger: Shorts, Sora 2 and Version 2.0

An n8n workflow that watches a Google Drive folder for new short clips, uploads each one to YouTube as unlisted, then generates a description, tags and title from the transcript and publishes it. The upload works, but the Apify transcript step fails in the demo, so the AI steps run without a transcript.

Video summary

The video covers 9 parts: YouTube Shorts Automation, Google Drive Trigger, File Download Setup, YouTube Upload Node, Apify Transcript Setup, OpenAI Description Copy, AI YouTube Tags, SEO Title Generation, and Final YouTube Publishing.

What this video covers

What you build

An n8n workflow with a Google Drive trigger, a download and YouTube upload, an Apify transcript call, OpenAI and Gemini steps for description, tags and title, and a final YouTube update that makes the video public.

Tools used

Compare pricing: Apify, Google Gemini, OpusClip. Some ↗ links are affiliate links, so I may earn a commission or credit. See every tool I recommend →

Key steps

Not covered

Summary written from the video's transcript and chapters.

In this video

  1. 0:00 YouTube Shorts Automation
  2. 0:40 Google Drive Trigger
  3. 1:10 File Download Setup
  4. 1:45 YouTube Upload Node
  5. 2:20 Apify Transcript Setup
  6. 2:55 OpenAI Description Copy
  7. 3:30 AI YouTube Tags
  8. 4:05 SEO Title Generation
  9. 4:40 Final YouTube Publishing

Questions and answers

Where do the short clips come from?

Mike makes them with Opus Clip, downloads them and drops them into the Google Drive folder.

Why upload as unlisted first?

The workflow uploads unlisted, adds the metadata, and only then switches the video to public.

Where can I get the n8n YouTube Shorts uploader template?

Mike says it is on Gumroad and in his Skool community.

Transcript

Hey there, welcome to the channel. In this video, I'm going to share with you this powerful automation that I've built in Nin to automatically upload new videos from a Google Drive folder to YouTube. The reason I decided to build this is because I'm looking to start repurposing some of my long- form videos into YouTube shorts. And in order to do that, I'm using a tool called Opus Clip. All you have to do is upload a short clip, download it, and upload it to Google Drive.

As you can see, I've already got three videos over here ready to go. And instead of manually doing this every single time, I decided, why not just create an automation to do it for me? And that's exactly what I've done over here. It's a relatively simple automation to build. And in this tutorial, I'll show you how to set it up step by step. But before I do, please go ahead subscribe to the channel and go ahead and drop a comment below.

Read the rest of the transcript

Let me know if you have any questions about this. We'd be happy to help. And with that being said, let's get into it. So, first of all, what we have here is a Google Drive trigger. In order to add this, all you have to do is click on plus, search for Google Drive, and then add the trigger down here. In this case, we want to check for new files appearing in the folder. And it's just polling every single hour.

And then it's checking a specific folder, in this case, YouTube Shorts. You will need to authenticate your Google Drive account, which you can do through Google Cloud Console. And once that's done, you can see it's pulled in the latest video from Google Drive over here. So, it's got the latest file, the video file, which is my HeyGen avatar video short. You can see here's the file name. And then in the next step, we're just downloading that file from Google Drive.

So all we have to do over here is pass in the specific ID. So there it is. I'm just going to click and drag that in. And then if I execute this particular step, it's just going to download the file. And then I can quickly and easily preview it within N once it's finished downloading. And then in the next step, in the next node, we're just calling the upload a video module. So all we're doing here is we're just passing in the title.

In this case, I'm just using the file name for now because we're going to we're going to change that later anyway. And then it's passing in the data which in [clears throat] this case is just binary in order to upload the file which we have over here. This is the file that I want to upload to YouTube is a YouTube short.

And for options, we're just selecting unlisted for now and then we can make it public in a later step so that everybody can see it on YouTube. So that's just uploading the video. And then the next step, I'm not going to show this one because it's my appy token. But in order to add this, you're just going to come over to data transformation and then click on edit fields. This is just a field that we want to pass in to the next step.

And in this case, we're going to be using Apify as I have in many of my other tutorials. Uh, in order to find the actor that we need, you're just going to search for YouTube transcript and then all this takes is a single URL. So, you're just going to grab this JSON, copy and paste it, come on over to N.

And in this case, I'm using an HTTP request, but you can also use uh the Apify node itself as well, which is a little bit easier, but I just chose to use the HTTP request in this particular case. So, all we're doing here is we're just uh calling the post method and we're passing in the URL of the particular actor that we're using in Apify over here. And you'll also want to send query parameters and pass in the token that we provided in the previous step.

You'll also select send body. And then you're just going to paste in that JSON right here with the uh first part of the URL. And then also the uh the ID that we got in the previous step as well. And that will get the complete uh YouTube URL of the short that we're uploading. Right? And then from there, this part's a little complicated. Uh there are other ways to do this such as splitting and then extracting it. Basically getting rid of the timestamps.

I will leave a link down below if you want to uh download the the complete automation. It's available in my Skool community as well, which has currently 1,200 members in it. You're more than welcome to join the Skool community. And then the next step here is just an open AI node. So you'll just uh select open AI and then message a model. You'll drop one of these in and this is for creating the description.

So what we're doing here is basically we're just issuing it this prompt right here. You are professional copyriter. So that's the system prompt. And then we also have the user prompt down here as well where we're ask we're actually just passing in the transcript that we already got in the previous step. And that will create the description. In this case, I'm just using GPT41 Nano. And you will need to also put in your API key as well, which you can get from platform.openai.com.

I've already shown this in many of my other videos. And it looks like I'm actually logged out of my account for some reason right now. So, just know that you're you're going to have to go over to platform.opAI and then get your API key so that you can authenticate it with N over here and connect it up. So that's creating the description. And then we've also have a AI agent here as well.

So in order to pass in an AI agent, you can just click on AI agent and that will drop it in. But obviously I already have one, so I'm going to delete that. And for the chat model, we're just using Google Gemini right here. So you can add the chat model. And this one is specifically getting tags based on the transcript. So, it just says now follows actual topic transcript. Give me the YouTube tags for it. There we go.

Give me the YouTube tags for the following transcript. I'm just going to put that right there. And then I also said don't include stars or new lines because we just want to split it into commas, comma separated values. So, that's all we're doing here. And then we're just passing in the transcript. So now it got the tags and you should see them here. It says, "Please provide the transcript." So apparently the transcript scraper is not working.

Once again, it says, "Looks like the transcript didn't come through. Could you please try sending it again?" I am having some issues with this particular transcript uh scraper in Amplify. I'm not exactly sure why. Sometimes it doesn't work, but that's okay because the most important thing is it's actually uploading the videos to YouTube. That's what I want to happen. So, next step is just going to be creating the YouTube title. And for this one, I'm also using uh GPT41 Nano.

And I'm just saying you are professional copyriter for SEO optimized YouTube titles. And then for the user prompt, I'm just saying write me a suitable SEO YouTube title. For the transcript of the following video transcript, we could just remove some of this. I made some typos. for the following video transcript only the title nothing else max 100 characters so keep it short right and then there's the transcript which in this case for some reason we're not able to retrieve using the scraper so it's going to

have some issues creating the description the tags and the title but normally this works no issue whatsoever and then last step is we're just calling the YouTube module once again and we're updating the video so we're basically just updating the entire video metadata in this case and we're passing in the video ID once again from previous step and the title and also I'm just adding the complete description which I'm pretty much just using the same boilerplate description for all my videos.

The only thing I have to do is add some hashtags and then also the title. So, we're passing in the title at the top here. And I also want to make sure to include uh a link to my Skool community like I do on all of my YouTube videos. So, we're just updating that. And then we're also turning on notify subscribers so that they get a notification when I post a new video, which will basically just help it get more views.

And we're setting the status to public since previously was unlisted. So, that'll just make it public on the channel. And that's the complete automation. Again, I'll leave a link in the description below where you can grab this on Gum Road, which is where I what I use for hosting my uh templates and you can get this entire template. And if we want to run this, I'm just going to click on execute workflow.

And it's going to get the latest video, download the file, upload it to YouTube. So, if we come over here and come over to YouTube shorts, we should see a new video being uploaded. That's pretty much all there is to it. Thank you so much for watching this video. Please subscribe to the channel if you haven't already and I will see you in the next one.

Not ready to join? Get the weekly build notes: new guides and tested builds in one short email.

You may also like