Automated YouTube Publishing from Drive with GPT & Gemini Metadata Generation

Go to Workflow
0 views
Built by Ai x Nouman Ai x Nouman
Created on June 05, 2026

Description

How it works
This workflow turns a Google Drive folder into a fully automated YouTube publishing pipeline. Whenever a new video file is added to the folder, the workflow generates all YouTube metadata using AI, uploads the video to your YouTube channel, deletes the original file from Drive, sends a Telegram confirmation, and can optionally post to Instagram and Facebook using permanent system tokens.
High-level flow:
Detects new video uploads in a specific Google Drive folder.

Downloads the file and uses AI to generate:
• a polished first-person YouTube description
• an SEO-optimized YouTube title
• high-ranking YouTube tags

Uploads the video to YouTube with the generated metadata.

Deletes the original Drive file after upload.

Sends a Telegram notification with video details.

(Optional) Posts to Instagram & Facebook using permanent system user tokens.

Set up steps
Setup usually takes a few minutes.

Add Google Drive OAuth2 credentials for the trigger and download/delete nodes.

Add your OpenAI (or Gemini) API credentials for title/description/tag generation.

Add YouTube OAuth2 credentials in the YouTube Upload node.

Add Facebook/Instagram Graph API credentials if enabling cross-posting.

Replace placeholder IDs (Drive folder ID, Page ID, IG media endpoint).

Review sticky notes in the workflow—they contain setup guidance and token info.

Activate the Google Drive trigger to start automated uploads.

Nodes Used (8)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
Google Drive
n8n-nodes-base.googleDrive
Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini
HTTP Request
n8n-nodes-base.httpRequest
OpenAI
@n8n/n8n-nodes-langchain.openAi
Telegram
n8n-nodes-base.telegram
YouTube
n8n-nodes-base.youTube