Back to Integrations
integrationX (Formerly Twitter) node
integrationYouTube node

X (Formerly Twitter) and YouTube integration

Save yourself the work of writing custom integrations for X (Formerly Twitter) and YouTube and use n8n instead. Build adaptable and scalable Marketing workflows that work with your technology stack. All within a building experience you will love.

How to connect X (Formerly Twitter) and YouTube

  • Step 1: Create a new workflow
  • Step 2: Add and configure nodes
  • Step 3: Connect
  • Step 4: Customize and extend your integration
  • Step 5: Test and activate your workflow

Step 1: Create a new workflow and add the first step

In n8n, click the "Add workflow" button in the Workflows tab to create a new workflow. Add the starting point – a trigger on when your workflow should run: an app event, a schedule, a webhook call, another workflow, an AI chat, or a manual trigger. Sometimes, the HTTP Request node might already serve as your starting point.

X (Formerly Twitter) and YouTube integration: Create a new workflow and add the first step

Step 2: Add and configure X (Formerly Twitter) and YouTube nodes

You can find X (Formerly Twitter) and YouTube in the nodes panel. Drag them onto your workflow canvas, selecting their actions. Click each node, choose a credential, and authenticate to grant n8n access. Configure X (Formerly Twitter) and YouTube nodes one by one: input data on the left, parameters in the middle, and output data on the right.

X (Formerly Twitter) and YouTube integration: Add and configure X (Formerly Twitter) and YouTube nodes

Step 3: Connect X (Formerly Twitter) and YouTube

A connection establishes a link between X (Formerly Twitter) and YouTube (or vice versa) to route data through the workflow. Data flows from the output of one node to the input of another. You can have single or multiple connections for each node.

X (Formerly Twitter) and YouTube integration: Connect X (Formerly Twitter) and YouTube

Step 4: Customize and extend your X (Formerly Twitter) and YouTube integration

Use n8n's core nodes such as If, Split Out, Merge, and others to transform and manipulate data. Write custom JavaScript or Python in the Code node and run it as a step in your workflow. Connect X (Formerly Twitter) and YouTube with any of n8n’s 1000+ integrations, and incorporate advanced AI logic into your workflows.

X (Formerly Twitter) and YouTube integration: Customize and extend your X (Formerly Twitter) and YouTube integration

Step 5: Test and activate your X (Formerly Twitter) and YouTube workflow

Save and run the workflow to see if everything works as expected. Based on your configuration, data should flow from X (Formerly Twitter) to YouTube or vice versa. Easily debug your workflow: you can check past executions to isolate and fix the mistake. Once you've tested everything, make sure to save your workflow and activate it.

X (Formerly Twitter) and YouTube integration: Test and activate your X (Formerly Twitter) and YouTube workflow

Hacker News to Video Content

Hacker News to Video Content

Overview
This workflow converts trending articles from Hacker News into engaging video content. It integrates AI-based tools to analyze, summarize, and generate multimedia content, making it ideal for content creators, educators, and marketers.

Features
Article Retrieval:
Pulls trending articles from Hacker News.
Limits the number of articles to process (configurable).

Content Analysis:
Uses OpenAI's GPT model to:
Summarize articles.
Assess their relevance to specific topics like automation or AI.
Extract key image URLs.

Image and Video Generation:
Leonardo.ai: Creates stunning AI-generated images based on extracted prompts.
RunwayML: Converts images into high-quality videos.

Structured Content Creation:
Parses content into structured formats for easy reuse.
Generates newsletter-friendly blurbs and social media-ready captions.

Cloud Integration:
Uploads generated assets to:
Dropbox
Google Drive
Microsoft OneDrive
MinIO

Social Media Posting (Optional):
Supports posting to YouTube, X (Twitter), LinkedIn, and Instagram.

Workflow Steps

  1. Trigger
    Initiated manually via the "Test Workflow" button.

  2. Fetch Articles
    Retrieves articles from Hacker News.
    Limits the results to avoid processing overload.

  3. Content Filtering
    Evaluates if articles are related to AI/Automation using OpenAI's language model.

  4. Image and Video Generation
    Generates:
    AI-driven image prompts via Leonardo.ai.
    Videos using RunwayML.

  5. Asset Management
    Saves the output to cloud storage services or uploads directly to social media platforms.

Prerequisites

API Keys**:
Hacker News
OpenAI
Leonardo.ai
RunwayML
Creatomate

n8n Installation**:
Ensure n8n is installed and configured locally or on a server.

Credentials**:
Set up credentials in n8n for all external services used in the workflow.

Customization
Replace Hacker News with any other data source node if needed.
Configure the "Article Analysis" node for different topics.
Adjust the cloud storage services or add custom storage options.

