Automate YouTube Video Promotion on X with n8n & ChatGPT

Avoid manual posting by automating your YouTube video promotions to X (formerly Twitter) every 30 minutes using n8n with YouTube, OpenAI’s ChatGPT, and the X node. Save time and create engaging, AI-crafted posts instantly.
scheduleTrigger
youTube
openAi
+2
Workflow Identifier: 1807
NODES in Use: scheduleTrigger, youTube, openAi, twitter, stickyNote

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What this workflow does

This workflow checks a YouTube channel every 30 minutes for new videos.
If a new video is found, it asks OpenAI’s ChatGPT to write a short and catchy post for X (formerly Twitter).
Then it posts the message on X automatically.
The result saves time and helps share videos quickly to get more viewers.


Who should use this workflow

This is for people who upload YouTube videos often and want help sharing them on X.
It is useful if writing posts feels slow or gets missed.
No coding skills are needed but you need accounts on YouTube, OpenAI, and X with API access.


Tools and services used

  • n8n: Runs the automation workflow.
  • YouTube API: Checks for new videos on a specific channel.
  • OpenAI ChatGPT (GPT-3.5-turbo): Creates short posts from video details.
  • X (Twitter) API: Publishes the generated posts to X automatically.

Optional: Use self-host n8n for full control.


Inputs, processing steps, and output

Inputs

  • YouTube Channel ID to check for new videos.
  • YouTube OAuth2 credentials for API access.
  • OpenAI API Key for ChatGPT.
  • X OAuth2 credentials to post tweets.

Processing steps

  • A schedule triggers workflow every 30 minutes.
  • The workflow asks YouTube API for the newest video published in last 30 minutes.
  • If video found, metadata like title, ID, and description is sent to ChatGPT node.
  • ChatGPT creates a Twitter post text with link to video (max 140 characters).
  • The generated post is sent to X node and published immediately.

Output

The user gets a real-time post on their X account promoting the latest YouTube video without doing anything manually.
This increases visibility and saves time.


Beginner step-by-step: How to use this workflow in n8n

Step 1: Import the workflow

  1. Download the workflow file using the Download button on this page.
  2. Open your n8n editor.
  3. Click on Import > Import from File and select the downloaded workflow.

Step 2: Set up credentials and IDs

  1. Add YouTube OAuth2 credentials in the Fetch Latest Videos node.
  2. Add your YouTube Channel ID in the same node.
  3. Enter your OpenAI API Key in the Generate Post for X with ChatGPT node.
  4. Add your X (Twitter) OAuth2 credentials in the Post to X node.

Step 3: Test the workflow

  1. Manually run the workflow once inside n8n to check connections and data flow.
  2. Check the ChatGPT node output for a short post about the latest YouTube video.
  3. Verify if the post appears on your X account (use a test account if preferred).

Step 4: Activate for production

  1. Switch on the workflow to run automatically every 30 minutes.
  2. Monitor initial runs using n8n’s execution logs.
  3. Adjust schedule interval or prompt as needed for your needs.

Use sticky notes in the workflow for reminders to update channel ID and a link to a setup video.


Common issues and solutions

No new posts on X timeline

Cause: No videos were published in last 30 minutes.
Fix: Lower the schedule trigger interval or publish videos more frequently.

ChatGPT returns errors

Cause: Prompt has wrong or missing video info variables.
Fix: Check prompt in ChatGPT node and correct all expressions.

X node cannot post

Cause: OAuth credentials expired or app lacks permissions.
Fix: Reconnect X credentials and verify permissions.


Customization ideas

  • Change the frequency in the schedule trigger node from 30 minutes to any time you want.
  • Switch YouTube Channel ID to another channel you manage.
  • Edit the ChatGPT prompt text to use different post styles such as funny or formal.
  • Add nodes to share posts on other social platforms like Facebook or LinkedIn.


Summary of benefits and outcomes

✓ Saves over an hour weekly by automating YouTube video posts to X.
✓ Ensures posts publish quickly within 30 minutes of video release.
✓ Creates eye-catching posts automatically using AI.
✓ Reduces manual work and missed promotion opportunities.
✓ Easy to set up by importing and configuring in n8n.


Frequently Asked Questions

The workflow runs every 30 minutes by default. This can be changed in the schedule trigger node settings.
An OpenAI API Key is required and must be added to the ChatGPT node configuration.
Yes, by updating the YouTube Channel ID in the Fetch Latest Videos node to the desired channel.
Check if OAuth2 credentials for X are valid and have required permissions. Re-authenticate if needed.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free