How I Automated Product Videography with AI (Step by Step n8n Tutorial) — Transcript
Full transcript
- 0:00Okay. So, all I have to do in this form
- 0:01submission is enter in a picture of a
- 0:03product, enter in the product name, the
- 0:05product description, and my email
- 0:06address. And we'll send this off, and
- 0:08we'll see the workflow over here start
- 0:10to fire off. So, we're going to upload
- 0:11the photo. We're going to get an image
- 0:13prompt. We're going to download that
- 0:14photo. Now, we're creating a
- 0:16professional graphic. So, after our
- 0:17image has been generated, we're
- 0:18uploading it to a API to get a public
- 0:20URL so we can feed that URL of the image
- 0:23into Runway to generate a professional
- 0:25video. Now, we're going to wait 30
- 0:27seconds and then we'll check in to see
- 0:28if the video is done. If it's not done
- 0:29yet, we're going to come down here and
- 0:31pull, wait five more seconds, and then
- 0:32go check in. And we're going to do this
- 0:34infinitely until our video is actually
- 0:35done. So, anyways, it just finished up.
- 0:37It ended up hitting this check eight
- 0:39times, which indicates I should probably
- 0:40increase the wait time over here. But
- 0:42anyways, let's go look at our finished
- 0:43products. So, we just got this new
- 0:45email. Here are the requested marketing
- 0:46materials for your toothpaste. So,
- 0:48first, let's look at the video cuz I
- 0:49think that's more exciting. So, let me
- 0:50open up this link. Wow, we got a
- 0:5110-second video. It's spinning. It's 3D.
- 0:54The lighting is changing. This looks
- 0:56awesome. And then of course it also
- 0:57sends us that image in case we want to
- 0:59use that as well. And one of the steps
- 1:00in the workflow is that it's going to
- 1:02upload your original image to your
- 1:03Google Drive. So here you can see this
- 1:04was the original and then this was the
- 1:06finished product. So now you guys have
- 1:07seen a demo. We're going to build this
- 1:09entire workflow step by step. So stick
- 1:11with me because by the end of this
- 1:12video, you'll have this exact system up
- 1:14and running. Okay. So when we're setting
- 1:15up a system where we're creating an
- 1:17image from text and then we're creating
- 1:19a video from that image, the two most
- 1:21important things are going to be that
- 1:22image prompt and that video prompt. So
- 1:24what we're going to do is head over to
- 1:25my school community. The link for that
- 1:26will be down in the description. It's a
- 1:27free school community. And then what
- 1:29you're going to do is either search for
- 1:30the title of this video or click on
- 1:32YouTube resources and find the post
- 1:34associated with this video. And when you
- 1:35click into there, there'll be a dock
- 1:37that will look like this or a PDF and it
- 1:39will have the two prompts that you'll
- 1:40need in order to run the system. So head
- 1:42over there, get that doc, and then we
- 1:44can hop into the step by step. And that
- 1:45way we can start to build this workflow
- 1:47and you guys will have the prompts to
- 1:48plug right in. Cool. So once you have
- 1:50those, let's get started on the
- 1:52workflow. So, as you guys know, a
- 1:53workflow always has to start with some
- 1:55sort of trigger. So, in this case, we're
- 1:57going to be triggering this workflow
- 1:58with a form submission. So, I'm just
- 2:00going to grab the native NAN form on new
- 2:02form event. So, we're going to configure
- 2:04what this form is going to look like and
- 2:05what it's going to prompt a user to
- 2:06input. And then whenever someone
- 2:08actually submits a response, that's when
- 2:10the workflow is going to fire off. Okay.
- 2:12So, I'm going to leave the
- 2:13authentication as none. The form title,
- 2:15I'm just putting go to market. For the
- 2:16form description, I'm going to say,
- 2:18"Give us a product photo, title, and
- 2:21description, and we'll get back to you
- 2:23with professional marketing
- 2:25materials." And if you guys are
- 2:26interested in what I just used to
- 2:27dictate that text, there'll be a link
- 2:29for Whisper Flow down in the
- 2:30description. And now we need to add our
- 2:31form elements. So, the first one is
- 2:33going to be not a text. We're going to
- 2:35have them actually submit a file. So,
- 2:37click on file. This is going to be
- 2:38required. I only want them to be allowed
- 2:40to upload one file, so I'm going to
- 2:41switch off multiple files. And then for
- 2:44the field name, we're just going to say
- 2:46product photo. Okay. So now we're going
- 2:48to add another one which is going to be
- 2:50the product title. So I'm just going to
- 2:51write product title. This is going to be
- 2:52text. For placeholder, let's just put
- 2:54toothpaste since that was the example.
- 2:56This will be a required field. So the
- 2:57placeholder is just going to be the gray
- 2:59text that fills in the text box so
- 3:00people are kind of they know what to put
- 3:02in. Okay, we're adding another one
- 3:04called product description. We'll make
- 3:06this one required. We'll just leave the
- 3:08placeholder blank because you don't need
- 3:09it. And then finally, what we need to
- 3:10get from them is an email, but instead
- 3:12of doing text, we can actually make it
- 3:14require a valid email address. So, I'm
- 3:16just going to call it email, and we'll
- 3:18just say like
- 3:19nameacample.com so they know what a
- 3:21valid email looks like. We'll make that
- 3:22required because we have to send them an
- 3:24email at the end with their materials.
- 3:26And now we should be good to go. So, if
- 3:27I hit test step, we'll see that it's
- 3:29going to open up a form submission and
- 3:30it has everything that we just
- 3:31configured. And now, let me put in some
- 3:33sample data real quick. Okay, so I put a
- 3:35picture of a clone bottle. The title's
- 3:37clone. I said the clone smells very
- 3:39clean and fresh and it's a very
- 3:40sophisticated scent because we're going
- 3:42to have that description be used to sort
- 3:44of help create that text image prompt.
- 3:46And then I just put my email. So I'm
- 3:47going to submit this form. We should see
- 3:48that we're going to get data back right
- 3:50here in our Nad, which is the binary
- 3:52photo. This is the product photo that I
- 3:54just submitted. And then we have our
- 3:55actual table of information like the
- 3:58title, the description, and the email.
- 4:00And so when I'm building stuff step by
- 4:02step, what I like to do is I get the
- 4:03data in here and then I pretty much will
- 4:05just build node by node, testing the
- 4:07data all the way through, making sure
- 4:08that nothing's going to break when
- 4:10variables are being passed from left to
- 4:12right in this workflow. Okay, so the
- 4:13next thing that we need to do is we have
- 4:15this binary data in here and binary data
- 4:18is tough to reference later. So what I'm
- 4:19going to do is I'm just going to upload
- 4:20it straight to our Google Drive so we
- 4:22can pull that in later when we need it
- 4:24to actually edit that image. Okay, so
- 4:26that's our form trigger. That's what
- 4:27starts the workflow. And now what we're
- 4:29going to do next is we want to upload
- 4:30that original image to Google Drive so
- 4:33we can pull it in later and then use it
- 4:34to edit the image. So what I'm going to
- 4:36do is I'm going to click on the plus.
- 4:38I'm going to type in Google Drive and
- 4:39we're going to grab a Google Drive
- 4:40operation that is going to be upload
- 4:43file. So I'll click on upload file. And
- 4:45at this point you need to connect your
- 4:46Google Drive. So I'm not going to walk
- 4:48through that step by step, but I have a
- 4:49video right up here where I do walk
- 4:51through it step by step. But basically
- 4:53you're just going to go to Docs. you
- 4:54have to open up a sort of Google Cloud
- 4:57profile or a console and then you just
- 4:59have to connect yourself and enable the
- 5:00right credentials and APIs. Um, but like
- 5:03I said, that video will walk through it.
- 5:04Anyways, now what we're doing is we have
- 5:06to upload the binary field right here to
- 5:09our Google Drive. So, it's not called
- 5:11data. We can see over here it's called
- 5:12product photo. So, I'm just going to
- 5:13copy and paste that right there. So,
- 5:15it's going to be looking for that
- 5:16product photo. And then we have to give
- 5:18it a name. So, that's why we had the
- 5:20person submit a title. So, all I'm going
- 5:22to do is for the name, I'm going to make
- 5:24this an expression instead of fixed
- 5:26because this name is going to change
- 5:27based on the actual product coming
- 5:29through. I'm going to drag in the
- 5:30product title from the left right here.
- 5:32So, now the the photo in Google Drive is
- 5:35going to be called cologne. And then I'm
- 5:36just going to in parenthesis say
- 5:38original. So, because this is an
- 5:40expression, it basically means whenever
- 5:42someone submits a form, whatever the
- 5:44title is, it's going to be title and
- 5:45then it's going to say original. And
- 5:47that's how we sort of control that to be
- 5:48dynamic. Anyways, then I'm just choosing
- 5:50what folder to go in. So, in my drive,
- 5:52I'm going to choose it to go to a folder
- 5:53that I just made called um product
- 5:56creatives. So, once we have that
- 5:57configured, I'm going to hit test step.
- 5:59We're going to wait for this to spin. It
- 6:01means that it's trying to upload it
- 6:02right now. And then once we get that
- 6:03success message, we'll quickly go to our
- 6:05Google Drive and make sure that the
- 6:06image is actually there. So, there we
- 6:08go. It just came back. And now I'm going
- 6:10to click into Google Drive, click out of
- 6:11the toothpaste, and we can see we have
- 6:13cologne. And that is the image that we
- 6:14just submitted in NAN. All right. All
- 6:16right. Now that we've done that, what we
- 6:18want to do is we want to feed the data
- 6:19into an AI node so that it can create a
- 6:22text image prompt. So I'm going to click
- 6:23on the plus. I'm going to grab an AI
- 6:25agent. And before we do anything in
- 6:28here, I'm first of all going to give it
- 6:29its brain. So I'm going to click on the
- 6:30plus under chat model. I'm personally
- 6:32going to grab an open router chat model,
- 6:34which basically lets you connect to a
- 6:36ton of different things. Um, let me see.
- 6:38Open router.ai. It basically lets you
- 6:40connect your agents to all the different
- 6:42models. So if I click on models up here,
- 6:44we can see that it just lets you connect
- 6:46to Gemini, Anthropic, OpenAI, DeepSeek.
- 6:48It has all these models and all in one
- 6:50place. So go to open router, get an API
- 6:52key, and then once you come back into
- 6:53here, all you have to do is connect your
- 6:55API key. And what I'm going to use here
- 6:56is going to be 4.1. And then I'm just
- 6:59going to name this so we know which one
- 7:00I'm using here. And then we now have our
- 7:03agent accessing GBT 4.1. Okay. So now
- 7:07you're going to go to that PDF that I
- 7:08have in the school community. And you're
- 7:10just going to copy this product
- 7:12photography prompt. Grab that. Go back
- 7:15to the AI agent. And then you're going
- 7:17to click on add option. Add a system
- 7:19message. And then we're basically just
- 7:20going to I'm going to click on
- 7:22expression and expand this full screen
- 7:23so you guys can see it better. But I'm
- 7:25just going to paste that prompt in here.
- 7:26And this is going to tell the AI agent
- 7:28how to take what we're giving it and
- 7:30turn it into a text image optimized
- 7:33prompt for professional style, you know,
- 7:36studio photography. So we're not done
- 7:39yet. because we have to actually give it
- 7:41the dynamic information from our form
- 7:42submission every time. So that's a user
- 7:45message. That's basically what it's
- 7:46going to look at. So the user message is
- 7:48what the agent's going to look at every
- 7:49time. And the system message is
- 7:51basically like here are your
- 7:52instructions. So for the user message,
- 7:54we're not going to be using a connected
- 7:55chat trigger node. We're going to define
- 7:57below. And when we want to make sure
- 7:59that this changes every time, we have to
- 8:00make sure it's an expression. And then
- 8:02I'm just going to drill down over here
- 8:04to the form submission. And I'm going to
- 8:06say, okay, here's what we're going to
- 8:07give this agent. It's going to get the
- 8:10product which the person submitted to us
- 8:12in the form and we can drag in the
- 8:14product which was cologne as you can see
- 8:16on the right and then they also gave us
- 8:18a description. So all I have to do now
- 8:21is drag in the product description and
- 8:23so now every time the agent will be
- 8:24looking at whatever product and
- 8:26description that the user submitted in
- 8:28order to create its prompt. So I'm going
- 8:29to hit test step. We'll see right now
- 8:32it's using its chat model GPT4.1 and
- 8:34it's already created that prompt for us.
- 8:36So let's just give it a quick read.
- 8:37hyperrealistic photo of sophisticated
- 8:39clone bottle, transparent glass, sleek,
- 8:41minimalistic design, silver metal cap,
- 8:43all this. But what we have to do is we
- 8:45have to make sure that the image isn't
- 8:47being created just on this. It has to
- 8:49look at this, but it also has to look at
- 8:51the actual original image. So that's why
- 8:53our next step is going to be to
- 8:54redownload this file and then we're
- 8:56going to push it over to the image
- 8:57generation model. So at this point, you
- 8:59may be wondering like why are we going
- 9:01to upload the file if we're just going
- 9:02to download it again? And the reason why
- 9:04I had to do that is because when we get
- 9:06the file in the form of binary, we want
- 9:08to send the binary data into the HTTP
- 9:11request right here that actually
- 9:12generates the image. And we can't
- 9:14reference the binary way over here if
- 9:16it's only coming through over here. So
- 9:18we upload it so that we can then
- 9:19download it and then send it right back
- 9:21in. And so if that doesn't make sense
- 9:22yet, it probably will once we get over
- 9:24to this stage, but that's why. Anyways,
- 9:27next step is we're going to download
- 9:28that file. So I'm going to click on this
- 9:29plus. We're going to be downloading it
- 9:31from Google Drive and we're going to be
- 9:33using the operation download file. So,
- 9:36we already should be connected because
- 9:37we've set up our Google credentials
- 9:38already. The operation is going to be
- 9:40download the resources a file and
- 9:42instead of choosing from a list, we're
- 9:44going to choose by ID. And all we're
- 9:45going to do is download that file that
- 9:47we previously uploaded every time. So,
- 9:48I'm going to come over here, the Google
- 9:50Drive upload photo node, drag in the ID,
- 9:53and now we can see that's all we have to
- 9:54do. If we hit test step, we'll get back
- 9:56that file that we originally uploaded.
- 9:58and we can just make sure it's the
- 9:59cologne bottle. Okay, but now it's time
- 10:01to basically use that downloaded file
- 10:03and the image prompt and send that over
- 10:05to an API that's going to create an
- 10:07image for us. So, we're going to be
- 10:09using OpenAI's image generator. So, here
- 10:11is the documentation. We have the
- 10:13ability to create an image or we can
- 10:15create an image edit, which is what we
- 10:17want to do because we want it to look at
- 10:18the photo and our request. So, typically
- 10:21what you can do in this documentation is
- 10:23you can copy the curl command, but this
- 10:25curl command is actually broken, so
- 10:26we're not going to do that. if you
- 10:27copied this one up here to actually just
- 10:29create an image. That one would work
- 10:30fine, but there's like a bug with this
- 10:32one right now. So, anyways, I'm going to
- 10:34go into our NAND. I'm going to hit the
- 10:36plus. I'm going to grab an HTTP request.
- 10:38And now, we're going to configure this
- 10:41request. So, I'm going to walk through
- 10:42how I'm reading the API documentation
- 10:44right here to set this up. I'm not going
- 10:46to go super super in-depth, but if you
- 10:47get confused along the way, then
- 10:49definitely check out my paid course. The
- 10:50link for that's down in the description.
- 10:52I've got a full course on deep diving
- 10:54into APIs and HTTP requests. Anyways,
- 10:56the first thing we see is we're going to
- 10:58be making a post request to this
- 11:00endpoint. So, the first thing I'm going
- 11:01to do is copy this endpoint. We're going
- 11:03to paste that in and then we're also
- 11:04going to make sure the method is set to
- 11:06post. So, the next thing that we have to
- 11:07do is authorize ourselves somehow. So,
- 11:09over here I can see that we have a
- 11:11header and the name is going to be
- 11:12authorization and then the value is
- 11:14going to be bearer space our open key.
- 11:17So, that's why I set up a header
- 11:19authentication already. So, in
- 11:20authentication, I went to generic and
- 11:22then I went to header. And then you can
- 11:24see I have a bunch of different headers
- 11:25already set up. But what I did here is I
- 11:27chose my OpenAI one where basically all
- 11:29I did was I typed in here authorization
- 11:31and then in the value I typed in bearer
- 11:34space and then I pasted my API key in
- 11:36there. And now I have my OpenAI
- 11:37credential saved forever. Okay. So the
- 11:40first thing we have to do in our body
- 11:41request over to OpenAI is we have to
- 11:44send over the image to edit. So that's
- 11:46going to be in a field called image. And
- 11:47then we're sending over the actual
- 11:49photo. So what I'm going to do is I'm
- 11:51going to click on send body. I'm going
- 11:53to use form data. And now we can set up
- 11:56the different names and values to send
- 11:57over. So the first thing is we're going
- 11:59to send over this image right here on
- 12:00the lefth hand side. And this is in a
- 12:02field called data. And it's binary. So
- 12:04I'm going to choose instead of form
- 12:05data, I'm going to send over an NAN
- 12:06binary file. The name is going to be
- 12:08image because that's what it said in the
- 12:10documentation. And the input data field
- 12:12name is data. So I'm just going to copy
- 12:14that, paste it in there. And this
- 12:15basically means, okay, we're sending
- 12:17over this picture. The next thing we
- 12:19need to send over is a prompt. So the
- 12:21name of this field is going to be
- 12:23prompt. So I'm just going to copy that,
- 12:24add a new parameter, and call it prompt.
- 12:27And then for the value, we want to send
- 12:28over the prompt that we had our AI
- 12:30agent, right? So I'm going to click into
- 12:31schema, and I'm just going to drag over
- 12:33the output from the AI agent right
- 12:35there. And now that's an expression. So
- 12:37the next thing we want to send over is
- 12:38what model do we want to use? Because if
- 12:40we don't put this in, it's going to
- 12:41default to dolly 2. but we want to use
- 12:44gpt-image- one. So, I'm going to copy
- 12:48gpt-image-1. We're going to come back
- 12:49into here and I'm gonna paste that in as
- 12:51the value, but then the name is model
- 12:54because as you can see in here, right
- 12:56there, it says model. So, hopefully you
- 12:57guys can see that when we're sending
- 12:58over an API call, we just have all of
- 13:01these different options where we can
- 13:02sort of tweak different settings to
- 13:04change the way that we get the output
- 13:06back. And then you have some other
- 13:08options of course like quality or size.
- 13:10But right now we're just going to leave
- 13:11all that as default and just go with
- 13:12these three things to keep it simple.
- 13:14And I'm going to hit test step and we'll
- 13:15see if this is working. Okay, never
- 13:17mind. I got an error and I was like,
- 13:19okay, I think I did everything right.
- 13:20The reason I got the error is because I
- 13:22don't have any more credits. So if you
- 13:24get this error, go add some credits.
- 13:26Okay, so added more credits. I'm going
- 13:28to try this again and I'll check back
- 13:29in. But before I do that, I wanted to
- 13:31say me clearly. I've been like spamming
- 13:34this thing with creating images cuz it's
- 13:36so cool. It's so fun. But everyone else
- 13:38in the world has also been doing that.
- 13:39So, if you're ever getting some sort of
- 13:40like errors where it's like a 500 type
- 13:43of error where it means like something's
- 13:44going on on the server side of things or
- 13:47you're seeing like some sort of rate
- 13:48limit stuff, keep in mind that there's
- 13:50there's a limit on how many images you
- 13:52can send per minute. I don't think
- 13:53that's been clearly defined on GPT-
- 13:55image- one. But also, if the OpenAI
- 13:58server is receiving way too many
- 13:59requests, that is also another reason
- 14:01why your requests may be failing. So,
- 14:04just keep that in mind. Okay. Okay, so
- 14:05now it worked. We just got that back.
- 14:07But what you'll notice is we don't see
- 14:08an image here or like an image URL. So
- 14:10what we have to do is we have this base
- 14:1264 string and we have to turn that into
- 14:15binary data. So what I'm going to do is
- 14:17after this node, I'm going to add one
- 14:19that says um convert to file. So we're
- 14:22going to convert JSON data to binary
- 14:24data and we're going to do B 64. So all
- 14:27I have to do now is show this data on
- 14:28the lefth hand side. grab the base 64
- 14:30string and then when we hit test step we
- 14:32should get a binary file over here which
- 14:34if we click into it this should be our
- 14:36professional looking photo. Wow, that
- 14:38looks great. It even got the wording and
- 14:40like the same fonts, right? So that's
- 14:41awesome. And by the way, if we click
- 14:43into the results of the create image
- 14:45where we did the image edit, we can see
- 14:47the tokens. And with this model, it is
- 14:50basically $10 for a million input tokens
- 14:52and $40 for a million output tokens. So
- 14:55right here you can see the difference
- 14:56between our input and output tokens. And
- 14:58this one was pretty cheap. cheap. I
- 14:58think it was like 5 cents. Anyways, now
- 15:00that we have that image right here as
- 15:02binary data, we need to turn that into a
- 15:04video using an API called runway. And
- 15:07so, if we go into Runway and we go,
- 15:08first of all, let's look at the price.
- 15:10For a 5second video, 25 cents. For a
- 15:1210-second video, 50 cents. So, that's
- 15:13the one we're going to be doing today.
- 15:15But if we go to the API reference to
- 15:17read how we can turn an image into a
- 15:19video, what we need to look at is how we
- 15:21actually send over that image. And what
- 15:23we have to do here is send over an HTTPS
- 15:26URL of the image. So, we somehow have to
- 15:28get this binary data in Nadn to a public
- 15:31image that runway can access. So, the
- 15:33way I'm going to be doing that is with
- 15:34this API that's free called image BB and
- 15:38um it's a free image hosting service and
- 15:40what we can do is basically just use its
- 15:42API to send over the binary data and
- 15:44we'll get back a public URL. So, come
- 15:46here, make a free account, you'll grab
- 15:48your API key from up top and then we
- 15:50basically have here's how we set this
- 15:52up. So, what I'm going to do is I'm
- 15:53going to copy the endpoint right there.
- 15:55We're going to go back into nen and I'm
- 15:56going to add an HTTP request and let me
- 15:59just configure this up. We'll put it
- 16:01over here just to keep everything sort
- 16:03of square. But now what I'm going to do
- 16:04in here is paste that endpoint in as our
- 16:07URL. You can also see that it says this
- 16:09call can be done using post or git. But
- 16:11since git requests are limited by the
- 16:13max amount of length, you should
- 16:14probably do post. So I'm just going to
- 16:15go back in here and change this to a
- 16:16post. And then there are basically two
- 16:18things that are required. The first one
- 16:19is our API key. And then the second one
- 16:21is the actual image. Anyways, this
- 16:24documentation is not super intuitive. I
- 16:26can sort of tell that this is a query
- 16:28parameter because it's being attached at
- 16:30the end of the endpoint with a question
- 16:31mark and all this kind of stuff. And
- 16:33that's just because I've looked at tons
- 16:34of API documentation. So, what I'm going
- 16:36to do is go into nit. We're going to add
- 16:38a generic credential type. It's going to
- 16:40be a query off. Where where's query?
- 16:42There we go. And then you can see I've
- 16:44already added my image BB. But all
- 16:46you're going to do is you would add the
- 16:47name as a key and then you would just
- 16:48paste in your API key. And that's it.
- 16:50And now we've authenticated ourselves to
- 16:52the service. And then what's next is we
- 16:54need to send over the image in a field
- 16:56called image. So I'm going to go back in
- 16:57here. I'm going to send over a body
- 16:59because this allows us to actually send
- 17:01over n binary fields. And I'm not going
- 17:04to do n binary. I'm going to do form
- 17:05data because then we can name the field
- 17:07we're sending over. Like I said, not
- 17:09going to deep dive into how that all
- 17:10works. But the name is going to be
- 17:11image. And then the input data field
- 17:13name is going to be data because that's
- 17:15how it's seen over here. And this should
- 17:17be it. So, real quick, I'm just going to
- 17:18change this to get URL. And then we're
- 17:21going to hit test step, which is going
- 17:22to send over that binary data to imageb.
- 17:25And it hopefully should be sending us
- 17:27back a URL. And it sent back three of
- 17:29them. I'm going to be using the middle
- 17:30one that's just called URL because it's
- 17:32like the best size and everything. You
- 17:33can look at the other ones if you want
- 17:35on your end. But this one is going to
- 17:36load up. And we should see it's the
- 17:39image that we got generated for us. It
- 17:40takes a while to load up on that first
- 17:41time, but as you can see now, it's a
- 17:43publicly accessible URL. and then we can
- 17:45feed it into runway. So that's exactly
- 17:48our next step. We're going to add
- 17:49another request right here. It's going
- 17:51to be an HTTP and this one we're going
- 17:53to configure to hit runway. So here's a
- 17:55good example of we can actually use a
- 17:57curl command. So I'm going to click on
- 17:58copy over here when I'm in the runway.
- 18:00Generate a video from image. Come back
- 18:03into naden. Hit import curl and paste
- 18:05that in there and hit import. And this
- 18:07is going to basically configure
- 18:08everything we need. We just have to
- 18:09tweak a few things. Typically most API
- 18:12documentation nowadays will have a curl
- 18:13command. The edit image one that we set
- 18:15up earlier was just a little broken.
- 18:17Image BBB is just a free service. So
- 18:19sometimes they don't always. But let's
- 18:21configure this node. So the first thing
- 18:23I see is we have a header off right
- 18:24here. And I don't want to send it like
- 18:26this. I want to send it up as a generic
- 18:27type so I can save it. Otherwise, you'd
- 18:29have to go get your API key every time
- 18:31you wanted to use Runway. So as you can
- 18:33see, I've already set up my Runway API
- 18:35key. So I have it plugged in. But what
- 18:36you would do is you'd go get your API
- 18:38key from Runway. And then you'd see,
- 18:40okay, how do we actually send over
- 18:41authentication? It comes through with
- 18:43the name authorization and then the
- 18:46header is bearer space API key. So
- 18:48similar to the last one and then that's
- 18:50all you would do in here when you're
- 18:51setting up your runway credential.
- 18:53Authorization bearer space my API key.
- 18:56And then because we have ourselves
- 18:57authenticated up here, we can flick off
- 18:59that headers and all we have to do now
- 19:01is configure the actual body. Okay, so
- 19:03first things first, what image are we
- 19:05sending over to get turned into a video?
- 19:06in that name prompt image. We're going
- 19:08to get rid of that value and I'm just
- 19:10going to drag in the URL that we wanted
- 19:12that we got from earlier which was that
- 19:14picture I s I showed you guys. So now
- 19:16runway sees that image. Next we have the
- 19:18seed which if you want to look at the
- 19:20documentation you can play with it but
- 19:21I'm just going to get rid of that. Then
- 19:23we have the model which we're going to
- 19:24be using Gen 4 Turbo. We then have the
- 19:26prompt text. So this is where we're
- 19:28going to get rid of this and you're
- 19:29going to go back to that PDF you
- 19:31downloaded from my free school and
- 19:33you're going to paste this prompt in
- 19:35there. So, this prompt basically gives
- 19:36us that like 3D spinning effect where it
- 19:38just kind of does a slow pan and a slow
- 19:40rotate. And that's what I was looking
- 19:42for. If you're wanting some other type
- 19:43of video, then you can tweak that
- 19:45prompt, of course. For the duration, if
- 19:47you look in the documentation, it'll say
- 19:49the duration only basically allows five
- 19:52or 10. So, I'm just going to change this
- 19:53one to 10. And then the last one was
- 19:55ratio, and I'm just going to make the
- 19:56square. So, here are the accepted ratio
- 19:58values. I'm going to copy 960 by 960,
- 20:01and we're just going to paste that in
- 20:02right there. And actually before we hit
- 20:04test step, I've realized that we're
- 20:05missing something here. So back in the
- 20:08documentation, we can see that there's
- 20:09one thing up here which is required,
- 20:11which is a header x-runway- version. And
- 20:14then we need to set the value to this.
- 20:16So I'm going to copy the header, and we
- 20:19have to enable headers. I I deleted it
- 20:20earlier, but we're going to enable that.
- 20:21So we have the version, and then I'm
- 20:23just going to go copy the value that it
- 20:24needs to be set to, and we'll paste that
- 20:26in there as the value. Otherwise, this
- 20:28would not have worked. Okay, so that
- 20:30should be configured. But before we test
- 20:32it out, I want to show you guys how I
- 20:34set up the polling flow like this that
- 20:36you saw in the demo. So, what we're
- 20:38going to do here is we need to go see
- 20:40like, okay, once we send over our
- 20:43request right here to get a video from
- 20:45our image, it's going to return an ID
- 20:47and that doesn't mean anything to us.
- 20:49So, what we have to do is get our task.
- 20:51So, that is the basically we send over
- 20:53the ID that it gives us and then it'll
- 20:55come back and say like the status equals
- 20:57pending or running or it will say
- 20:59completed. So, what I'm going to do is
- 21:01copy this curl command for getting task
- 21:03details. We're going to hook it up to
- 21:05this node as an HTTP request. We're
- 21:08going to import that
- 21:10curl. And now that's pretty much set up.
- 21:12We have our authorization, which I'm
- 21:13going to delete that because, as you
- 21:15know, we just configured that earlier as
- 21:17a header off. So, I'm just going to come
- 21:18in here and grab my runway API key.
- 21:22There it is. I couldn't find it for some
- 21:23reason. Um, we have the version set up
- 21:26and now all we have to do is drag in the
- 21:27actual ID from the previous one. So,
- 21:30real quick, I'm just going to make this
- 21:31an expression. Delete ID. And now we're
- 21:34pretty much set up. So, first of all,
- 21:35I'm going to test this one, which is
- 21:37going to send off that request to runway
- 21:38and say, "Hey, here's our image. Here's
- 21:40the prompt. Make a video out of it." And
- 21:42as you can see, we got back an ID. Now,
- 21:44I'm going to use this next node, and I'm
- 21:46going to drag in that ID from earlier.
- 21:48And now, it's saying, "Okay, we're going
- 21:50to check in on the status of this
- 21:51specific task." And if I hit test step,
- 21:54what we're going to see is that it's not
- 21:55yet finished. So, it's going to come
- 21:56back and say, okay, status of this run
- 21:58or status of this task is running. So,
- 22:01that's why what I'm going to do is add
- 22:02an
- 22:03if. And this if is going to be saying,
- 22:06okay, does this status field right here,
- 22:09does that equal running in all caps?
- 22:11Because that's what it equals right now.
- 22:13If yes, what we're going to do is we are
- 22:16going to basically wait for a certain
- 22:18amount of time. So, here's the true
- 22:19branch. I'm going to wait and let's just
- 22:22say it's 5 seconds. So, I'll just call
- 22:24this five seconds. I'm going to wait for
- 22:265 seconds. And then I'm going to come
- 22:27back here and try again. So, as you saw
- 22:30in the demo, it basically tried again
- 22:31like seven or eight times. And this just
- 22:33ensures that it's never going to move on
- 22:35until we actually have a finished photo.
- 22:38So, what you could also do is basically
- 22:39say, does status equal completed or
- 22:41whatever it means when it completes.
- 22:43That's another way to do it. You just
- 22:45have to be careful to make sure that
- 22:46whatever you're setting here as the
- 22:47check is always 100% going to work.
- 22:50And then what you do is you would
- 22:52continue the rest of the logic down this
- 22:53path once that check has been complete.
- 22:56And then of course you probably don't
- 22:57want to have this check like 10 times
- 22:58every single time. So what you would do
- 23:00is you'd add a wait step here. And once
- 23:02you know about how long it takes, you'd
- 23:04add this here. So last time I had it at
- 23:0630 seconds and it waited like eight
- 23:07times. So let's just say I'm going to
- 23:09wait 60 seconds here. So then when this
- 23:11flow actually runs, it'll wait for a
- 23:12minute, check. If it's still not done,
- 23:14it'll continuously loop through here and
- 23:16wait 5 seconds every time until we're
- 23:18done. Okay, there we So, now status is
- 23:20succeeded. And what I'm going to do is
- 23:21just view this video real quick.
- 23:23Hopefully, this one came out nicely.
- 23:24Let's take a
- 23:27look. Wow, this is awesome. Super clean.
- 23:30It's rotating really slowly. It's a full
- 23:3210-second video. You can tell it's like
- 23:34a 3D image. This is awesome. Okay, cool.
- 23:37So, now if we test this if branch, we'll
- 23:40see that it's going to go down the other
- 23:41one, which is the false branch, because
- 23:42it's actually completed. And now we can
- 23:44with confidence shoot off the email with
- 23:47our materials. So, I'm going to grab a
- 23:48Gmail node. I'm going to click send a
- 23:50message. And we are going to have this
- 23:52configured hopefully because you've
- 23:53already set up your Google stuff. And
- 23:55now, who do we send this to? We're going
- 23:57to go grab that email from the original
- 23:58form submission, which is all the way
- 24:00down here. We're going to make the
- 24:02subject, which I'm just going to say
- 24:04marketing materials, and then a colon.
- 24:07And we'll just drag in the actual title
- 24:09of the product, which in here was
- 24:11cologne. I'm changing the email type to
- 24:13text just because I want to. Um, we're
- 24:16gonna make the body an expression. And
- 24:17we're just gonna say like,
- 24:20hey, here is your photo. And obviously,
- 24:25this can be customized however you want.
- 24:26But for the photo, what we have to do is
- 24:28grab that public URL that we generated
- 24:30earlier. So, right here, there is the
- 24:32photo URL. Here is your video. And for
- 24:36the video, we're going to drag in the
- 24:38URL we just got from the output of that
- 24:40um, runway get task check. So, there is
- 24:43the video URL. And then I'm just going
- 24:45to say cheers. Last thing I want to do
- 24:48is down here append naden attribution
- 24:50and turn that off. This just ensures
- 24:52that the email doesn't say this email
- 24:55was sent by naden. And now if we hit
- 24:57test step right here. This is pretty
- 24:58much the end of the process. And we can
- 25:00go ahead and check. Uh-oh. Okay. So not
- 25:03authorized. Let me fix that real quick.
- 25:04Okay. So I just switched my credential
- 25:06because I was using one that had
- 25:07expired. So now this should go through
- 25:08and we'll go take a look at the email.
- 25:10Okay. So did something wrong. I can
- 25:12already tell what happened is this is
- 25:13supposed to be an expression and
- 25:15dynamically come through as the title of
- 25:16the product, but we accidentally somehow
- 25:18left off a curly brace. So, if I come
- 25:20back into here and and add one more
- 25:22curly brace right here to the
- 25:23description or sorry, the subject. Now,
- 25:26we should be good. I'll hit test step
- 25:27again. And now we'll go take a look at
- 25:29that email. Okay, there we go. Now, we
- 25:31have the cologne and we have our photo
- 25:33and our video. So, let's click into the
- 25:34video real
- 25:37quick. I'm just so amazed. This is this
- 25:39is just so much fun. and it looked the
- 25:41the lighting and the the reflections.
- 25:42It's it's all just
- 25:45perfect. And then we'll click into the
- 25:47photo just in case we want to see the
- 25:48actual image. And there it is. This also
- 25:50looks awesome. All right, so that's
- 25:52going to do it for today's video. I hope
- 25:54you guys enjoyed this style of walking
- 25:56step-by-step through some of the API
- 25:57calls and sort of my thought process as
- 25:59to how I set up this workflow. If you're
- 26:01interested in more step-by-step styles
- 26:03or you like the way that I teach, then
- 26:05definitely check out my paid community.
- 26:06The link for that's down in the
- 26:07description. Like I said, we've got a
- 26:09great community of members that are
- 26:10doing so much stuff with AI automation
- 26:12with Naden. So, a great place to learn
- 26:14and collaborate as well as we have a
- 26:15full classroom section with deep dive
- 26:17topics like APIs, vector databases,
- 26:20classroom on building AI agents. And
- 26:22then I'm right now working on two
- 26:23courses which is like for beginners to
- 26:25start here, understand the foundations
- 26:26of LLMs and APIs and all this kind of
- 26:28stuff before you hop into this course
- 26:30called 10 hours to 10 seconds where you
- 26:32learn how to identify, design, and build
- 26:35time-saving automations. So anyways, I'd
- 26:37love to see you guys in the community.
- 26:38We also have five live calls per week.
- 26:40But that's going to do it for this
- 26:41video. Really appreciate you guys as
- 26:43always making it to the end of the
- 26:44video. If you enjoyed this or you
- 26:46learned something new, please give it a
- 26:47like. Helps me out a ton. And I'll see
- 26:49you all in the next one. Thanks
- 26:51everyone.
About this transcript
This page contains the full transcript of How I Automated Product Videography with AI (Step by Step n8n Tutorial) by Nate Herk | AI Automation, generated from the public captions YouTube serves with the video. The transcript has 6,710 words across 887 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.