Usage
Import this workflow into your n8n instance.
Configure your API credentials.
Trigger the workflow manually or schedule it as needed.
Check the outputs in your preferred cloud storage or social media platform.

Notes
Extend this workflow further by automating social media posting or newsletter integration.
For any questions, refer to the official documentation or reach out to the creator.

About the Creator
This workflow was built by AlexK1919, an AI-native workflow automation architect. Check out the overview video for a quick demo.

Tools Used
Leonardo.ai**
RunwayML**
Creatomate**
Hacker News API**
OpenAI GPT**

Feel free to adapt and extend this workflow to meet your specific needs! 🎉

Nodes used in this workflow

Popular X (Formerly Twitter) and YouTube workflows

+9

Hacker News to Video Content

Hacker News to Video Content Overview This workflow converts trending articles from Hacker News into engaging video content. It integrates AI-based tools to analyze, summarize, and generate multimedia content, making it ideal for content creators, educators, and marketers. Features Article Retrieval: Pulls trending articles from Hacker News. Limits the number of articles to process (configurable). Content Analysis: Uses OpenAI's GPT model to: Summarize articles. Assess their relevance to specific topics like automation or AI. Extract key image URLs. Image and Video Generation: Leonardo.ai: Creates stunning AI-generated images based on extracted prompts. RunwayML: Converts images into high-quality videos. Structured Content Creation: Parses content into structured formats for easy reuse. Generates newsletter-friendly blurbs and social media-ready captions. Cloud Integration: Uploads generated assets to: Dropbox Google Drive Microsoft OneDrive MinIO Social Media Posting (Optional): Supports posting to YouTube, X (Twitter), LinkedIn, and Instagram. Workflow Steps Trigger Initiated manually via the "Test Workflow" button. Fetch Articles Retrieves articles from Hacker News. Limits the results to avoid processing overload. Content Filtering Evaluates if articles are related to AI/Automation using OpenAI's language model. Image and Video Generation Generates: AI-driven image prompts via Leonardo.ai. Videos using RunwayML. Asset Management Saves the output to cloud storage services or uploads directly to social media platforms. Prerequisites API Keys**: Hacker News OpenAI Leonardo.ai RunwayML Creatomate n8n Installation**: Ensure n8n is installed and configured locally or on a server. Credentials**: Set up credentials in n8n for all external services used in the workflow. Customization Replace Hacker News with any other data source node if needed. Configure the "Article Analysis" node for different topics. Adjust the cloud storage services or add custom storage options. Usage Import this workflow into your n8n instance. Configure your API credentials. Trigger the workflow manually or schedule it as needed. Check the outputs in your preferred cloud storage or social media platform. Notes Extend this workflow further by automating social media posting or newsletter integration. For any questions, refer to the official documentation or reach out to the creator. About the Creator This workflow was built by AlexK1919, an AI-native workflow automation architect. Check out the overview video for a quick demo. Tools Used Leonardo.ai** RunwayML** Creatomate** Hacker News API** OpenAI GPT** Feel free to adapt and extend this workflow to meet your specific needs! 🎉
+4

Automatically promote your YouTube video on X

YouTube to X Post Overview This n8n workflow automates the process of promoting your latest YouTube videos on X (formerly Twitter). It ensures that posts are engaging, concise, and follow platform-specific requirements. Additionally, the workflow logs social posts into a Google Sheet for record-keeping. Features Fetch Latest YouTube Videos:** Pulls recently uploaded videos from a specified channel. Generate Engaging X Posts:** Uses OpenAI's GPT-4 to create tailored, witty posts about your videos. Character Limit Validation:** Ensures posts comply with X's character limit by rewriting if necessary. Post Scheduling:** Automates post publishing to X. Google Sheets Integration:** Logs posts and their status for tracking and management. Optional Notifications:** Sends updates via Discord, Slack, or Gmail (disabled by default). How It Works Trigger: Manually trigger the workflow or set a scheduled check for new videos (disabled by default). Fetch YouTube Videos: Retrieves the latest videos from your YouTube channel, filtering duplicates. Content Creation: OpenAI generates a witty and humanized post under 220 characters, using video title and description. If the post exceeds the character limit, it is rewritten automatically. Google Sheets Logging: Logs the generated post to a Google Sheet with details like time, date, and post status. Post to X: Publishes the generated post on X. Updates the Google Sheet with the post URL. Optional Notifications: Sends notifications about the published post via Discord, Slack, or Gmail. Setup Instructions Credentials: Add credentials for: YouTube API OpenAI API Google Sheets API X (formerly Twitter) API Use the accounts associated with "AlexK1919." YouTube Node: Specify your YouTube Channel ID in the Fetch Latest Videos node. Find your Channel ID here. Google Sheets Node: Configure the node with your Google Sheet for logging posts. Use the linked sheet: AlexK1919 Social Posts. OpenAI Node: Set up your OpenAI API key for generating posts. X Post Node: Connect your X account to the Post to X node. Optional Notifications: Configure Discord, Slack, or Gmail nodes for custom notifications. Customization Schedule:** Enable and modify the Check Every 2 Hours node to automatically check for new videos. Post Format:** Edit the OpenAI prompt in the Generate X Post node to tweak the tone or style of the generated posts. Additional Platforms:** Expand this workflow to post on other social platforms by adding respective nodes (e.g., Facebook, LinkedIn). Notes Posts are validated for character limits but are restricted to 220 characters to ensure compliance with X's guidelines and leave space for links. Posts are logged in the Google Sheet with details, including post status and timestamps. Current integrations are focused on promoting YouTube content; additional types can be supported with minor adjustments. Contact For support or inquiries: Alex Kim** About Me

