Automated YouTube publishing from Drive with GPT & Gemini metadata generation
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.
Automated YouTube Publishing from Google Drive with AI Metadata Generation
This n8n workflow automates the process of publishing videos to YouTube directly from Google Drive, leveraging AI (either OpenAI or Google Gemini) to generate engaging titles, descriptions, and tags. It streamlines content creation and publishing, allowing you to focus on producing great video content.
Description
This workflow simplifies the YouTube publishing process by connecting your Google Drive to your YouTube channel. When a new video file is uploaded to a specified Google Drive folder, the workflow triggers. It then uses an AI model to generate comprehensive metadata for the video, including a title, description, and tags. Finally, it uploads the video to YouTube with the generated metadata, and sends a Telegram notification upon successful publication.
What it does
- Monitors Google Drive: Listens for new video files (e.g., MP4, MOV) uploaded to a designated folder in Google Drive.
- Retrieves Video Details: Fetches the newly uploaded video file and its metadata from Google Drive.
- Generates Metadata with AI:
- Option 1 (OpenAI): Sends the video file's name and a prompt to the OpenAI API to generate a YouTube title, description, and tags.
- Option 2 (Google Gemini): Alternatively, uses the Google Gemini Chat Model to generate the same metadata based on the video's context.
- Extracts AI Output: Processes the AI-generated text to extract the title, description, and tags in a structured format.
- Uploads to YouTube: Publishes the video to your YouTube channel using the AI-generated metadata.
- Notifies via Telegram: Sends a confirmation message to a specified Telegram chat with details of the newly published YouTube video.
- Includes a Wait Step: Incorporates a
Waitnode, potentially for rate limiting or to allow for processing time between steps. - HTTP Request (Placeholder/Additional Functionality): Includes an HTTP Request node, which could be used for advanced integrations or custom API calls (e.g., to a custom video processing service) if needed.
Prerequisites/Requirements
To use this workflow, you will need:
- n8n Instance: A running instance of n8n.
- Google Drive Account: A Google account with access to Google Drive. You'll need to configure a Google Drive credential in n8n.
- YouTube Account: A YouTube channel to which you want to upload videos. You'll need to configure a YouTube credential in n8n.
- OpenAI API Key (Optional): If you choose to use OpenAI for metadata generation, you'll need an OpenAI API key and an OpenAI credential configured in n8n.
- Google Gemini API Key (Optional): If you choose to use Google Gemini for metadata generation, you'll need a Google Gemini credential configured in n8n.
- Telegram Bot Token and Chat ID: A Telegram bot and its token, along with the chat ID where you want to receive notifications. You'll need to configure a Telegram credential in n8n.
Setup/Usage
- Import the Workflow: Download the JSON provided and import it into your n8n instance.
- Configure Credentials:
- For the "Google Drive Trigger" and "Google Drive" nodes, set up your Google Drive OAuth2 credentials.
- For the "YouTube" node, set up your YouTube OAuth2 credentials.
- For the "OpenAI" node (if used), set up your OpenAI API Key credential.
- For the "Google Gemini Chat Model" node (if used), set up your Google Gemini credential.
- For the "Telegram" node, set up your Telegram Bot API credential.
- Specify Google Drive Folder: In the "Google Drive Trigger" node, configure the specific folder in your Google Drive that n8n should monitor for new video uploads.
- Customize AI Prompts:
- In the "OpenAI" or "Google Gemini Chat Model" nodes, review and customize the prompts used to generate the YouTube title, description, and tags to fit your content style and requirements.
- The "Code" node is used to parse the AI's output. Ensure it correctly extracts the desired fields based on your AI prompt's expected response format.
- Configure YouTube Upload Details: In the "YouTube" node, you can set default privacy settings (e.g., Public, Unlisted, Private) and other upload options.
- Set Telegram Chat ID: In the "Telegram" node, specify the
Chat IDwhere you want to receive notifications. - Activate the Workflow: Once all credentials and configurations are set, activate the workflow.
Now, every time a new video file is uploaded to your specified Google Drive folder, the workflow will automatically process it, generate metadata using AI, upload it to YouTube, and send you a notification.
Related Templates
Create verified user profiles with email validation, PDF generation & Gmail delivery
Verified User Profile Creation - Automated Email Validation & PDF Generation --- Overview This comprehensive automation workflow streamlines the user onboarding process by validating email addresses, generating professional profile PDFs, and delivering them seamlessly to verified users. π― What This Workflow Does: Receives User Data - Webhook trigger accepts user signup information (name, email, city, profession, bio) Validates Email Addresses - Uses VerifiEmail API to ensure only legitimate email addresses proceed Conditional Branching - Smart logic splits workflow based on email verification results Generates HTML Profile - Creates beautifully styled HTML templates with user information Converts to PDF - Transforms HTML into professional, downloadable PDF documents Email Delivery - Sends personalized welcome emails with PDF attachments to verified users Data Logging - Records all verified users in Google Sheets for analytics and tracking Rejection Handling - Notifies users with invalid emails and provides guidance β¨ Key Features: β Email Verification - Prevents fake registrations and maintains data quality π Professional PDF Generation - Beautiful, branded profile documents π§ Automated Email Delivery - Personalized welcome messages with attachments π Google Sheets Logging - Complete audit trail of all verified users π Smart Branching - Separate paths for valid and invalid emails π¨ Modern Design - Clean, responsive HTML/CSS templates π Secure Webhook - POST endpoint for seamless form integration π― Perfect Use Cases: User registration systems Community membership verification Professional certification programs Event registration with verified attendees Customer onboarding processes Newsletter signup verification Educational platform enrollments Membership card generation π¦ What's Included: Complete workflow with 12 informative sticky notes Pre-configured webhook endpoint Email verification integration PDF generation setup Gmail sending configuration Google Sheets logging Error handling guidelines Rejection email template π οΈ Required Integrations: VerifiEmail - For email validation (https://verifi.email) HTMLcsstoPDF - For PDF generation (https://htmlcsstopdf.com) Gmail OAuth2 - For email delivery Google Sheets OAuth2 - For data logging β‘ Quick Setup Time: 15-20 minutes π Skill Level: Beginner to Intermediate --- Benefits: β Reduces manual verification work by 100% β Prevents spam and fake registrations β Delivers professional branded documents automatically β Maintains complete audit trail β Scales effortlessly with user growth β Provides excellent user experience β Easy integration with any form or application --- Technical Details: Trigger Type: Webhook (POST) Total Nodes: 11 (including 12 documentation sticky notes) Execution Time: ~3-5 seconds per user API Calls: 3 external (VerifiEmail, HTMLcsstoPDF, Google Sheets) Email Format: HTML with binary PDF attachment Data Storage: Google Sheets (optional) --- License: MIT (Free to use and modify) --- π BONUS FEATURES: Comprehensive sticky notes explaining each step Beautiful, mobile-responsive email template Professional PDF styling with modern design Easily customizable for your branding Ready-to-use webhook endpoint Error handling guidelines included --- Perfect for: Developers, No-code enthusiasts, Business owners, SaaS platforms, Community managers, Event organizers Start automating your user verification process today! π
Automate Reddit brand monitoring & responses with GPT-4o-mini, Sheets & Slack
How it Works This workflow automates intelligent Reddit marketing by monitoring brand mentions, analyzing sentiment with AI, and engaging authentically with communities. Every 24 hours, the system searches Reddit for posts containing your configured brand keywords across all subreddits, finding up to 50 of the newest mentions to analyze. Each discovered post is sent to OpenAI's GPT-4o-mini model for comprehensive analysis. The AI evaluates sentiment (positive/neutral/negative), assigns an engagement score (0-100), determines relevance to your brand, and generates contextual, helpful responses that add genuine value to the conversation. It also classifies the response type (educational/supportive/promotional) and provides reasoning for whether engagement is appropriate. The workflow intelligently filters posts using a multi-criteria system: only posts that are relevant to your brand, score above 60 in engagement quality, and warrant a response type other than "pass" proceed to engagement. This prevents spam and ensures every interaction is meaningful. Selected posts are processed one at a time through a loop to respect Reddit's rate limits. For each worthy post, the AI-generated comment is posted, and complete interaction data is logged to Google Sheets including timestamp, post details, sentiment, engagement scores, and success status. This creates a permanent audit trail and analytics database. At the end of each run, the workflow aggregates all data into a comprehensive daily summary report with total posts analyzed, comments posted, engagement rate, sentiment breakdown, and the top 5 engagement opportunities ranked by score. This report is automatically sent to Slack with formatted metrics, giving your team instant visibility into your Reddit marketing performance. --- Who is this for? Brand managers and marketing teams needing automated social listening and engagement on Reddit Community managers responsible for authentic brand presence across multiple subreddits Startup founders and growth marketers who want to scale Reddit marketing without hiring a team PR and reputation teams monitoring brand sentiment and responding to discussions in real-time Product marketers seeking organic engagement opportunities in product-related communities Any business that wants to build authentic Reddit presence while avoiding spammy marketing tactics --- Setup Steps Setup time: Approx. 30-40 minutes (credential configuration, keyword setup, Google Sheets creation, Slack integration) Requirements: Reddit account with OAuth2 application credentials (create at reddit.com/prefs/apps) OpenAI API key with GPT-4o-mini access Google account with a new Google Sheet for tracking interactions Slack workspace with posting permissions to a marketing/monitoring channel Brand keywords and subreddit strategy prepared Create Reddit OAuth Application: Visit reddit.com/prefs/apps, create a "script" type app, and obtain your client ID and secret Configure Reddit Credentials in n8n: Add Reddit OAuth2 credentials with your app credentials and authorize access Set up OpenAI API: Obtain API key from platform.openai.com and configure in n8n OpenAI credentials Create Google Sheet: Set up a new sheet with columns: timestamp, postId, postTitle, subreddit, postUrl, sentiment, engagementScore, responseType, commentPosted, reasoning Configure these nodes: Brand Keywords Config: Edit the JavaScript code to include your brand name, product names, and relevant industry keywords Search Brand Mentions: Adjust the limit (default 50) and sort preference based on your needs AI Post Analysis: Customize the prompt to match your brand voice and engagement guidelines Filter Engagement-Worthy: Adjust the engagementScore threshold (default 60) based on your quality standards Loop Through Posts: Configure max iterations and batch size for rate limit compliance Log to Google Sheets: Replace YOURSHEETID with your actual Google Sheets document ID Send Slack Report: Replace YOURCHANNELID with your Slack channel ID Test the workflow: Run manually first to verify all connections work and adjust AI prompts Activate for daily runs: Once tested, activate the Schedule Trigger to run automatically every 24 hours --- Node Descriptions (10 words each) Daily Marketing Check - Schedule trigger runs workflow every 24 hours automatically daily Brand Keywords Config - JavaScript code node defining brand keywords to monitor Reddit Search Brand Mentions - Reddit node searches all subreddits for brand keyword mentions AI Post Analysis - OpenAI analyzes sentiment, relevance, generates contextual helpful comment responses Filter Engagement-Worthy - Conditional node filters only high-quality relevant posts worth engaging Loop Through Posts - Split in batches processes each post individually respecting limits Post Helpful Comment - Reddit node posts AI-generated comment to worthy Reddit discussions Log to Google Sheets - Appends all interaction data to spreadsheet for permanent tracking Generate Daily Summary - JavaScript aggregates metrics, sentiment breakdown, generates comprehensive daily report Send Slack Report - Posts formatted daily summary with metrics to team Slack channel
Automate financial transaction tracking with Gmail, GPT, Notion & Telegram alerts
π© Automatically Log Transactions from Gmail into Notion and Get Telegram Alerts Whoβs it for This workflow is for individuals or entrepreneurs who receive bank alerts, invoices, and payment emails in Gmail and want them to be automatically organized in Notion β while also receiving quick Telegram notifications for each transaction. If you manage personal or business finances and find it tedious to manually record every debit, credit, or invoice β this automation does it all for you. --- How it works The workflow acts as an AI-powered Accountant Agent that reads incoming Gmail messages and decides whether each email represents a Debit Transaction, Credit Transaction, Debit Invoice, or Credit Invoice. The Gmail Trigger watches your selected inboxes (like forwarding@bayesian-labs.com, support@bayesian-labs, anoop.karnik@bayesian-labs). The Classifier (GPT-5-nano) determines the correct transaction type. The appropriate Agent (GPT-5) then extracts amount, currency, and description details. The Agent uses Notion API tools to log structured data into your Personal Finance System Notion template (Financial Transactions & Income databases). Finally, a Telegram notification is sent summarizing the entry (From, To, Subject, Snippet). In short: every time your bank emails you β Notion gets updated, and you get notified. --- How to set up Duplicate the Personal Finance System Notion template into your workspace. Create a Telegram Bot with BotFather β copy the bot token and your chat ID. Generate an OpenRouter API key for GPT-5 / GPT-5-nano. Create a Notion Integration Token and connect it to your duplicated finance databases. Add your Gmail accounts (forwarding@, support@, and/or personal Gmail) under Gmail OAuth2 credentials in n8n. Import the workflow JSON into n8n β fill in the credential names as listed below: n8ncloudregular_usage β OpenRouter Notion account β Notion API Accountant AI β Telegram Bot Gmail OAuth2 for each inbox trigger Once active, n8n polls Gmail every minute, classifies emails, updates Notion, and sends Telegram updates. --- Requirements n8n instance (self-hosted or cloud) Gmail accounts connected via OAuth2 OpenRouter API key Telegram bot token & chat ID Notion integration token Your duplicated Personal Finance System Notion template --- How to customize the workflow You can extend this workflow to: Track credit card statements, subscriptions, or payroll notifications. Add Slack or WhatsApp alerts alongside Telegram. Include live FX rates for USDβINR conversion using an API node. Connect Google Sheets as a backup ledger or export target. Add error-handling branches to mark Gmail messages as processed or label them βLogged to Notionβ.