Quick overview
This workflow reads video prompts from Google Sheets, generates a video with Google Veo3 via fal.run, saves the finished file to Google Drive, uses OpenAI to generate a YouTube-ready title, uploads the video to YouTube via Upload-Post, and writes the resulting links back to the sheet.
How it works
- Starts manually when you click “Test workflow” (or can be run on a schedule) and reads rows from Google Sheets where the VIDEO column is empty.
- Builds a Veo3 prompt from the sheet’s PROMPT and DURATION fields and submits a video generation request to fal.run.
- Polls fal.run at 60-second intervals until the video generation status is COMPLETED.
- Fetches the completed video URL from fal.run and generates an SEO-optimized YouTube title with OpenAI based on the original prompt.
- Downloads the generated video file and uploads a copy to a specified Google Drive folder, then updates the VIDEO link in Google Sheets.
- Uploads the video to YouTube through the Upload-Post API using the generated title and writes the YouTube URL back to the same Google Sheets row.
Setup
- Connect Google Sheets OAuth credentials and set the target spreadsheet and sheet (with PROMPT, DURATION, VIDEO, and YOUTUBE_URL columns).
- Add an HTTP Header Auth credential for fal.run and set the Authorization header to
Key YOURAPIKEY.
- Connect OpenAI credentials and choose the model you want to use for title generation.
- Connect Google Drive OAuth credentials and set the destination folder ID for saving generated videos.
- Add an Upload-Post HTTP Header Auth credential (Authorization:
Apikey YOUR_API_KEY_HERE) and replace YOUR_USERNAME in the upload request with your Upload-Post profile username.