Post New YouTube Videos to X

Automated YouTube Video Promotion Workflow Automate the promotion of new YouTube videos on X (formerly Twitter) with minimal effort. This workflow is perfect for content creators, marketers, and social media managers who want to keep their audience updated with fresh content consistently. How it works This workflow triggers every 30 minutes to check for new YouTube videos from a specified channel. If a new video is found, it utilizes OpenAI's ChatGPT to craft an engaging, promotional message for X. Finally, the workflow posts the generated message to Twitter, ensuring your latest content is shared with your audience promptly. Set up steps Schedule the workflow to run at your desired frequency. Connect to your YouTube account and set up the node to fetch new videos based on your Channel ID. Integrate with OpenAI to generate promotional messages using GPT-3.5 turbo. Link to your X account and set up the node to post the generated content. Please note, you'll need API keys and credentials for YouTube, OpenAI, and X. Check out this quick video tutorial to make the setup process a breeze. Additional Tips Customize the workflow to match your branding and messaging tone. Test each step to ensure your workflow runs smoothly before going live.

Build your own X (Formerly Twitter) and YouTube integration

Create custom X (Formerly Twitter) and YouTube workflows by choosing triggers and actions. Nodes come with global operations and settings, as well as app-specific parameters that can be configured. You can also use the HTTP Request node to query data from any app or service with a REST API.

X (Formerly Twitter) supported actions

Create
Send a direct message to a user
Add Member
Add a member to a list
Create
Create, quote, or reply to a tweet
Delete
Delete a tweet
Like
Like a tweet
Retweet
Retweet a tweet
Search
Search for tweets from the last seven days
Get
Retrieve a user by username

YouTube supported actions

Get
Retrieve a channel
Get Many
Retrieve many channels
Update
Update a channel
Upload Banner
Upload a channel banner
Create
Create a playlist
Delete
Delete a playlist
Get
Get a playlist
Get Many
Retrieve many playlists
Update
Update a playlist
Add
Add an item to a playlist
Delete
Delete a item from a playlist
Get
Get a playlist's item
Get Many
Retrieve many playlist items
Delete
Delete a video
Get
Get a video
Get Many
Retrieve many videos
Rate
Rate a video
Update
Update a video
Upload
Upload a video
Get Many
Retrieve many video categories

FAQs

  • Can X (Formerly Twitter) connect with YouTube?

  • Can I use X (Formerly Twitter)’s API with n8n?

  • Can I use YouTube’s API with n8n?

  • Is n8n secure for integrating X (Formerly Twitter) and YouTube?

  • How to get started with X (Formerly Twitter) and YouTube integration in n8n.io?

Need help setting up your X (Formerly Twitter) and YouTube integration?

Discover our latest community's recommendations and join the discussions about X (Formerly Twitter) and YouTube integration.
Jan Koch
lexgabrees
Andrey Khokhlov

Looking to integrate X (Formerly Twitter) and YouTube in your company?

Over 3000 companies switch to n8n every single week

Why use n8n to integrate X (Formerly Twitter) with YouTube

Build complex workflows, really fast

Build complex workflows, really fast

Handle branching, merging and iteration easily.
Pause your workflow to wait for external events.

Code when you need it, UI when you don't

Simple debugging

Your data is displayed alongside your settings, making edge cases easy to track down.

Use templates to get started fast

Use 1000+ workflow templates available from our core team and our community.

Reuse your work

Copy and paste, easily import and export workflows.

Implement complex processes faster with n8n

red iconyellow iconred iconyellow icon