Automated YouTube Video Uploads with 12h Interval Scheduling in JST — n8n Workflow

Medium complexity Trigger8 nodes📣 Marketingby Zane

Overview

This workflow automates a batch upload of multiple videos to YouTube, spacing each upload 12 hours apart in Japan Standard Time (UTC+9) and automatically adding them to a playlist.

⚙️ Workflow Logic

Manual Trigger — Starts the workflow manually.
List Video Files — Uses a shell command to find all .mp4 files under the specified directory (/opt/downloads/单词卡/A1-A2).
Sort and Generate Items — Sorts videos by day number (dayXX) extracted from filenames and assigns a sequential order value.
C

Nodes used

YouTubeCode

Workflow Preview

Overview
This workflow automates video publishing to YouTube.
It lists local video files, generates upload metadata,
List & Prepare Files
Retrieves all video files from the local folder and pre
Each item includes the file path and basic information
Sort & Schedule Uploads
Sorts videos in the correct order and calculates a publ
Each video is assigned a publishAt time spaced 12 hours
Process in Batches
Ensures videos are handled one by one.
Prevents large uploads from overloading memory and make
Upload to YouTube
Reads each video from disk and uploads it to YouTube as
The video becomes public automatically at its scheduled
Add to Playlist
After upload, each video is automatically added to the
M
Manual Trigger
L
List Video Files
Sort and Generate Items
Calculate Publish Schedu…
S
Split in Batches (1 per …
R
Read Video File
Upload to YouTube (Sched…
Add to Playlist
8 nodes8 edges

How it Works

  1. 1

    Trigger

    The workflow starts with a trigger trigger.

  2. 2

    Process

    Data flows through 8 nodes, connecting code, executecommand, manualtrigger.

  3. 3

    Output

    The workflow completes its automation and delivers the result to the configured destination.

Node Details (8)

YO

YouTube

youTube

#1
CO

Code

code

#2

How to Import This Workflow

  1. 1Click Download JSON button on the right to save the workflow file.
  2. 2Open your n8n instance. Go to Workflows → New → Import from file.
  3. 3Select the downloaded automated-youtube-video-uploads-with-12h-interval-scheduling-in-jst file and click Import.
  4. 4Set up credentials for each service node (API keys, OAuth, etc.).
  5. 5Click Test Workflow to verify everything works, then activate it.

Or paste directly in n8n → Import from JSON:

{ "name": "Automated YouTube Video Uploads with 12h Interval Scheduling in JST", "nodes": [...], ...}

Integrations

codeexecutecommandmanualtriggerreadwritefilesplitinbatchesyoutube

Get This Workflow

Download and import in one click

Download JSONView on n8n.io
Nodes8
Complexitymedium
Triggertrigger
CategoryMarketing

Created by

Zane

Zane

@zane

Tags

codeexecutecommandmanualtriggerreadwritefilesplitinbatchesyoutube

New to n8n?

n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.

Get n8n Free →