n8n

How to Automate YouTube to Twitter Promotion?

Promote new YouTube uploads on Twitter without extra work. The system watches your channel and posts a short message with the video link. Best for creators and social teams that want quick cross platform reach.

Every 30 minutes a schedule runs. It asks YouTube for the newest video from your channel that was published in the last 30 minutes. The video id feeds into an OpenAI prompt that writes a 140 character post and includes a youtu.be link. The final text goes to Twitter and publishes through your connected account.

Add your channel id, connect OpenAI and Twitter, and you are ready to go. Expect one tweet for each new upload, usually within 30 minutes of publish, with no copy and paste. If you change the check rate, update the time window in the YouTube node to match so you avoid missed posts. Teams often save 10 to 15 minutes per video and keep a steady posting rhythm with consistent timing.

What are the key features?

  • Schedule trigger polls every 30 minutes to detect new uploads
  • YouTube node fetches the newest video limited to the last 30 minutes
  • OpenAI writes a post under 140 characters and adds the video link
  • Dynamic mapping inserts the YouTube videoId into a youtu.be URL
  • Twitter node publishes the text through OAuth2 connected account
  • Configurable channel id and time window to match your posting cadence

What are the benefits?

  • Reduce manual work from 15 minutes to under 1 minute per video
  • Post to Twitter within 30 minutes of each new upload
  • Automate 100% of cross posting to cut context switching
  • Reduce missed announcements by 90% with scheduled checks
  • Connect YouTube, OpenAI, and Twitter in one simple flow

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, Twitter and OpenAI. See the Tools Required section above for links to create accounts with these services.
  3. In the n8n canvas, open the node named Fetch Latest Videos. In the Credential to connect with dropdown, click Create new credential for YouTube OAuth2 and follow the on screen steps to sign in with your Google account.
  4. In the same YouTube node, paste your Channel ID into the Channel ID field. You can find it in your YouTube account advanced settings.
  5. Confirm Limit is set to 1 and keep the Published After expression. If you later change the schedule interval, adjust this time window to the same length.
  6. Open the node Generate Post for X with ChatGPT. In the credentials field, click Create new credential for OpenAI and paste your API key from the OpenAI API keys page, then save.
  7. Review the prompt to ensure the post stays under 140 characters and includes the link to https://youtu.be/{{ $json.id.videoId }}.
  8. Open the node Post to X. In the credentials dropdown, click Create new credential for Twitter OAuth2 and complete the on screen authorization. Confirm the Text field maps to {{$json.message.content}}.
  9. Open the Schedule Trigger node and verify it is set to run every 30 minutes. Adjust if you want a different cadence.
  10. Test the data flow: temporarily change the YouTube Published After window to a larger range such as the last 7 days, then click Execute Node on Fetch Latest Videos and confirm you see id.videoId in the output.
  11. Run the OpenAI node and check that message.content contains a short post with the correct youtu.be link.
  12. Use a test Twitter account or limit visibility while testing. Execute the entire workflow once to confirm a post is published successfully.
  13. Revert the YouTube Published After window to 30 minutes, enable the workflow, and activate it. Monitor the next upload to confirm a timely post.
  14. Troubleshooting: If no post appears, ensure your channel had a new video within the last 30 minutes, verify the Channel ID, and reauthorize YouTube and Twitter credentials. If the post text is empty, check the mapping to message.content in the Twitter node. If OpenAI fails, verify the API key and account limits.

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

Twitter

Sign up

Free tier: $0 / mo, 500 posts / mo and 100 reads / mo (X API v2)

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.