YouTube2Text

How I Automated Product Videography with AI (Step by Step n8n Tutorial) — Transcript

by Nate Herk | AI Automation · 6,710 words · 887 segments · language en · Watch on YouTube

Full transcript

  1. 0:00Okay. So, all I have to do in this form
  2. 0:01submission is enter in a picture of a
  3. 0:03product, enter in the product name, the
  4. 0:05product description, and my email
  5. 0:06address. And we'll send this off, and
  6. 0:08we'll see the workflow over here start
  7. 0:10to fire off. So, we're going to upload
  8. 0:11the photo. We're going to get an image
  9. 0:13prompt. We're going to download that
  10. 0:14photo. Now, we're creating a
  11. 0:16professional graphic. So, after our
  12. 0:17image has been generated, we're
  13. 0:18uploading it to a API to get a public
  14. 0:20URL so we can feed that URL of the image
  15. 0:23into Runway to generate a professional
  16. 0:25video. Now, we're going to wait 30
  17. 0:27seconds and then we'll check in to see
  18. 0:28if the video is done. If it's not done
  19. 0:29yet, we're going to come down here and
  20. 0:31pull, wait five more seconds, and then
  21. 0:32go check in. And we're going to do this
  22. 0:34infinitely until our video is actually
  23. 0:35done. So, anyways, it just finished up.
  24. 0:37It ended up hitting this check eight
  25. 0:39times, which indicates I should probably
  26. 0:40increase the wait time over here. But
  27. 0:42anyways, let's go look at our finished
  28. 0:43products. So, we just got this new
  29. 0:45email. Here are the requested marketing
  30. 0:46materials for your toothpaste. So,
  31. 0:48first, let's look at the video cuz I
  32. 0:49think that's more exciting. So, let me
  33. 0:50open up this link. Wow, we got a
  34. 0:5110-second video. It's spinning. It's 3D.
  35. 0:54The lighting is changing. This looks
  36. 0:56awesome. And then of course it also
  37. 0:57sends us that image in case we want to
  38. 0:59use that as well. And one of the steps
  39. 1:00in the workflow is that it's going to
  40. 1:02upload your original image to your
  41. 1:03Google Drive. So here you can see this
  42. 1:04was the original and then this was the
  43. 1:06finished product. So now you guys have
  44. 1:07seen a demo. We're going to build this
  45. 1:09entire workflow step by step. So stick
  46. 1:11with me because by the end of this
  47. 1:12video, you'll have this exact system up
  48. 1:14and running. Okay. So when we're setting
  49. 1:15up a system where we're creating an
  50. 1:17image from text and then we're creating
  51. 1:19a video from that image, the two most
  52. 1:21important things are going to be that
  53. 1:22image prompt and that video prompt. So
  54. 1:24what we're going to do is head over to
  55. 1:25my school community. The link for that
  56. 1:26will be down in the description. It's a
  57. 1:27free school community. And then what
  58. 1:29you're going to do is either search for
  59. 1:30the title of this video or click on
  60. 1:32YouTube resources and find the post
  61. 1:34associated with this video. And when you
  62. 1:35click into there, there'll be a dock
  63. 1:37that will look like this or a PDF and it
  64. 1:39will have the two prompts that you'll
  65. 1:40need in order to run the system. So head
  66. 1:42over there, get that doc, and then we
  67. 1:44can hop into the step by step. And that
  68. 1:45way we can start to build this workflow
  69. 1:47and you guys will have the prompts to
  70. 1:48plug right in. Cool. So once you have
  71. 1:50those, let's get started on the
  72. 1:52workflow. So, as you guys know, a
  73. 1:53workflow always has to start with some
  74. 1:55sort of trigger. So, in this case, we're
  75. 1:57going to be triggering this workflow
  76. 1:58with a form submission. So, I'm just
  77. 2:00going to grab the native NAN form on new
  78. 2:02form event. So, we're going to configure
  79. 2:04what this form is going to look like and
  80. 2:05what it's going to prompt a user to
  81. 2:06input. And then whenever someone
  82. 2:08actually submits a response, that's when
  83. 2:10the workflow is going to fire off. Okay.
  84. 2:12So, I'm going to leave the
  85. 2:13authentication as none. The form title,
  86. 2:15I'm just putting go to market. For the
  87. 2:16form description, I'm going to say,
  88. 2:18"Give us a product photo, title, and
  89. 2:21description, and we'll get back to you
  90. 2:23with professional marketing
  91. 2:25materials." And if you guys are
  92. 2:26interested in what I just used to
  93. 2:27dictate that text, there'll be a link
  94. 2:29for Whisper Flow down in the
  95. 2:30description. And now we need to add our
  96. 2:31form elements. So, the first one is
  97. 2:33going to be not a text. We're going to
  98. 2:35have them actually submit a file. So,
  99. 2:37click on file. This is going to be
  100. 2:38required. I only want them to be allowed
  101. 2:40to upload one file, so I'm going to
  102. 2:41switch off multiple files. And then for
  103. 2:44the field name, we're just going to say
  104. 2:46product photo. Okay. So now we're going
  105. 2:48to add another one which is going to be
  106. 2:50the product title. So I'm just going to
  107. 2:51write product title. This is going to be
  108. 2:52text. For placeholder, let's just put
  109. 2:54toothpaste since that was the example.
  110. 2:56This will be a required field. So the
  111. 2:57placeholder is just going to be the gray
  112. 2:59text that fills in the text box so
  113. 3:00people are kind of they know what to put
  114. 3:02in. Okay, we're adding another one
  115. 3:04called product description. We'll make
  116. 3:06this one required. We'll just leave the
  117. 3:08placeholder blank because you don't need
  118. 3:09it. And then finally, what we need to
  119. 3:10get from them is an email, but instead
  120. 3:12of doing text, we can actually make it
  121. 3:14require a valid email address. So, I'm
  122. 3:16just going to call it email, and we'll
  123. 3:18just say like
  124. 3:19nameacample.com so they know what a
  125. 3:21valid email looks like. We'll make that
  126. 3:22required because we have to send them an
  127. 3:24email at the end with their materials.
  128. 3:26And now we should be good to go. So, if
  129. 3:27I hit test step, we'll see that it's
  130. 3:29going to open up a form submission and
  131. 3:30it has everything that we just
  132. 3:31configured. And now, let me put in some
  133. 3:33sample data real quick. Okay, so I put a
  134. 3:35picture of a clone bottle. The title's
  135. 3:37clone. I said the clone smells very
  136. 3:39clean and fresh and it's a very
  137. 3:40sophisticated scent because we're going
  138. 3:42to have that description be used to sort
  139. 3:44of help create that text image prompt.
  140. 3:46And then I just put my email. So I'm
  141. 3:47going to submit this form. We should see
  142. 3:48that we're going to get data back right
  143. 3:50here in our Nad, which is the binary
  144. 3:52photo. This is the product photo that I
  145. 3:54just submitted. And then we have our
  146. 3:55actual table of information like the
  147. 3:58title, the description, and the email.
  148. 4:00And so when I'm building stuff step by
  149. 4:02step, what I like to do is I get the
  150. 4:03data in here and then I pretty much will
  151. 4:05just build node by node, testing the
  152. 4:07data all the way through, making sure
  153. 4:08that nothing's going to break when
  154. 4:10variables are being passed from left to
  155. 4:12right in this workflow. Okay, so the
  156. 4:13next thing that we need to do is we have
  157. 4:15this binary data in here and binary data
  158. 4:18is tough to reference later. So what I'm
  159. 4:19going to do is I'm just going to upload
  160. 4:20it straight to our Google Drive so we
  161. 4:22can pull that in later when we need it
  162. 4:24to actually edit that image. Okay, so
  163. 4:26that's our form trigger. That's what
  164. 4:27starts the workflow. And now what we're
  165. 4:29going to do next is we want to upload
  166. 4:30that original image to Google Drive so
  167. 4:33we can pull it in later and then use it
  168. 4:34to edit the image. So what I'm going to
  169. 4:36do is I'm going to click on the plus.
  170. 4:38I'm going to type in Google Drive and
  171. 4:39we're going to grab a Google Drive
  172. 4:40operation that is going to be upload
  173. 4:43file. So I'll click on upload file. And
  174. 4:45at this point you need to connect your
  175. 4:46Google Drive. So I'm not going to walk
  176. 4:48through that step by step, but I have a
  177. 4:49video right up here where I do walk
  178. 4:51through it step by step. But basically
  179. 4:53you're just going to go to Docs. you
  180. 4:54have to open up a sort of Google Cloud
  181. 4:57profile or a console and then you just
  182. 4:59have to connect yourself and enable the
  183. 5:00right credentials and APIs. Um, but like
  184. 5:03I said, that video will walk through it.
  185. 5:04Anyways, now what we're doing is we have
  186. 5:06to upload the binary field right here to
  187. 5:09our Google Drive. So, it's not called
  188. 5:11data. We can see over here it's called
  189. 5:12product photo. So, I'm just going to
  190. 5:13copy and paste that right there. So,
  191. 5:15it's going to be looking for that
  192. 5:16product photo. And then we have to give
  193. 5:18it a name. So, that's why we had the
  194. 5:20person submit a title. So, all I'm going
  195. 5:22to do is for the name, I'm going to make
  196. 5:24this an expression instead of fixed
  197. 5:26because this name is going to change
  198. 5:27based on the actual product coming
  199. 5:29through. I'm going to drag in the
  200. 5:30product title from the left right here.
  201. 5:32So, now the the photo in Google Drive is
  202. 5:35going to be called cologne. And then I'm
  203. 5:36just going to in parenthesis say
  204. 5:38original. So, because this is an
  205. 5:40expression, it basically means whenever
  206. 5:42someone submits a form, whatever the
  207. 5:44title is, it's going to be title and
  208. 5:45then it's going to say original. And
  209. 5:47that's how we sort of control that to be
  210. 5:48dynamic. Anyways, then I'm just choosing
  211. 5:50what folder to go in. So, in my drive,
  212. 5:52I'm going to choose it to go to a folder
  213. 5:53that I just made called um product
  214. 5:56creatives. So, once we have that
  215. 5:57configured, I'm going to hit test step.
  216. 5:59We're going to wait for this to spin. It
  217. 6:01means that it's trying to upload it
  218. 6:02right now. And then once we get that
  219. 6:03success message, we'll quickly go to our
  220. 6:05Google Drive and make sure that the
  221. 6:06image is actually there. So, there we
  222. 6:08go. It just came back. And now I'm going
  223. 6:10to click into Google Drive, click out of
  224. 6:11the toothpaste, and we can see we have
  225. 6:13cologne. And that is the image that we
  226. 6:14just submitted in NAN. All right. All
  227. 6:16right. Now that we've done that, what we
  228. 6:18want to do is we want to feed the data
  229. 6:19into an AI node so that it can create a
  230. 6:22text image prompt. So I'm going to click
  231. 6:23on the plus. I'm going to grab an AI
  232. 6:25agent. And before we do anything in
  233. 6:28here, I'm first of all going to give it
  234. 6:29its brain. So I'm going to click on the
  235. 6:30plus under chat model. I'm personally
  236. 6:32going to grab an open router chat model,
  237. 6:34which basically lets you connect to a
  238. 6:36ton of different things. Um, let me see.
  239. 6:38Open router.ai. It basically lets you
  240. 6:40connect your agents to all the different
  241. 6:42models. So if I click on models up here,
  242. 6:44we can see that it just lets you connect
  243. 6:46to Gemini, Anthropic, OpenAI, DeepSeek.
  244. 6:48It has all these models and all in one
  245. 6:50place. So go to open router, get an API
  246. 6:52key, and then once you come back into
  247. 6:53here, all you have to do is connect your
  248. 6:55API key. And what I'm going to use here
  249. 6:56is going to be 4.1. And then I'm just
  250. 6:59going to name this so we know which one
  251. 7:00I'm using here. And then we now have our
  252. 7:03agent accessing GBT 4.1. Okay. So now
  253. 7:07you're going to go to that PDF that I
  254. 7:08have in the school community. And you're
  255. 7:10just going to copy this product
  256. 7:12photography prompt. Grab that. Go back
  257. 7:15to the AI agent. And then you're going
  258. 7:17to click on add option. Add a system
  259. 7:19message. And then we're basically just
  260. 7:20going to I'm going to click on
  261. 7:22expression and expand this full screen
  262. 7:23so you guys can see it better. But I'm
  263. 7:25just going to paste that prompt in here.
  264. 7:26And this is going to tell the AI agent
  265. 7:28how to take what we're giving it and
  266. 7:30turn it into a text image optimized
  267. 7:33prompt for professional style, you know,
  268. 7:36studio photography. So we're not done
  269. 7:39yet. because we have to actually give it
  270. 7:41the dynamic information from our form
  271. 7:42submission every time. So that's a user
  272. 7:45message. That's basically what it's
  273. 7:46going to look at. So the user message is
  274. 7:48what the agent's going to look at every
  275. 7:49time. And the system message is
  276. 7:51basically like here are your
  277. 7:52instructions. So for the user message,
  278. 7:54we're not going to be using a connected
  279. 7:55chat trigger node. We're going to define
  280. 7:57below. And when we want to make sure
  281. 7:59that this changes every time, we have to
  282. 8:00make sure it's an expression. And then
  283. 8:02I'm just going to drill down over here
  284. 8:04to the form submission. And I'm going to
  285. 8:06say, okay, here's what we're going to
  286. 8:07give this agent. It's going to get the
  287. 8:10product which the person submitted to us
  288. 8:12in the form and we can drag in the
  289. 8:14product which was cologne as you can see
  290. 8:16on the right and then they also gave us
  291. 8:18a description. So all I have to do now
  292. 8:21is drag in the product description and
  293. 8:23so now every time the agent will be
  294. 8:24looking at whatever product and
  295. 8:26description that the user submitted in
  296. 8:28order to create its prompt. So I'm going
  297. 8:29to hit test step. We'll see right now
  298. 8:32it's using its chat model GPT4.1 and
  299. 8:34it's already created that prompt for us.
  300. 8:36So let's just give it a quick read.
  301. 8:37hyperrealistic photo of sophisticated
  302. 8:39clone bottle, transparent glass, sleek,
  303. 8:41minimalistic design, silver metal cap,
  304. 8:43all this. But what we have to do is we
  305. 8:45have to make sure that the image isn't
  306. 8:47being created just on this. It has to
  307. 8:49look at this, but it also has to look at
  308. 8:51the actual original image. So that's why
  309. 8:53our next step is going to be to
  310. 8:54redownload this file and then we're
  311. 8:56going to push it over to the image
  312. 8:57generation model. So at this point, you
  313. 8:59may be wondering like why are we going
  314. 9:01to upload the file if we're just going
  315. 9:02to download it again? And the reason why
  316. 9:04I had to do that is because when we get
  317. 9:06the file in the form of binary, we want
  318. 9:08to send the binary data into the HTTP
  319. 9:11request right here that actually
  320. 9:12generates the image. And we can't
  321. 9:14reference the binary way over here if
  322. 9:16it's only coming through over here. So
  323. 9:18we upload it so that we can then
  324. 9:19download it and then send it right back
  325. 9:21in. And so if that doesn't make sense
  326. 9:22yet, it probably will once we get over
  327. 9:24to this stage, but that's why. Anyways,
  328. 9:27next step is we're going to download
  329. 9:28that file. So I'm going to click on this
  330. 9:29plus. We're going to be downloading it
  331. 9:31from Google Drive and we're going to be
  332. 9:33using the operation download file. So,
  333. 9:36we already should be connected because
  334. 9:37we've set up our Google credentials
  335. 9:38already. The operation is going to be
  336. 9:40download the resources a file and
  337. 9:42instead of choosing from a list, we're
  338. 9:44going to choose by ID. And all we're
  339. 9:45going to do is download that file that
  340. 9:47we previously uploaded every time. So,
  341. 9:48I'm going to come over here, the Google
  342. 9:50Drive upload photo node, drag in the ID,
  343. 9:53and now we can see that's all we have to
  344. 9:54do. If we hit test step, we'll get back
  345. 9:56that file that we originally uploaded.
  346. 9:58and we can just make sure it's the
  347. 9:59cologne bottle. Okay, but now it's time
  348. 10:01to basically use that downloaded file
  349. 10:03and the image prompt and send that over
  350. 10:05to an API that's going to create an
  351. 10:07image for us. So, we're going to be
  352. 10:09using OpenAI's image generator. So, here
  353. 10:11is the documentation. We have the
  354. 10:13ability to create an image or we can
  355. 10:15create an image edit, which is what we
  356. 10:17want to do because we want it to look at
  357. 10:18the photo and our request. So, typically
  358. 10:21what you can do in this documentation is
  359. 10:23you can copy the curl command, but this
  360. 10:25curl command is actually broken, so
  361. 10:26we're not going to do that. if you
  362. 10:27copied this one up here to actually just
  363. 10:29create an image. That one would work
  364. 10:30fine, but there's like a bug with this
  365. 10:32one right now. So, anyways, I'm going to
  366. 10:34go into our NAND. I'm going to hit the
  367. 10:36plus. I'm going to grab an HTTP request.
  368. 10:38And now, we're going to configure this
  369. 10:41request. So, I'm going to walk through
  370. 10:42how I'm reading the API documentation
  371. 10:44right here to set this up. I'm not going
  372. 10:46to go super super in-depth, but if you
  373. 10:47get confused along the way, then
  374. 10:49definitely check out my paid course. The
  375. 10:50link for that's down in the description.
  376. 10:52I've got a full course on deep diving
  377. 10:54into APIs and HTTP requests. Anyways,
  378. 10:56the first thing we see is we're going to
  379. 10:58be making a post request to this
  380. 11:00endpoint. So, the first thing I'm going
  381. 11:01to do is copy this endpoint. We're going
  382. 11:03to paste that in and then we're also
  383. 11:04going to make sure the method is set to
  384. 11:06post. So, the next thing that we have to
  385. 11:07do is authorize ourselves somehow. So,
  386. 11:09over here I can see that we have a
  387. 11:11header and the name is going to be
  388. 11:12authorization and then the value is
  389. 11:14going to be bearer space our open key.
  390. 11:17So, that's why I set up a header
  391. 11:19authentication already. So, in
  392. 11:20authentication, I went to generic and
  393. 11:22then I went to header. And then you can
  394. 11:24see I have a bunch of different headers
  395. 11:25already set up. But what I did here is I
  396. 11:27chose my OpenAI one where basically all
  397. 11:29I did was I typed in here authorization
  398. 11:31and then in the value I typed in bearer
  399. 11:34space and then I pasted my API key in
  400. 11:36there. And now I have my OpenAI
  401. 11:37credential saved forever. Okay. So the
  402. 11:40first thing we have to do in our body
  403. 11:41request over to OpenAI is we have to
  404. 11:44send over the image to edit. So that's
  405. 11:46going to be in a field called image. And
  406. 11:47then we're sending over the actual
  407. 11:49photo. So what I'm going to do is I'm
  408. 11:51going to click on send body. I'm going
  409. 11:53to use form data. And now we can set up
  410. 11:56the different names and values to send
  411. 11:57over. So the first thing is we're going
  412. 11:59to send over this image right here on
  413. 12:00the lefth hand side. And this is in a
  414. 12:02field called data. And it's binary. So
  415. 12:04I'm going to choose instead of form
  416. 12:05data, I'm going to send over an NAN
  417. 12:06binary file. The name is going to be
  418. 12:08image because that's what it said in the
  419. 12:10documentation. And the input data field
  420. 12:12name is data. So I'm just going to copy
  421. 12:14that, paste it in there. And this
  422. 12:15basically means, okay, we're sending
  423. 12:17over this picture. The next thing we
  424. 12:19need to send over is a prompt. So the
  425. 12:21name of this field is going to be
  426. 12:23prompt. So I'm just going to copy that,
  427. 12:24add a new parameter, and call it prompt.
  428. 12:27And then for the value, we want to send
  429. 12:28over the prompt that we had our AI
  430. 12:30agent, right? So I'm going to click into
  431. 12:31schema, and I'm just going to drag over
  432. 12:33the output from the AI agent right
  433. 12:35there. And now that's an expression. So
  434. 12:37the next thing we want to send over is
  435. 12:38what model do we want to use? Because if
  436. 12:40we don't put this in, it's going to
  437. 12:41default to dolly 2. but we want to use
  438. 12:44gpt-image- one. So, I'm going to copy
  439. 12:48gpt-image-1. We're going to come back
  440. 12:49into here and I'm gonna paste that in as
  441. 12:51the value, but then the name is model
  442. 12:54because as you can see in here, right
  443. 12:56there, it says model. So, hopefully you
  444. 12:57guys can see that when we're sending
  445. 12:58over an API call, we just have all of
  446. 13:01these different options where we can
  447. 13:02sort of tweak different settings to
  448. 13:04change the way that we get the output
  449. 13:06back. And then you have some other
  450. 13:08options of course like quality or size.
  451. 13:10But right now we're just going to leave
  452. 13:11all that as default and just go with
  453. 13:12these three things to keep it simple.
  454. 13:14And I'm going to hit test step and we'll
  455. 13:15see if this is working. Okay, never
  456. 13:17mind. I got an error and I was like,
  457. 13:19okay, I think I did everything right.
  458. 13:20The reason I got the error is because I
  459. 13:22don't have any more credits. So if you
  460. 13:24get this error, go add some credits.
  461. 13:26Okay, so added more credits. I'm going
  462. 13:28to try this again and I'll check back
  463. 13:29in. But before I do that, I wanted to
  464. 13:31say me clearly. I've been like spamming
  465. 13:34this thing with creating images cuz it's
  466. 13:36so cool. It's so fun. But everyone else
  467. 13:38in the world has also been doing that.
  468. 13:39So, if you're ever getting some sort of
  469. 13:40like errors where it's like a 500 type
  470. 13:43of error where it means like something's
  471. 13:44going on on the server side of things or
  472. 13:47you're seeing like some sort of rate
  473. 13:48limit stuff, keep in mind that there's
  474. 13:50there's a limit on how many images you
  475. 13:52can send per minute. I don't think
  476. 13:53that's been clearly defined on GPT-
  477. 13:55image- one. But also, if the OpenAI
  478. 13:58server is receiving way too many
  479. 13:59requests, that is also another reason
  480. 14:01why your requests may be failing. So,
  481. 14:04just keep that in mind. Okay. Okay, so
  482. 14:05now it worked. We just got that back.
  483. 14:07But what you'll notice is we don't see
  484. 14:08an image here or like an image URL. So
  485. 14:10what we have to do is we have this base
  486. 14:1264 string and we have to turn that into
  487. 14:15binary data. So what I'm going to do is
  488. 14:17after this node, I'm going to add one
  489. 14:19that says um convert to file. So we're
  490. 14:22going to convert JSON data to binary
  491. 14:24data and we're going to do B 64. So all
  492. 14:27I have to do now is show this data on
  493. 14:28the lefth hand side. grab the base 64
  494. 14:30string and then when we hit test step we
  495. 14:32should get a binary file over here which
  496. 14:34if we click into it this should be our
  497. 14:36professional looking photo. Wow, that
  498. 14:38looks great. It even got the wording and
  499. 14:40like the same fonts, right? So that's
  500. 14:41awesome. And by the way, if we click
  501. 14:43into the results of the create image
  502. 14:45where we did the image edit, we can see
  503. 14:47the tokens. And with this model, it is
  504. 14:50basically $10 for a million input tokens
  505. 14:52and $40 for a million output tokens. So
  506. 14:55right here you can see the difference
  507. 14:56between our input and output tokens. And
  508. 14:58this one was pretty cheap. cheap. I
  509. 14:58think it was like 5 cents. Anyways, now
  510. 15:00that we have that image right here as
  511. 15:02binary data, we need to turn that into a
  512. 15:04video using an API called runway. And
  513. 15:07so, if we go into Runway and we go,
  514. 15:08first of all, let's look at the price.
  515. 15:10For a 5second video, 25 cents. For a
  516. 15:1210-second video, 50 cents. So, that's
  517. 15:13the one we're going to be doing today.
  518. 15:15But if we go to the API reference to
  519. 15:17read how we can turn an image into a
  520. 15:19video, what we need to look at is how we
  521. 15:21actually send over that image. And what
  522. 15:23we have to do here is send over an HTTPS
  523. 15:26URL of the image. So, we somehow have to
  524. 15:28get this binary data in Nadn to a public
  525. 15:31image that runway can access. So, the
  526. 15:33way I'm going to be doing that is with
  527. 15:34this API that's free called image BB and
  528. 15:38um it's a free image hosting service and
  529. 15:40what we can do is basically just use its
  530. 15:42API to send over the binary data and
  531. 15:44we'll get back a public URL. So, come
  532. 15:46here, make a free account, you'll grab
  533. 15:48your API key from up top and then we
  534. 15:50basically have here's how we set this
  535. 15:52up. So, what I'm going to do is I'm
  536. 15:53going to copy the endpoint right there.
  537. 15:55We're going to go back into nen and I'm
  538. 15:56going to add an HTTP request and let me
  539. 15:59just configure this up. We'll put it
  540. 16:01over here just to keep everything sort
  541. 16:03of square. But now what I'm going to do
  542. 16:04in here is paste that endpoint in as our
  543. 16:07URL. You can also see that it says this
  544. 16:09call can be done using post or git. But
  545. 16:11since git requests are limited by the
  546. 16:13max amount of length, you should
  547. 16:14probably do post. So I'm just going to
  548. 16:15go back in here and change this to a
  549. 16:16post. And then there are basically two
  550. 16:18things that are required. The first one
  551. 16:19is our API key. And then the second one
  552. 16:21is the actual image. Anyways, this
  553. 16:24documentation is not super intuitive. I
  554. 16:26can sort of tell that this is a query
  555. 16:28parameter because it's being attached at
  556. 16:30the end of the endpoint with a question
  557. 16:31mark and all this kind of stuff. And
  558. 16:33that's just because I've looked at tons
  559. 16:34of API documentation. So, what I'm going
  560. 16:36to do is go into nit. We're going to add
  561. 16:38a generic credential type. It's going to
  562. 16:40be a query off. Where where's query?
  563. 16:42There we go. And then you can see I've
  564. 16:44already added my image BB. But all
  565. 16:46you're going to do is you would add the
  566. 16:47name as a key and then you would just
  567. 16:48paste in your API key. And that's it.
  568. 16:50And now we've authenticated ourselves to
  569. 16:52the service. And then what's next is we
  570. 16:54need to send over the image in a field
  571. 16:56called image. So I'm going to go back in
  572. 16:57here. I'm going to send over a body
  573. 16:59because this allows us to actually send
  574. 17:01over n binary fields. And I'm not going
  575. 17:04to do n binary. I'm going to do form
  576. 17:05data because then we can name the field
  577. 17:07we're sending over. Like I said, not
  578. 17:09going to deep dive into how that all
  579. 17:10works. But the name is going to be
  580. 17:11image. And then the input data field
  581. 17:13name is going to be data because that's
  582. 17:15how it's seen over here. And this should
  583. 17:17be it. So, real quick, I'm just going to
  584. 17:18change this to get URL. And then we're
  585. 17:21going to hit test step, which is going
  586. 17:22to send over that binary data to imageb.
  587. 17:25And it hopefully should be sending us
  588. 17:27back a URL. And it sent back three of
  589. 17:29them. I'm going to be using the middle
  590. 17:30one that's just called URL because it's
  591. 17:32like the best size and everything. You
  592. 17:33can look at the other ones if you want
  593. 17:35on your end. But this one is going to
  594. 17:36load up. And we should see it's the
  595. 17:39image that we got generated for us. It
  596. 17:40takes a while to load up on that first
  597. 17:41time, but as you can see now, it's a
  598. 17:43publicly accessible URL. and then we can
  599. 17:45feed it into runway. So that's exactly
  600. 17:48our next step. We're going to add
  601. 17:49another request right here. It's going
  602. 17:51to be an HTTP and this one we're going
  603. 17:53to configure to hit runway. So here's a
  604. 17:55good example of we can actually use a
  605. 17:57curl command. So I'm going to click on
  606. 17:58copy over here when I'm in the runway.
  607. 18:00Generate a video from image. Come back
  608. 18:03into naden. Hit import curl and paste
  609. 18:05that in there and hit import. And this
  610. 18:07is going to basically configure
  611. 18:08everything we need. We just have to
  612. 18:09tweak a few things. Typically most API
  613. 18:12documentation nowadays will have a curl
  614. 18:13command. The edit image one that we set
  615. 18:15up earlier was just a little broken.
  616. 18:17Image BBB is just a free service. So
  617. 18:19sometimes they don't always. But let's
  618. 18:21configure this node. So the first thing
  619. 18:23I see is we have a header off right
  620. 18:24here. And I don't want to send it like
  621. 18:26this. I want to send it up as a generic
  622. 18:27type so I can save it. Otherwise, you'd
  623. 18:29have to go get your API key every time
  624. 18:31you wanted to use Runway. So as you can
  625. 18:33see, I've already set up my Runway API
  626. 18:35key. So I have it plugged in. But what
  627. 18:36you would do is you'd go get your API
  628. 18:38key from Runway. And then you'd see,
  629. 18:40okay, how do we actually send over
  630. 18:41authentication? It comes through with
  631. 18:43the name authorization and then the
  632. 18:46header is bearer space API key. So
  633. 18:48similar to the last one and then that's
  634. 18:50all you would do in here when you're
  635. 18:51setting up your runway credential.
  636. 18:53Authorization bearer space my API key.
  637. 18:56And then because we have ourselves
  638. 18:57authenticated up here, we can flick off
  639. 18:59that headers and all we have to do now
  640. 19:01is configure the actual body. Okay, so
  641. 19:03first things first, what image are we
  642. 19:05sending over to get turned into a video?
  643. 19:06in that name prompt image. We're going
  644. 19:08to get rid of that value and I'm just
  645. 19:10going to drag in the URL that we wanted
  646. 19:12that we got from earlier which was that
  647. 19:14picture I s I showed you guys. So now
  648. 19:16runway sees that image. Next we have the
  649. 19:18seed which if you want to look at the
  650. 19:20documentation you can play with it but
  651. 19:21I'm just going to get rid of that. Then
  652. 19:23we have the model which we're going to
  653. 19:24be using Gen 4 Turbo. We then have the
  654. 19:26prompt text. So this is where we're
  655. 19:28going to get rid of this and you're
  656. 19:29going to go back to that PDF you
  657. 19:31downloaded from my free school and
  658. 19:33you're going to paste this prompt in
  659. 19:35there. So, this prompt basically gives
  660. 19:36us that like 3D spinning effect where it
  661. 19:38just kind of does a slow pan and a slow
  662. 19:40rotate. And that's what I was looking
  663. 19:42for. If you're wanting some other type
  664. 19:43of video, then you can tweak that
  665. 19:45prompt, of course. For the duration, if
  666. 19:47you look in the documentation, it'll say
  667. 19:49the duration only basically allows five
  668. 19:52or 10. So, I'm just going to change this
  669. 19:53one to 10. And then the last one was
  670. 19:55ratio, and I'm just going to make the
  671. 19:56square. So, here are the accepted ratio
  672. 19:58values. I'm going to copy 960 by 960,
  673. 20:01and we're just going to paste that in
  674. 20:02right there. And actually before we hit
  675. 20:04test step, I've realized that we're
  676. 20:05missing something here. So back in the
  677. 20:08documentation, we can see that there's
  678. 20:09one thing up here which is required,
  679. 20:11which is a header x-runway- version. And
  680. 20:14then we need to set the value to this.
  681. 20:16So I'm going to copy the header, and we
  682. 20:19have to enable headers. I I deleted it
  683. 20:20earlier, but we're going to enable that.
  684. 20:21So we have the version, and then I'm
  685. 20:23just going to go copy the value that it
  686. 20:24needs to be set to, and we'll paste that
  687. 20:26in there as the value. Otherwise, this
  688. 20:28would not have worked. Okay, so that
  689. 20:30should be configured. But before we test
  690. 20:32it out, I want to show you guys how I
  691. 20:34set up the polling flow like this that
  692. 20:36you saw in the demo. So, what we're
  693. 20:38going to do here is we need to go see
  694. 20:40like, okay, once we send over our
  695. 20:43request right here to get a video from
  696. 20:45our image, it's going to return an ID
  697. 20:47and that doesn't mean anything to us.
  698. 20:49So, what we have to do is get our task.
  699. 20:51So, that is the basically we send over
  700. 20:53the ID that it gives us and then it'll
  701. 20:55come back and say like the status equals
  702. 20:57pending or running or it will say
  703. 20:59completed. So, what I'm going to do is
  704. 21:01copy this curl command for getting task
  705. 21:03details. We're going to hook it up to
  706. 21:05this node as an HTTP request. We're
  707. 21:08going to import that
  708. 21:10curl. And now that's pretty much set up.
  709. 21:12We have our authorization, which I'm
  710. 21:13going to delete that because, as you
  711. 21:15know, we just configured that earlier as
  712. 21:17a header off. So, I'm just going to come
  713. 21:18in here and grab my runway API key.
  714. 21:22There it is. I couldn't find it for some
  715. 21:23reason. Um, we have the version set up
  716. 21:26and now all we have to do is drag in the
  717. 21:27actual ID from the previous one. So,
  718. 21:30real quick, I'm just going to make this
  719. 21:31an expression. Delete ID. And now we're
  720. 21:34pretty much set up. So, first of all,
  721. 21:35I'm going to test this one, which is
  722. 21:37going to send off that request to runway
  723. 21:38and say, "Hey, here's our image. Here's
  724. 21:40the prompt. Make a video out of it." And
  725. 21:42as you can see, we got back an ID. Now,
  726. 21:44I'm going to use this next node, and I'm
  727. 21:46going to drag in that ID from earlier.
  728. 21:48And now, it's saying, "Okay, we're going
  729. 21:50to check in on the status of this
  730. 21:51specific task." And if I hit test step,
  731. 21:54what we're going to see is that it's not
  732. 21:55yet finished. So, it's going to come
  733. 21:56back and say, okay, status of this run
  734. 21:58or status of this task is running. So,
  735. 22:01that's why what I'm going to do is add
  736. 22:02an
  737. 22:03if. And this if is going to be saying,
  738. 22:06okay, does this status field right here,
  739. 22:09does that equal running in all caps?
  740. 22:11Because that's what it equals right now.
  741. 22:13If yes, what we're going to do is we are
  742. 22:16going to basically wait for a certain
  743. 22:18amount of time. So, here's the true
  744. 22:19branch. I'm going to wait and let's just
  745. 22:22say it's 5 seconds. So, I'll just call
  746. 22:24this five seconds. I'm going to wait for
  747. 22:265 seconds. And then I'm going to come
  748. 22:27back here and try again. So, as you saw
  749. 22:30in the demo, it basically tried again
  750. 22:31like seven or eight times. And this just
  751. 22:33ensures that it's never going to move on
  752. 22:35until we actually have a finished photo.
  753. 22:38So, what you could also do is basically
  754. 22:39say, does status equal completed or
  755. 22:41whatever it means when it completes.
  756. 22:43That's another way to do it. You just
  757. 22:45have to be careful to make sure that
  758. 22:46whatever you're setting here as the
  759. 22:47check is always 100% going to work.
  760. 22:50And then what you do is you would
  761. 22:52continue the rest of the logic down this
  762. 22:53path once that check has been complete.
  763. 22:56And then of course you probably don't
  764. 22:57want to have this check like 10 times
  765. 22:58every single time. So what you would do
  766. 23:00is you'd add a wait step here. And once
  767. 23:02you know about how long it takes, you'd
  768. 23:04add this here. So last time I had it at
  769. 23:0630 seconds and it waited like eight
  770. 23:07times. So let's just say I'm going to
  771. 23:09wait 60 seconds here. So then when this
  772. 23:11flow actually runs, it'll wait for a
  773. 23:12minute, check. If it's still not done,
  774. 23:14it'll continuously loop through here and
  775. 23:16wait 5 seconds every time until we're
  776. 23:18done. Okay, there we So, now status is
  777. 23:20succeeded. And what I'm going to do is
  778. 23:21just view this video real quick.
  779. 23:23Hopefully, this one came out nicely.
  780. 23:24Let's take a
  781. 23:27look. Wow, this is awesome. Super clean.
  782. 23:30It's rotating really slowly. It's a full
  783. 23:3210-second video. You can tell it's like
  784. 23:34a 3D image. This is awesome. Okay, cool.
  785. 23:37So, now if we test this if branch, we'll
  786. 23:40see that it's going to go down the other
  787. 23:41one, which is the false branch, because
  788. 23:42it's actually completed. And now we can
  789. 23:44with confidence shoot off the email with
  790. 23:47our materials. So, I'm going to grab a
  791. 23:48Gmail node. I'm going to click send a
  792. 23:50message. And we are going to have this
  793. 23:52configured hopefully because you've
  794. 23:53already set up your Google stuff. And
  795. 23:55now, who do we send this to? We're going
  796. 23:57to go grab that email from the original
  797. 23:58form submission, which is all the way
  798. 24:00down here. We're going to make the
  799. 24:02subject, which I'm just going to say
  800. 24:04marketing materials, and then a colon.
  801. 24:07And we'll just drag in the actual title
  802. 24:09of the product, which in here was
  803. 24:11cologne. I'm changing the email type to
  804. 24:13text just because I want to. Um, we're
  805. 24:16gonna make the body an expression. And
  806. 24:17we're just gonna say like,
  807. 24:20hey, here is your photo. And obviously,
  808. 24:25this can be customized however you want.
  809. 24:26But for the photo, what we have to do is
  810. 24:28grab that public URL that we generated
  811. 24:30earlier. So, right here, there is the
  812. 24:32photo URL. Here is your video. And for
  813. 24:36the video, we're going to drag in the
  814. 24:38URL we just got from the output of that
  815. 24:40um, runway get task check. So, there is
  816. 24:43the video URL. And then I'm just going
  817. 24:45to say cheers. Last thing I want to do
  818. 24:48is down here append naden attribution
  819. 24:50and turn that off. This just ensures
  820. 24:52that the email doesn't say this email
  821. 24:55was sent by naden. And now if we hit
  822. 24:57test step right here. This is pretty
  823. 24:58much the end of the process. And we can
  824. 25:00go ahead and check. Uh-oh. Okay. So not
  825. 25:03authorized. Let me fix that real quick.
  826. 25:04Okay. So I just switched my credential
  827. 25:06because I was using one that had
  828. 25:07expired. So now this should go through
  829. 25:08and we'll go take a look at the email.
  830. 25:10Okay. So did something wrong. I can
  831. 25:12already tell what happened is this is
  832. 25:13supposed to be an expression and
  833. 25:15dynamically come through as the title of
  834. 25:16the product, but we accidentally somehow
  835. 25:18left off a curly brace. So, if I come
  836. 25:20back into here and and add one more
  837. 25:22curly brace right here to the
  838. 25:23description or sorry, the subject. Now,
  839. 25:26we should be good. I'll hit test step
  840. 25:27again. And now we'll go take a look at
  841. 25:29that email. Okay, there we go. Now, we
  842. 25:31have the cologne and we have our photo
  843. 25:33and our video. So, let's click into the
  844. 25:34video real
  845. 25:37quick. I'm just so amazed. This is this
  846. 25:39is just so much fun. and it looked the
  847. 25:41the lighting and the the reflections.
  848. 25:42It's it's all just
  849. 25:45perfect. And then we'll click into the
  850. 25:47photo just in case we want to see the
  851. 25:48actual image. And there it is. This also
  852. 25:50looks awesome. All right, so that's
  853. 25:52going to do it for today's video. I hope
  854. 25:54you guys enjoyed this style of walking
  855. 25:56step-by-step through some of the API
  856. 25:57calls and sort of my thought process as
  857. 25:59to how I set up this workflow. If you're
  858. 26:01interested in more step-by-step styles
  859. 26:03or you like the way that I teach, then
  860. 26:05definitely check out my paid community.
  861. 26:06The link for that's down in the
  862. 26:07description. Like I said, we've got a
  863. 26:09great community of members that are
  864. 26:10doing so much stuff with AI automation
  865. 26:12with Naden. So, a great place to learn
  866. 26:14and collaborate as well as we have a
  867. 26:15full classroom section with deep dive
  868. 26:17topics like APIs, vector databases,
  869. 26:20classroom on building AI agents. And
  870. 26:22then I'm right now working on two
  871. 26:23courses which is like for beginners to
  872. 26:25start here, understand the foundations
  873. 26:26of LLMs and APIs and all this kind of
  874. 26:28stuff before you hop into this course
  875. 26:30called 10 hours to 10 seconds where you
  876. 26:32learn how to identify, design, and build
  877. 26:35time-saving automations. So anyways, I'd
  878. 26:37love to see you guys in the community.
  879. 26:38We also have five live calls per week.
  880. 26:40But that's going to do it for this
  881. 26:41video. Really appreciate you guys as
  882. 26:43always making it to the end of the
  883. 26:44video. If you enjoyed this or you
  884. 26:46learned something new, please give it a
  885. 26:47like. Helps me out a ton. And I'll see
  886. 26:49you all in the next one. Thanks
  887. 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.