Post New YouTube Videos to X (Twitter) with AI
detail.loadingPreview
Automatically share your latest YouTube videos on X using AI-generated posts.
About This Workflow
This workflow automates the process of posting new YouTube videos to X (formerly Twitter). It triggers periodically, fetches the latest video, generates an engaging tweet using ChatGPT, and then posts it to your X account.
Key Features
- Scheduled Trigger: Runs every 30 minutes to check for new videos.
- YouTube Integration: Fetches the latest video from your specified YouTube channel.
- AI-Powered Content Generation: Uses OpenAI's ChatGPT to craft compelling tweet text based on the video's title and description.
- X (Twitter) Posting: Publishes the generated tweet to your X account.
How To Use
- Schedule Trigger (
Check Every 30 Min): Configure the interval at which the workflow should run. The default is every 30 minutes. - YouTube Trigger (
Fetch Latest Videos):- Ensure you have connected your YouTube account credentials.
- Enter your Channel ID in the
channelIdfield. The workflow currently usesUC08Fah8EIryeOZRkjBRohcQwhich you should replace with your own. - The
publishedAfterparameter is set to look for videos published within the last 30 minutes, ensuring you get the latest.
- AI Content Generation (
Generate Post for X with ChatGPT):- Ensure you have connected your OpenAI account credentials.
- The
modelIdis set togpt-3.5-turbo. - The
messagesparameter prompts ChatGPT to write an engaging tweet (under 140 characters) linking to the video and using its title and description. The prompt correctly references the video ID and snippet data from the previous node.
- Post to X (
Post to X):- Ensure you have connected your X account credentials.
- The
textparameter is dynamically set to use thecontentgenerated by the ChatGPT node, ensuring the AI-written tweet is posted.
Apps Used
Workflow JSON
{
"id": "c543a627-de61-4b88-ae85-7620b9feca55",
"name": "Post New YouTube Videos to X (Twitter) with AI",
"nodes": 11,
"category": "Marketing",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: c543a627-de61...
About the Author
N8N_Community_Pick
Curator
Hand-picked high quality workflows from the global community.
Statistics
Related Workflows
Discover more workflows you might like
Automated Multi-Platform Social Media Publisher
Streamline your social media content creation and publishing with this n8n workflow. Simply fill out a web form with your caption, media (image or video), and target platforms, and let n8n automate the posting process across multiple social networks.
WhatsApp AI Assistant: LLaMA 4 & Google Search for Real-Time Insights
Instantly deploy a smart AI assistant on WhatsApp, powered by Groq's lightning-fast LLaMA 4 model. This workflow enables real-time conversations, remembers context, and provides up-to-date answers by integrating live Google Search results.
AI-Powered On-Page SEO Audit & Report Automation
Instantly generate comprehensive on-page SEO technical and content audits for any website URL. This AI-powered workflow automates the entire process, from scraping the page to delivering a detailed report directly to your inbox, empowering you to optimize for better search rankings and user engagement.