n8n

How to Automate YouTube to X Social Promotion?

New videos need quick reach. This setup posts your latest YouTube upload to X with a short AI written caption. It is built for creators, brands, and social teams who want fast, hands off promotion.

Every 30 minutes a schedule runs. It checks your YouTube channel for a new video published in the last 30 minutes. If one is found, OpenAI writes a post under 140 characters and includes a direct youtu.be link that uses the video ID. The text is then sent to X and published on your account. This keeps your audience informed without manual work and helps you stay consistent after each upload.

You only need a YouTube channel ID, an X account with posting access, and an OpenAI API key. Expect minutes saved on each video and more steady traffic to your channel. Great for channels that release often, launch series content, or need timely updates across platforms.

What are the key features?

  • Scheduled checks run every 30 minutes to catch new uploads
  • YouTube node filters for videos published in the last 30 minutes and returns only the newest one
  • OpenAI creates a short post under 140 characters and adds a direct youtu.be link using the video ID
  • X node publishes the AI caption to your account using OAuth2
  • Channel ID field targets the right channel and timing settings are easy to adjust

What are the benefits?

  • Reduce manual work from 15 minutes to under 1 minute per video
  • Publish to X within 30 minutes of a new YouTube upload
  • Automate 100% of cross posting for new videos
  • Eliminate copy paste errors by linking with the exact video ID
  • Connect YouTube, OpenAI, and X in one flow without context switching

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with YouTube, X and OpenAI. See the Tools Required section above for links to create accounts with these services.
  3. Connect YouTube: double click the Fetch Latest Videos node. In the Credential to connect with dropdown, click Create new credential and follow the on screen steps to authorize your YouTube account with OAuth2.
  4. Connect X: double click the Post to X node. In the Credential to connect with dropdown, click Create new credential and follow the on screen steps to authorize your X account with posting permission.
  5. Connect OpenAI: double click the Generate Post for X with ChatGPT node. In the Credential to connect with dropdown, click Create new credential, then paste your OpenAI API key from your OpenAI account API page.
  6. Set the YouTube Channel ID: open the Fetch Latest Videos node and paste your Channel ID in the Channel ID field. If you do not know it, open youtube.com/account_advanced to find it.
  7. Review timing: the schedule is set to run every 30 minutes. Open the Check Every 30 Min node to change the interval if you want faster or slower checks.
  8. Understand detection: the YouTube node uses a published after filter set to the last 30 minutes. Adjust this window if your uploads may fall outside that time frame.
  9. Test the flow: upload a new video or temporarily change the published after filter to the last 24 hours. Click Execute Workflow and check the execution log to confirm the YouTube and OpenAI nodes return data.
  10. Verify posting: open your X profile to see the new post with the short caption and the youtu.be link. If no post appears, confirm the YouTube node returned an item and that the X credential has write access.
  11. Troubleshoot: fix a wrong Channel ID, reauthorize any credential that shows errors, check OpenAI quota if the AI step fails, and reduce rate limits by keeping the interval at or above several minutes.
  12. Turn it on: enable the workflow so it runs on schedule and promotes each new upload automatically.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

OpenAI

Sign up

Pay-as-you-go: GPT-5 at $1.25 per 1M input tokens and $10 per 1M output tokens

Free tier: $0 / mo, 1000 API calls per workspace / mo

YouTube

Sign up

Free: $0, default quota 10,000 units/day

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.