Skip to main content

Automatically promote your YouTube video on X

Workflow preview

Workflow preview
100%
Automatically promote your YouTube video on X preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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...

Best for

  • Social Media automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.twitter, n8n-nodes-base.stickynote, n8n-nodes-base.youtube, @n8n/n8n-nodes-langchain.toolcalculator, @n8n/n8n-nodes-langchain.toolwikipedia, n8n-nodes-base.scheduletrigger, n8n-nodes-base.googlesheets, n8n-nodes-base.manualtrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Alex Kim.

Original n8n.io source

1.1 Workflow description

Title
Automatically promote your YouTube video on X
Workflow name
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

  1. Trigger:

    • Manually trigger the workflow or set a scheduled check for new videos (disabled by default).
  2. Fetch YouTube Videos:

    • Retrieves the latest videos from your YouTube channel, filtering duplicates.
  3. 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.
  4. Google Sheets Logging:

    • Logs the generated post to a Google Sheet with details like time, date, and post status.
  5. Post to X:

    • Publishes the generated post on X. Updates the Google Sheet with the post URL.
  6. Optional Notifications:

    • Sends notifications about the published post via Discord, Slack, or Gmail.

Setup Instructions

  1. Credentials:

    • Add credentials for:
      • YouTube API
      • OpenAI API
      • Google Sheets API
      • X (formerly Twitter) API
    • Use the accounts associated with "AlexK1919."
  2. YouTube Node:

  3. Google Sheets Node:

  4. OpenAI Node:

    • Set up your OpenAI API key for generating posts.
  5. X Post Node:

    • Connect your X account to the Post to X node.
  6. 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:

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Post to X

Type / Role
n8n-nodes-base.twitter - twitter
Config choices
Version 2

Block 2 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Fetch Latest Videos

Type / Role
n8n-nodes-base.youTube - youTube
Config choices
Version 1

Block 4 - Calculator

Type / Role
@n8n/n8n-nodes-langchain.toolCalculator - toolCalculator
Config choices
Version 1

Block 5 - Wikipedia

Type / Role
@n8n/n8n-nodes-langchain.toolWikipedia - toolWikipedia
Config choices
Version 1

Block 6 - Check Every 2 Hours

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 7 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Calculator2

Type / Role
@n8n/n8n-nodes-langchain.toolCalculator - toolCalculator
Config choices
Version 1

Block 9 - GS - Add Tweet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.3

Block 10 - GS - Update Tweet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.3

Block 11 - When clicking "Test workflow"

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 12 - Discord

Type / Role
n8n-nodes-base.discord - discord
Config choices
Version 2

Block 13 - Remove Duplicates

Type / Role
n8n-nodes-base.removeDuplicates - removeDuplicates
Config choices
Version 2

Block 14 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Generate X Post

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.3

Block 16 - Set Fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 17 - Wikipedia1

Type / Role
@n8n/n8n-nodes-langchain.toolWikipedia - toolWikipedia
Config choices
Version 1

Block 18 - Rewrite X Post to 220 Characters

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.3

Block 19 - Verify character limit constraints

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 20 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Slack

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.2

Block 23 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Gmail

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Showing the first 24 of 28 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Automatically promote your YouTube video on X
Complexity advanced
Nodes 28
Categories Social Media, Multimodal AI
Author Alex Kim
Published 21 Nov 2024

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2564/2564.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automatically promote your YouTube video on X do?

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...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Social Media, Multimodal AI use case.