Skip to main content
Community template Uses AIContent CreationMultimodal AI

Generate AI videos with Sora2 Pro, save to Google Drive and upload to YouTube - n8n workflow template

This workflow automates the entire process of creating, managing, and publishing AI-generated videos using OpenAI Sora2 Pro, Google Sheets, Google Drive, and YouTube. --- Fully Automated Video Pipeline From idea to YouTube publication with zero manual intervention after setup.…

Template by Davide Boizza · Original listing (opens in a new tab)

Starts on
On a schedule
Nodes
15 nodes
Level
Intermediate
Setup
About 25 min

Workflow preview

How this workflow runs

  1. 1

    When clicking ‘Test workflow’

    Starts the workflow manually when you click 'Execute workflow' — used for testing and manual runs.

  2. 2

    Schedule Trigger

    Starts the workflow automatically on a schedule (cron / fixed interval).

  3. 3

    Get new video

    Reads from or writes rows to a Google Sheets spreadsheet.

  4. 4

    Set data

    Sets or transforms workflow data — prepares, renames, or injects fields before the next step.

  5. 5

    Create Video

    Makes an external API call (HTTP request) to send or retrieve data from a third-party service.

  6. 6

    Wait 60 sec.

    Pauses the workflow for a set time or until a condition is met (used for polling / async jobs).

  7. 7

    Get status

    Makes an external API call (HTTP request) to send or retrieve data from a third-party service.

  8. 8

    Completed?

    Branches the workflow based on a true/false condition.

  9. 9

    Get Url Video

    Makes an external API call (HTTP request) to send or retrieve data from a third-party service.

  10. 10

    Generate title

    Calls the OpenAI API for chat, image, or audio generation.

Creator's notes and setup

Written by Davide Boizza for the original listing.

This workflow automates the entire process of creating, managing, and publishing AI-generated videos using OpenAI Sora2 Pro, Google Sheets, Google Drive, and YouTube.


Advantages

  • Fully Automated Video Pipeline From idea to YouTube publication with zero manual intervention after setup.

  • Centralized Control via Google Sheets Simple spreadsheet interface — no need to use APIs or dashboards directly.

  • AI-Powered Video Creation Uses OpenAI Sora2 Pro for generating professional-quality videos from text prompts.

  • SEO-Optimized Titles with GPT-5 Automatically creates catchy, keyword-rich titles optimized for YouTube engagement.

  • Cloud Integration Seamless use of Google Drive for file management and YouTube for publishing.

  • Scalable and Repeatable Can handle multiple videos in sequence, triggered manually or at regular intervals.

  • Error-Resilient and Transparent Uses conditional checks (“Completed?” node) and real-time updates in Google Sheets to ensure reliability and visibility.


How it Works

This workflow automates the entire process of generating AI videos and publishing them to YouTube, using a Google Sheet as the central control panel.

  1. Trigger & Data Fetch: The workflow is triggered either manually or on a schedule. It starts by reading a specific Google Sheet to find new video requests. A new request is identified as a row where the "PROMPT" and "DURATION" columns are filled, but the "VIDEO" column is empty.
  2. AI Video Generation: For each new request, it takes the prompt and duration, then sends a request to the Fal.ai Sora-2 Pro model via its API to generate the video. The system then enters a polling loop, checking the video generation status every 60 seconds until it is COMPLETED.
  3. Post-Processing & Upload: Once the video is ready, the workflow performs three parallel actions:
    • Fetch Video & Upload to Drive: It retrieves the generated video file and uploads it to a specified folder in Google Drive for archiving.
    • Generate YouTube Title: It sends the original prompt to OpenAI's GPT-5 (or another specified model) to generate an optimized, SEO-friendly title for the YouTube video.
    • Publish to YouTube: It takes the generated video file and the AI-created title and uses the Upload-Post.com service to automatically publish the video to a connected YouTube channel.
  4. Update & Log: Finally, the workflow updates the original Google Sheet row with the URL of the archived video in Google Drive and the newly created YouTube video URL, providing a complete audit trail.

Set up Steps

