🎬 Publish YouTube videos with OpenAI and HTTP file download

⚑ 112 views · 🎬 Content Creation & Video

πŸ’‘ Pro Tip β€” YouTube’s API quotas can be a bottleneck when you’re pulling data at scale. ScraperNode is a community node with dedicated scrapers for channels, videos, and comments β€” no quota limits, just structured data.

View All Scrapers

Description

Quick overview

This workflow generates an optimized YouTube title and description with OpenAI from a provided video topic, downloads an MP4 from a public URL, and uploads the video to YouTube with the AI-generated metadata.

How it works

  1. Starts when you manually execute the workflow.
  2. Collects a public MP4 URL and a short text description of the video topic.
  3. Sends the topic to OpenAI to generate a YouTube-ready title and description with three hashtags.
  4. Parses the AI’s JSON response and combines it with the source video URL.
  5. Downloads the MP4 file from the provided URL.
  6. Uploads the downloaded video to YouTube with the generated title and description, using Private visibility.

Setup

  1. Add an OpenAI credential to the OpenAI step used to generate YouTube metadata.
  2. Add a YouTube OAuth credential with permission to upload videos.
  3. Replace source_url with a direct, publicly accessible MP4 file URL and update the topic text to match your video.
  4. Review the YouTube upload settings (privacy status, category, and region) and keep uploads set to Private while testing.

Requirements

Customization

Additional info

Use only videos you own or have permission to upload. The source URL must point directly to a publicly accessible MP4 file. YouTube uploads are set to Private by default for safe testing.

πŸ”— Nodes Used

HTTP Request, YouTube, OpenAI

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup