Back to Integrations
integrationDiscord node
integrationGmail node

Discord and Gmail integration

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

How to connect Discord and Gmail

  • 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 Gmail integration: Create a new workflow and add the first step

Step 2: Add and configure Discord and Gmail nodes

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

Discord and Gmail integration: Add and configure Discord and Gmail nodes

Step 3: Connect Discord and Gmail

A connection establishes a link between Discord and Gmail (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 Gmail integration: Connect Discord and Gmail

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

Discord and Gmail integration: Customize and extend your Discord and Gmail integration

Step 5: Test and activate your Discord and Gmail workflow

Save and run the workflow to see if everything works as expected. Based on your configuration, data should flow from Discord to Gmail 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 Gmail integration: Test and activate your Discord and Gmail 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 Gmail workflows

Multi-Account Email Classifier with AI, Gmail, Discord & Google Sheets

AI Email Classifier 📬 Automate Email Classification, Prioritization, and Spam Detection Across Multiple Accounts Created by: Jayant Kumar (@jharilela) 🛠 Powered by: Gmail, Google Sheets, OpenAI, Discord, and n8n Sample Discord labelling as Spam Sample Discord labelling as Legit Why I Built This Focus is Expensive. Managing multiple email inboxes every day—personal, business, partnerships, invoices. Logging into each, skimming through noise, flagging important stuff, and deleting spam started eating up hours of my week. I needed a system that helped me focus only on what matters without building an entire helpdesk dashboard. I already live in Discord. It made sense to push my emails there—but in a fun, digestible, and actionable way. I built AI Email Classifier 📬 to summarize emails, detect spam, assign priority, and make everything skimmable with pictures and links. And it works across multiple Gmail accounts. Key Features ✅ Works with multiple Gmail inboxes 🧠 Uses AI to classify spam vs legit 🎯 Assigns priority levels: High / Medium / Low 🗂 Appends everything to a central Google Sheet 📸 Sends visual summaries to Discord (with image + action links) 🛠 Powered by open-source: n8n_discord_trigger_bot How It Works Here’s the high-level flow: New Email in any inbox triggers the worfklow to start The AI Agent reads the raw content, subject, sender, Gmail labels. It calls a Google Sheet that acts as our feedback memory: Emails and domains manually marked as spam or legit. AI classifies the incoming email using logic: Spam if sender or domain is blacklisted, or content matches patterns like: "promotions, phishing, ads, mass emails, cold offers" Priority is assigned by: High: deadlines, legal, payments, clients, CEO emails Medium: team updates, meetings, project notifications Low: newsletters, FYIs, casual threads It produces a compact JSON output with: Sender, recipient, subject, summary, priority, priority color, image URL, action URL The message is formatted visually and posted back to Discord as an embed with: Summary text Actionable links Priority color code Thumbnail (if any) Google Sheet Training Table The system uses this sheet as live memory to label spam and legit senders: ╔════════════════════╦══════════════╦═════════════════╦══════════════╦════════════════╗ ║ Email ║ Domain ║ Classification ║ Labelled By ║ Labelled Date ║ ╠════════════════════╬══════════════╬═════════════════╬══════════════╬════════════════╣ ║ [email protected] ║ badsite.com ║ Spam ║ Jayant ║ 08/07/2025 ║ ║ [email protected] ║ trusted.com ║ Legit ║ Jayant ║ 08/07/2025 ║ ╚════════════════════╩══════════════╩═════════════════╩══════════════╩════════════════╝ This allows manual control to teach the AI which senders to trust or ignore. Every time I see something marked wrong, I just reply in Discord with "spam" or "legit" on that message thread. That triggers an update to the Sheet via AI parsing and n8n. Why Manual Input Still Matters AI isn’t perfect. Some spam emails are cleverly disguised. And some senders are contextually important only to you. That’s why I kept a simple feedback loop: You tell the bot "spam" or "legit" on any Discord email message. Or anything along that line The AI agent detects the intent and updates the Sheet. The AI improves its judgment next time as it now remembers your preference Why Discord? Because Slack charges per seat and email feels lonely. I run most of my operations inside Discord community chats, client rooms, bot alerts. Instead of making a full email UI, I turned each email into a Discord card with a thumbnail, summary, and quick actions. It’s fun. It’s visual. It doesn’t feel like work. Email becomes more like a game feed. Tech Stack Gmail → Discord via Gmail trigger node Discord → n8n Webhook via n8n_discord_trigger_bot OpenAI GPT-4o (classification + summarization) Google Sheets (feedback memory) Discord Node (embed output with JSON + images) Try It Yourself Clone the workflow JSON, set up your Gmail integrations, and install the n8n Discord Trigger Bot. I made this workaround because i couldnt find a discord trigger on n8n. Now I just scroll my Discord DMs and know what to reply to, and ignore everything else.Dont let Email spam your brain. Let your AI do the thinking.

Multi-Channel Workflow Error Alerts with Telegram, Gmail & Messaging Apps

The Error Notification workflow is designed to instantly notify you whenever any other n8n workflow encounters an error, using popular communication channels like Telegram and Gmail—with optional support for Discord, Slack, and WhatsApp. 💡 Why Use Error Notification workflow? Immediate Awareness:** Get instant alerts when workflows fail, preventing unnoticed errors and downtime. Multi-Channel Flexibility:** Notify your team via Telegram, Gmail, and optionally Slack, Discord, or WhatsApp. Detailed Context:** Receive rich error information including the error message, node name, time, and execution link for quicker fixes. Easy Integration:** Built with native n8n nodes and customizable code, simple to adopt without complex setup. Open Source & Free:** Use and adapt this workflow at no cost, making professional error monitoring accessible. ⚡ Who Is This For? n8n Workflow Developers:** Quickly spot and respond to automation issues in development or production. Operations Teams:** Maintain uptime and swiftly troubleshoot errors across multiple workflows. Small to Medium Businesses:** Gain professional error alerting without expensive monitoring tools. Automation Enthusiasts:** Enhance your automation reliability with real-time failure notifications. ❓ What Problem Does It Solve? This workflow embedd error detection and notification directly within your n8n instance. It automates the process of catching errors as they occur, compiling meaningful context, and delivering it instantly via your preferred messaging platforms. This drastically reduces your response time to issues and streamlines error management, improving your automation reliability and operational confidence. 🔧 What This Workflow Does ⏱ Trigger: Listens for any error generated in your n8n workflows using the n8n Error Trigger node. 📎 Step 2: Executes a Code node that formats a detailed error message capturing workflow name, error node, description, timestamp, and an execution URL. 🔍 Step 3: Sends the formatted error notification to multiple communication channels: Telegram and Gmail by default, plus optionally Discord, Slack, and WhatsApp (disabled by default). 💌 Step 4: Delivers rich, parsed HTML-formatted messages to ensure error readability and immediate actionability. 🔐 Setup Instructions Import the provided .json file into your n8n instance (Cloud or self-hosted). Set up credentials: Gmail OAuth credentials for sending emails via Gmail node Telegram API credentials for Telegram notifications (Optional) Discord Webhook URL credential for Discord notifications (Optional) Slack Webhook credential for Slack notifications (Optional) WhatsApp connection credentials (if enabled) Customize the Code node if needed to adjust the error message format or target chat IDs. Update the chat IDs and recipient details in each notification node according to your channels. Test the workflow by manually triggering an error in another workflow to verify proper notifications. 🧩 Pre-Requirements Active n8n instance (cloud or self-hosted) with version supporting Error Trigger node Telegram bot credentials and chat ID (Optional) Gmail, Discord, Slack, or WhatsApp accounts and webhook credentials if you want to use those channels 🛠️ Customize It Further Enable and configure additional notification nodes like Slack or WhatsApp to fit your team's communication style. Customize the error message template in the Code node to include extra metadata or format it differently (e.g., markdown). Integrate with incident management tools via webhook nodes or create tickets automatically on error. 🧠 Nodes Used Error Trigger Code Telegram Gmail Discord (disabled) Slack (disabled) WhatsApp (disabled) Sticky Note (for description) 📞 Support Made by: khaisa Studio Tag: notification,error,monitoring,workflow,automation,alerts Category: Monitoring & Alerts Need a custom? Need a custom? contact me on LinkedIn or Web

Automated Workflow Backup System with Google Drive, Gmail and Discord Alerts'

How it works This workflow automates the backup of all your n8n workflows to a specified Google Drive folder. It operates in two main phases: Orchestration (Scheduled Task): The workflow is initiated by a Schedule Trigger (e.g., daily at 1:30 AM by default). It then uses an n8n API Node to fetch a list of all existing workflows in your n8n instance. A Loop Over Items node processes each fetched workflow individually. For every workflow in the list, an Execute Workflow node calls the "worker" part of this same workflow, passing the individual workflow's data. Individual Workflow Backup (Worker Task): This part is triggered by the When Executed by Another Workflow node (called by the orchestrator part). It first retrieves the passed workflow data. A Parameters node defines the target Google Drive directory. The Get Google Drive File Data node searches the specified Google Drive folder to see if a backup file for the current workflow (named as WorkflowName_WorkflowID.json) already exists. An IF Node (ifDriveEmpty) checks the result: If a backup file exists, the workflow data is converted to a binary JSON file using a Code Node, and then the existing file on Google Drive is updated (Backup to Google Drive2). If a backup file does not exist, the workflow data is first formatted as JSON, converted to a binary JSON file using another Code Node, and then uploaded as a new file to Google Drive (Backup to Google Drive4). If any Google Drive upload/update operation fails, a Failure Email is sent. After the loop in the orchestration phase completes (all workflows processed), a Limit node ensures only one signal proceeds to send a Success Email and a Discord message indicating the overall backup process was completed. Setup Clone Workflow: Clone this workflow into your n8n environment. Credentials: n8n API: In the "Get all n8n Workflows" node, select or create n8n API credentials. This allows the workflow to list all your other workflows. Google Drive: In the "getDriveFileData", "Backup to Google Drive2", and "Backup to Google Drive4" nodes, select or create your Google Drive OAuth2 API credentials. Gmail: In the "successEmail" and "failureEmail" nodes, select or create your Gmail credentials. Discord (Optional): If you wish to use Discord notifications, configure your Discord Bot API credentials in the "Discord" node. Configuration: Schedule: Open the "Schedule Trigger" node and adjust the trigger interval (e.g., time of day) as needed. Google Drive Folder: Open the "Parameters" node (connected after "Workflow Data"). Edit the directory value to the full URL of the Google Drive folder where you want to store your backups (e.g., https://drive.google.com/drive/folders/YOUR_FOLDER_ID). Email Recipients: Open the "successEmail" and "failureEmail" nodes and update the "Send To" field with your desired recipient email address(es). Discord Channel (Optional): If using Discord, open the "Discord" node and set the "Channel ID" for notifications. Sub-Workflow ID: The "Execute Workflow" node is pre-configured to call this workflow itself using its ID. If you import this workflow and its ID changes, you may need to update the workflowId in the "Execute Workflow" node to the new ID of this imported workflow. However, n8n usually handles this if it's self-referential within the same imported workflow. How to use Activate: After completing the setup steps, activate the workflow. It will automatically run according to the defined schedule. Manual Execution: You can also manually trigger the workflow by clicking the "Execute Workflow" play button on the "Schedule Trigger" node to perform an immediate backup of all workflows. Check Backups: Your n8n workflows will be saved as .json files (named WorkflowName_WorkflowID.json) in the Google Drive folder you specified in the "Parameters" node. Notifications: You will receive an email (and optionally a Discord message) upon successful completion of the entire backup process, or individual failure emails if a specific workflow backup to Google Drive fails. Author & Credits Creator:** Hochien Chang YouTube Channel (Chinese):** HC AI說人話 YouTube Channel (English):** HC HumanizeAI Original Explanation Video:** https://youtu.be/PA15H5qunC0 Based on:** n8n Workflow Backup to Google Drive
+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

Streamline lead intake and AI routing using Typeform, OpenAI & Gmail

How it works This workflow captures new form submissions, cleans the data, and stores it securely before applying AI-based lead qualification. It analyzes each message to assign category, score, and priority. Based on this classification, leads are routed to the appropriate response path. The system ensures every lead is saved first, then enriched and responded to automatically. Step-by-step Capture and clean lead data** Typeform Trigger – Listens for new submissions in real time. Sanitize Lead Data – Cleans names, formats emails, and extracts domain. Store lead in database** Create a record – Saves lead details in Airtable with status “New”. Analyze and enrich with AI** AI Lead Analyzer – Uses OpenAI to classify, score, and prioritize leads. Merge – Combines original lead data with AI-generated insights. Route and respond automatically** Route by Category – Directs leads based on AI classification. Send a message – Sends tailored email for sales inquiries. Send a message1 – Sends confirmation email for support requests. Send a message2 – Sends response for partnership inquiries. Send a message3 – Sends fallback response for other categories. Send a message4 – Sends Discord alert for high-priority leads. Why use this? Ensures no lead is lost by storing data before processing Automatically prioritizes high-value opportunities using AI Reduces manual lead qualification and response time Provides personalized responses based on intent Enables real-time team alerts for important leads

Schedule client meetings via web forms with Google Calendar, Zoom

Who it's for This n8n workflow is designed for businesses, consultants, and service providers who want to automate their meeting scheduling process. The workflow creates a seamless booking system that can handle meeting requests, check availability, create calendar events, set up video conferences, and send notifications through multiple channels. Features Integrates with web forms to receive booking requests Checks Google Calendar availability automatically Creates calendar events with booking details Sets up Zoom meetings instantly Sends notifications via email, WhatsApp, Discord, and Teams Notifies politely if requested slots aren’t available Supports Your time zone conversions Requirements Google Calendar API Credentials**: For checking availability and creating events Zoom API Credentials**: For generating meeting links and video conferences Gmail OAuth2 Credentials**: For sending email confirmations Notification Service Credentials**: Discord Bot API, Microsoft Teams API, Rapiwa API (for WhatsApp) Important Notes Time Zone Configuration**: The workflow is set to Asia/Dhaka time zone but can be customized Meeting Settings**: Default meeting duration (40 minutes) and password can be adjusted Notification Templates**: All notification messages can be customized to match your brand voice Calendar Selection**: Ensure the correct Google Calendar ID is configured for your booking system Support & Help WhatsApp**: Chat on WhatsApp Discord**: SpaGreen Community Facebook Group**: SpaGreen Support Website**: https://spagreen.net Developer Portfolio**: Codecanyon SpaGreen

Build your own Discord and Gmail integration

Create custom Discord and Gmail 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

Gmail supported actions

Add Label
Delete
Get
Get Many
Mark as Read
Mark as Unread
Remove Label
Reply
Send
Send and Wait for Response
Create
Delete
Get
Get Many
Create
Delete
Get
Get Many
Add Label
Delete
Get
Get Many
Remove Label
Reply
Trash
Untrash

FAQs

  • Can Discord connect with Gmail?

  • Can I use Discord’s API with n8n?

  • Can I use Gmail’s API with n8n?

  • Is n8n secure for integrating Discord and Gmail?

  • How to get started with Discord and Gmail integration in n8n.io?

Need help setting up your Discord and Gmail integration?

Discover our latest community's recommendations and join the discussions about Discord and Gmail integration.
jake chard
Jan Koch
Paul Kennard

Looking to integrate Discord and Gmail in your company?

Over 3000 companies switch to n8n every single week

Why use n8n to integrate Discord with Gmail

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