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
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.
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.)