To configure this workflow, follow these steps:

  1. Prepare the Google Sheet:

    • Create a Google Sheet with at least these columns: PROMPT, DURATION, VIDEO, and YOUTUBE_URL.
    • In the n8n "Get new video" and update nodes, configure the documentId and sheetName to point to your specific Google Sheet.
  2. Configure Fal.ai API Key:

    • Create an account on fal.ai and obtain your API key.
    • In both the "Create Video" and "Get status" HTTP Request nodes, set up the HTTP Header Authentication.
    • Set the Name to Authorization and the Value to Key YOUR_API_KEY.
  3. Set up Upload-Post.com for YouTube:

    • Create an account on Upload-Post.com and get your API key. Connect your YouTube channel as a "profile".
    • In the "HTTP Request" node (for uploading), configure the Header Auth with Name: Authorization and Value: Apikey YOUR_UPLOAD_POST_API_KEY.
    • Replace YOUR_USERNAME in the node's body parameters with the profile name you created on Upload-Post.com (e.g., test1).
  4. Configure OpenAI (Optional but Recommended):

    • The "Generate title" node uses an OpenAI model. Ensure you have valid OpenAI API credentials set up in n8n for this node to function and create optimized titles.
  5. Finalize Paths and Activate:

    • In the "Upload Video" node, specify the correct Google Drive folder ID where you want the videos to be saved.
    • Once all credentials and paths are set, you can activate the workflow and set the "Schedule Trigger" node to run at your desired interval (e.g., every 5 minutes).

n8n nodes used (9 types)

What every node does (15)
  • When clicking ‘Test workflow’ (Manual Trigger)Starts the workflow manually when you click 'Execute workflow' — used for testing and manual runs.
  • Get status (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Wait 60 sec. (Wait)Pauses the workflow for a set time or until a condition is met (used for polling / async jobs).
  • Schedule Trigger (Schedule Trigger)Starts the workflow automatically on a schedule (cron / fixed interval).
  • Completed? (If)Branches the workflow based on a true/false condition.
  • Update result (Google Sheets)Reads from or writes rows to a Google Sheets spreadsheet.
  • Set data (Set)Sets or transforms workflow data — prepares, renames, or injects fields before the next step.
  • Get new video (Google Sheets)Reads from or writes rows to a Google Sheets spreadsheet.
  • Create Video (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Get Url Video (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Get File Video (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Upload Video (Google Drive)Uploads, downloads, or manages files in Google Drive.
  • HTTP Request (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Generate title (Open AI)Calls the OpenAI API for chat, image, or audio generation.
  • Update Youtube URL (Google Sheets)Reads from or writes rows to a Google Sheets spreadsheet.

FAQ

Generate AI videos with Sora2 Pro, save to Google Drive and upload to YouTube: questions

How do I import the "Generate AI videos with Sora2 Pro, save to Google Drive and upload to YouTube" workflow into n8n?

Copy the workflow JSON from this page, open the n8n editor, click on an empty canvas and paste with Ctrl+V (Cmd+V on macOS). You can also download the .json file and choose Import from File in the workflow menu. Save the workflow, then attach credentials before activating it.

Which nodes and credentials does "Generate AI videos with Sora2 Pro, save to Google Drive and upload to YouTube" use?

It uses Google Sheets, HTTP Request, If, Set, Google Drive and Wait, plus 3 more. Any node that connects to an external service needs your own credential — open each node after import and select or create one. Trigger, logic and transformation nodes usually need no credentials.

Can it run on n8n Cloud and on self-hosted n8n?

The workflow format is the same on both. If a node appears as unknown or outdated after import, update n8n to a recent version or, on self-hosted instances, install the required community node package. Features such as $env access are available on self-hosted instances only.

How can I customise "Generate AI videos with Sora2 Pro, save to Google Drive and upload to YouTube"?

Start by changing the trigger (schedule, webhook or app event) and the destination nodes to match your stack — it is listed under Content Creation, Multimodal AI. Edit prompts, field mappings and filters in the relevant nodes, use expressions like {{ $json.field }} to map data, and test with a manual execution before activating.

n8n is a trademark of n8n GmbH. AltFTool is not affiliated with, endorsed by or sponsored by n8n. Community templates are credited to their creators and link to the original listing; AltFTool originals are written and tested by the AltFTool team.

About this page

Free n8n workflow templates to copy and import

The AltFTool n8n library collects free n8n workflow templates for AI agents, Gmail, Google Sheets, Telegram and other apps. Each workflow page shows a preview, the list of nodes and the credentials it needs, and lets you copy or download the JSON to import into your own n8n.

Search the templates by app or task, or browse them by category and by node. The Workflow Inspector checks any workflow JSON for triggers, credentials and hardcoded keys before you share it, and the expressions cheat sheet gives copy-paste n8n expression examples. AltFTool is not affiliated with n8n.

People also search for

  • n8n workflow templates
  • n8n templates
  • n8n automation examples
  • n8n json workflows
  • n8n nodes
  • free n8n workflow templates
  • n8n ai agent template
  • n8n expressions cheat sheet