Back to Integrations
integrationDiscord node
integrationX (Formerly Twitter) node

Discord and X (Formerly Twitter) integration

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

How to connect Discord and X (Formerly Twitter)

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

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

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

You can find Discord and X (Formerly Twitter) 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 Discord and X (Formerly Twitter) nodes one by one: input data on the left, parameters in the middle, and output data on the right.

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

Step 3: Connect Discord and X (Formerly Twitter)

A connection establishes a link between Discord and X (Formerly Twitter) (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.

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

Step 4: Customize and extend your Discord and X (Formerly Twitter) 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 Discord and X (Formerly Twitter) with any of n8n’s 1000+ integrations, and incorporate advanced AI logic into your workflows.

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

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

Save and run the workflow to see if everything works as expected. Based on your configuration, data should flow from Discord to X (Formerly Twitter) 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.

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

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

Nodes used in this workflow

Popular Discord and X (Formerly Twitter) workflows

+6

Automated Tweet Generator & Publisher with GPT-4, Discord, and Google Sheets

AI Twitter Content Machine – Write, Refine & Publish Tweets on Autopilot This workflow is perfect for creators, solopreneurs, and personal brands who want to consistently publish bold, high-performing content on X (Twitter) — without writing a single line themselves. After a one-time setup, it automatically generates tweet ideas, writes in your voice, evaluates post quality, avoids duplicates, and publishes directly to Twitter. All approvals and rewrites are handled in a conversational loop powered by OpenAI, Discord, and Google Sheets. Whether you’re building a personal brand or growing your startup audience, this tool will help you stay active, edgy, and relevant — with zero friction. How it works Distill what your flow does in a few high-level steps. Loads your brand brief from a sub-workflow. Generates a tweet idea aligned with your tone. Checks Google Sheets to ensure the idea hasn’t been used. Writes the post. Evaluates it using a feedback sub-workflow — if the quality score is below 0.7, it rewrites the post. Refines tone and voice using a Rewriter Agent that mimics your past content (from a Google Sheet). Sends the final post to a Discord channel for manual approval. On approval, posts directly to Twitter (X) and logs it to Google Sheets (History and Examples tabs). Set up steps Give users an idea of how long setup will take. Don’t describe every detail. Keep detailed descriptions in sticky notes inside your workflow. Key benefits No burnout, no block – Stop spending energy thinking what to tweet. AI handles everything. Style-matching – Posts sound like you, not a generic robot. Based on your real writing. Fast & scalable – Publish once or five times a day — it’s up to you. Avoid duplicates – Each idea is checked against your post history. Human-in-the-loop – You approve final posts via Discord. No rogue tweets. Integrations required n8n OpenAI API Google Sheets Twitter (OAuth2) Discord (for approval) Notion (optional for brand brief storage)

AI-Optimized Content Posting to X, Discord & LinkedIn with OpenRouter

Amplify your social media presence with BuzzBlast, an n8n workflow designed to make your content go viral across X, Discord, and LinkedIn. By sending a single chat message, BuzzBlast leverages OpenRouter's AI to optimize your input for each platform’s unique audience—crafting punchy tweets for X, engaging messages for Discord, and professional posts for LinkedIn. With smart language detection, it ensures the output matches your input’s language for authentic engagement. Key Features 🚀 Multi-Platform Posting: Shares optimized content to X, Discord, and LinkedIn simultaneously. 🧠 AI Optimization: Uses OpenRouter’s AI to tailor content for virality on each platform. 🌐 Language Detection: Matches output to your input language for seamless engagement. 🔄 Smart Routing: Automatically directs content to the right platform using a switch node. 📱 Chat Trigger: Initiates posts via a simple chat message. ⚡ Zero Hassle: No manual reformatting—BuzzBlast handles it all. Ideal For Social media managers looking to streamline cross-platform posting. Content creators aiming to boost engagement with minimal effort. Businesses seeking to maximize reach across diverse audiences. Pre-Requirements n8n instance**: A running n8n instance (cloud or self-hosted). Credentials**: X account with OAuth2 API access. Discord Webhook API setup for your server. LinkedIn account with OAuth2 API access. OpenRouter account for AI language model access. Chat Trigger Setup**: A configured chat platform (e.g., Slack, Telegram) to send input messages to the workflow. Setup Instructions Import the Workflow: Copy the provided workflow JSON and import it into your n8n instance via the "Import Workflow" option in the n8n editor. Configure Credentials: In the Post to X node, set up OAuth2 credentials for your X account. In the Post to Discord node, configure a Discord Webhook for your server. In the Post to LinkedIn node, add OAuth2 credentials for your LinkedIn account. In the OpenRouter AI Model node, provide API credentials for your OpenRouter account. Set Up Chat Trigger: In the Chat Input Trigger node, configure your preferred chat platform (e.g., Slack, Telegram) to send trigger messages. Ensure the webhook is active and correctly linked to your chat platform. Test the Workflow: Send a test message via your chat platform (e.g., "Announcing our new product launch!"). Verify that the AI optimizes the content and posts it to X, Discord, and LinkedIn as expected. Activate the Workflow: Once tested, toggle the workflow to "Active" in n8n to enable automatic execution when chat messages are received. Customization Guidance Changes Chat Trigger**: Adjust the chat trigger using your preference platform like telegram, discord, etc. Modify AI Prompt**: Adjust the prompt in the AI Content Optimizer node to change the tone or style (e.g., more professional for LinkedIn or conversational for Discord). Add New Platforms**: Extend the Route to Platforms node by adding conditions for additional platforms (e.g., Instagram or Facebook) and corresponding posting nodes. Change AI Model**: In the OpenRouter AI Model node, select a different OpenRouter model to optimize content quality or manage costs. Enhance Output Format**: Update the JSON schema in the Parse AI Output node to include additional fields like hashtags, emojis, or links for specific platforms. Add Error Handling**: Include an error-handling node after the Route to Platforms node to log failed posts or retry them automatically. Why Choose BuzzBlast? BuzzBlast saves time, maximizes reach, and lets AI craft platform-perfect posts that resonate with your audience. Whether you're an influencer, marketer, or business, this workflow makes cross-platform posting effortless. Ready to make waves online? Grab BuzzBlast and start buzzing! made by: khmuhtadin Need a custom? contact me on LinkedIn or Web
+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
+9

Automated PDF & Image Text Extractor & Instant Social Media Posting

Who is this for? This workflow is designed for content creators, social media managers, digital marketers, and business owners who want to automate their content creation and distribution process across multiple platforms. It's perfect for those who regularly create content from PDFs or images and want to streamline their social media posting workflow. Key Features Monitors a specific Google Drive folder for new PDFs or images Extracts text from PDFs or images using AI Optionally generates new images from text using OpenAI's DALL-E Automatically posts content with images to multiple platforms Sends notifications about successful posts Handles different file types with specialized extraction methods Workflow Does This workflow automates monitoring a Google Drive folder for new PDFs and images, extracting content using AI, and distributing it across social media platforms like WordPress, Facebook, Telegram, LinkedIn, and Discord. It can also generate new images from text and sends notifications about successful posts. The process ensures efficient handling of different file types and streamlines content sharing across multiple channels. Requirements Google Drive account with a dedicated folder for content OpenAI API credentials for image generation WordPress API credentials for website posting Social media API credentials: Facebook Graph API Telegram Bot API LinkedIn OAuth2 API Discord Bot API X/Twitter OAuth2 API Gmail credentials for email notifications Rapiwa account for WhatsApp notifications Important Notes Make sure all API credentials are properly configured before running the workflow The workflow handles both PDF and image files differently based on their MIME type Image generation is optional and can be disabled if not needed All social media posting nodes can be individually enabled or disabled based on your needs The workflow includes rate limiting to avoid API restrictions Support & Help WhatsApp**: Chat on WhatsApp Discord**: SpaGreen Community Facebook Group**: SpaGreen Support Website**: https://spagreen.net Developer Portfolio**: Codecanyon SpaGreen

Crypto Exchange Listing & Delisting Alerts to Telegram, X, and Discord

Purpose and Audience This n8n workflow template is designed to provide real-time alerts on new cryptocurrency exchange listings and delistings. It caters especially to crypto traders, investors, and enthusiasts who want to stay ahead of market changes by receiving timely notifications about token availability across major exchanges like Binance, Bybit, Coinbase, OKX, Upbit, Bithumb, and Hyperliquid. The alerts are delivered via popular communication channels Telegram, X (formerly Twitter), and Discord, ensuring you never miss important updates. What It Does The workflow continuously tracks new token listings announcement from Binance, Bybit, Coinbase, Bithumb, OKX, Upbit, and Hyperliquid futures exchange. It also monitors delistings announcement from Binance, Bybit, OKX, Upbit, and Coinbase. When a new listing or delisting announcement is detected, it automatically sends instant alerts to your subscribed Telegram groups or channels, X accounts, and Discord servers, helping you react quickly to market changes. Who Is It For This workflow is perfect for crypto traders, portfolio managers, market analysts, and anyone active in cryptocurrency investment or community management. By automating the alert process, it saves time and ensures you receive critical exchange listing updates immediately on your preferred platforms without manual monitoring. How to Setup Complete video tutorial setup guide is included with the workflow file. The step-by-step guide walks you through configuring API credentials, connecting your Telegram, X, and Discord accounts, and customizing alert preferences to fit your needs.
+7

Automated Blog Creation & Multi-Platform Publishing with GPT/Gemini & WordPress

Ultimate Blogblizt is a powerhouse workflow that solves the tedious task of crafting and publishing SEO-optimized tech blog posts. It integrates AI models (OpenAI, Google Gemini), WordPress, and multiple social media platforms to automate everything from topic selection and article writing to image creation and virality-driven social sharing—saving content creators hours while boosting online engagement and reach. 💡 Why Use Wp + Socmed? Time saver:** Cuts blog production time drastically by automating 100% of content creation, image generation, and publishing Stress relief:** No more writer's block or juggling multiple platforms—your n8n instance is your tireless content assistant Boost engagement:** Tailored social media posts optimized for X, LinkedIn, Discord, Threads, and Bluesky maximize your viral potential Competitive edge:** Combines multi-AI tech with multi-platform publishing to keep your blog ahead of the curve and your audience hooked No 3rd Party Cost:** This workflow use official API at no cost. ⚡ Perfect For Content creators:** Bloggers focused on technology and AI topics who want stress-free publishing Small businesses:** Teams needing consistent, SEO-rich content and social presence without extra hires Marketing pros:** Those craving seamless workflows connecting WordPress blogging and social channels effortlessly 🔧 How It Works | Step | Phase | Description | |------|-------|-------------| | ⏱ | Trigger | Automatically runs every 3 hours or manually via Telegram command "generate" | | 📎 | Process | AI picks a blog category and crafts a unique, SEO-friendly title plus metadata, then writes a 1,500–2,500 word article | | 🤖 | Smart Logic | Generates a lifelike featured image with OpenAI, uploads post and media to WordPress, and uses OpenRouter AI to create viral social media posts tailored by platform | | 💌 | Output | Publishes blog posts live and posts viral-ready content simultaneously to X, LinkedIn, Discord, Threads, and Bluesky | 🔐 Quick Setup Import JSON file to your n8n instances Add credentials: WordPress API, OpenAI, Google Gemini, Twitter/X OAuth2, LinkedIn OAuth2, Discord Webhook, Threads API, Bluesky API, OpenRouter API, Telegram Bot Customize: Input your WordPress site URL, category mappings, social account IDs, and access tokens Update: Replace placeholder URLs/endpoints with your live WordPress and API URLs Test: Trigger manually via Telegram or run scheduled trigger and verify content creation and social posts 🧩 You'll Need Active n8n instances WordPress site with REST API enabled and credentials API keys/accounts: OpenAI, Google Gemini, Twitter/X, LinkedIn, Discord Webhook, Threads, Bluesky, OpenRouter Telegram Bot for manual triggering (optional but recommended) 🛠️ Level Up Ideas Integrate newsletter automation for blog post digests Customize social post templates to include trending hashtags or emojis automatically Made by: khaisa Studio Tags: automation, blogging, social media, AI, WordPress, SEO Category: Content Creation & Social Sharing Need custom work? Contact me

Build your own Discord and X (Formerly Twitter) integration

Create custom Discord and X (Formerly Twitter) 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.

Discord supported actions

Create
Create a new channel
Delete
Delete a channel
Get
Get a channel
Get Many
Retrieve the channels of a server
Update
Update a channel
Delete
Delete a message in a channel
Get
Get a message in a channel
Get Many
Retrieve the latest messages in a channel
React with Emoji
React to a message with an emoji
Send
Send a message to a channel, thread, or member
Send and Wait for Response
Send a message and wait for response
Get Many
Retrieve the members of a server
Role Add
Add a role to a member
Role Remove
Remove a role from a member

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

FAQs

  • Can Discord connect with X (Formerly Twitter)?

  • Can I use Discord’s API with n8n?

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

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

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

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

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

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

Over 3000 companies switch to n8n every single week

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

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