Generate Video Workflow

Describe the problem/error/question

Hi all, I am pretty new to n8n and I am trying to create a video generation workflow by calling the Sora 2 API and using OpenAI to come up with a video filename from the prompt. After the video is gerenated, I want to download it from the returned URL and save the video to a Google Drive folder with the generated video name.

However, the OpenAI path runs much faster than the video generation path, and the Google Drive node to upload the video throws an error because the video file is not yet ready. Can anyone suggest a better way to build this workflow? Thanks in advance.

What is the error message (if any)?

The name of the input field containing the binary file data must be set

Please share your workflow

Basically you are trying to change the filename of a generated audio ?

Thanks @Parintele_Damaskin , I want to download the video file and change the filename, then upload to google drive.

Change the filename before uploading. The Google Drive “Upload” operation allows you to specify the filename for the uploaded file, so you don’t need to rename the file on disk—you simply set the desired filename in the “File Name” field of the Google Drive node.

In “Input Data Field Name”, enter the name of the binary property from the HTTP Request node (usually data).

In “File Name”, enter the new filename you want for the video.

Specify the target folder in “Parent Folder” as needed.

Yes, thanks, but I need the AI Agent to come up with the generated filename, then set the filename in the Google Drive node.

If you want specifically that the model defines the name of the file, just append it next after the switch success(so you know the file is ready), and in the Drive node set name as expression with the result from model output. (P.S I am not at PC right now so I can modify the workflow, using my android phone now.)

1 Like

Thank you @Parintele_Damaskin , finally got it working.

It seems that this kind of workflow can only be run linearly and cannot be run in parallel.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.