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
Automate YouTube posts with n8n and ChatGPT

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

Learn how to Build this Workflow with AI:

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.


Automate YouTube posts with n8n and ChatGPT

Visit through Desktop to Interact with the Workflow.

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.
Author
Written By
Ritu Sanjali

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.