WorkflowChatGPTOpen

n8n workflow to make AI TikTok and YouTube Shorts

This n8n workflow generates short vertical videos for TikTok, YouTube Shorts and Reels from a Google Sheet of ideas. It is for creators who want daily faceless clips made with AI images, AI video and a voiceover, with the finished file saved to Google Drive.

What it does

Once per day it loads the sheet, writes a script and captions with OpenAI, creates Flux images through PiAPI, turns them into video clips, generates a voice track, pairs audio with video, renders the final cut, uploads it to Google Drive and pings you on Discord. A code step tracks token usage for cost.

How to use it

Enter your API keys in the Set API Keys node and connect Google Sheets, Google Drive and Discord.

Requirements and limits

The image, video and voice services are paid; the source quotes about $0.0948 for the image step as of March 2025.

More in ChatGPT and the n8n workflow library.

Full text

Front matter
name: AI Automated TikTok/Youtube Shorts/Reels Generator
description: Triggered on a schedule. Connects Code, Condition, Discord, Google Drive, Google Sheets, HTTP request, Schedule, Wait. ## 2. 🖼️Generate images with Flux using [PiAPI]({{ $env.API_BASE_URL }} ### (total cost: $0.0948 approx. as of 3/9/25) 1. OpenAI is used to generate 5 Flux image prompts based on the 5 captions generated. Edit this node to see/edit the prompt instructions. 2. Next we use some custom javascript to total up how many tokens were used for each 5 generations so we can track our costs later. 3. Then we generate an image with Flux using the [PiAPI service]({{ $env.API_BASE_URL }} waiting to check for
category: Automation
kind: Workflow
software: Code|Condition|Discord|Google Drive|Google Sheets|HTTP request|Schedule|Wait

AI Automated TikTok/Youtube Shorts/Reels Generator

Triggered on a schedule. Connects Code, Condition, Discord, Google Drive, Google Sheets, HTTP request, Schedule, Wait. ## 2. 🖼️Generate images with Flux using [PiAPI]({{ $env.API_BASE_URL }}

(total cost: $0.0948 approx. as of 3/9/25)

  1. OpenAI is used to generate 5 Flux image prompts based on the 5 captions generated. Edit this node to see/edit the prompt instructions.
  2. Next we use some custom javascript to total up how many tokens were used for each 5 generations so we can track our costs later.
  3. Then we generate an image with Flux using the [PiAPI service]({{ $env.API_BASE_URL }} waiting to check for

Steps

  • Get image (httpRequest)
  • Generate Image (httpRequest)
  • Image-to-Video (httpRequest)
  • Get Video (httpRequest)
  • List Elements (code)
  • Wait 10min (wait)
  • Wait 3min (wait)
  • Wait 5min (wait)
  • Generate voice (httpRequest)
  • List Elements1 (code)
  • Fail check (if)
  • Wait to retry (wait)
  • Generate Image Prompts (noOp)
  • Calculate Token Usage (code)
  • Check for failures (if)
  • Sticky Note1 (stickyNote)
  • Sticky Note (stickyNote)
  • Generate Video Captions (noOp)
  • Sticky Note2 (stickyNote)
  • Match captions with videos (merge)
  • Generate Script (noOp)
  • Upload Voice Audio (googleDrive)
  • Set Access Permissions (googleDrive)
  • Pair Videos with Audio (merge)
  • Render Final Video (httpRequest)
  • Notify me on Discord (discord)
  • Once Per Day (scheduleTrigger)
  • Load Google Sheet (googleSheets)
  • Create List (code)
  • Sticky Note3 (stickyNote)
  • Sticky Note4 (stickyNote)
  • Sticky Note5 (stickyNote)
  • Wait1 (wait)
  • Get Final Video (httpRequest)
  • Upload Final Video (googleDrive)
  • Get Raw File (httpRequest)
  • Set Permissions (googleDrive)
  • Update Google Sheet (googleSheets)
  • Set API Keys (set)
  • Sticky Note6 (stickyNote)

Import

Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).

Source and license

Source: https://github.com/Zie619/n8n-workflows/blob/main/Wait/1805_Wait_Code_Automate_Webhook.md

Author: Zie619, n8n workflow collection. License: MIT.

Shown here with formatting for the web. Keep the author and license notice when you reuse it.

Related entries

There are more like this in the members library

The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.