Back to Integrations
integrationWebhook node
integrationDiscord node

Webhook and Discord integration

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

How to connect Webhook and Discord

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

Webhook and Discord integration: Create a new workflow and add the first step

Step 2: Add and configure Webhook and Discord nodes

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

Webhook and Discord integration: Add and configure Webhook and Discord nodes

Step 3: Connect Webhook and Discord

A connection establishes a link between Webhook and Discord (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.

Webhook and Discord integration: Connect Webhook and Discord

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

Webhook and Discord integration: Customize and extend your Webhook and Discord integration

Step 5: Test and activate your Webhook and Discord workflow

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

Webhook and Discord integration: Test and activate your Webhook and Discord workflow

Discord AI-powered bot

This workflow is a template example for making Discord GPT-powered bots. Incoming user requests are analysed and categorised via OpenAI node with the help of a hand-crafted prompt. The response message is then routed to a different Discord channel.

Nodes used in this workflow

Popular Webhook and Discord workflows

+3

AI-Powered Multi-Platform Assistant with Google Suite, LinkedIn & Twitter

🤖 MCP Personal Assistant Workflow Description This workflow integrates multiple productivity tools into a single AI-powered assistant using n8n, acting as a centralized control hub to receive and execute tasks across Google Calendar, Gmail, Google Drive, LinkedIn, Twitter, and more. ✅ Key Capabilities AI Agent + Tool Use**: Built using n8n's AI Agent and MCP system, enabling intelligent multi-step reasoning. Tool Integration**: Google Calendar: schedule, update, delete events Gmail: search, draft, send emails Google Drive: manage files and folders LinkedIn & Twitter: post updates, send DMs Utility tools: fetch date/time, search URLs Discord Input**: Accepts prompts via n8n_discord_trigger_bot repo link 🛠 Setup Instructions Timezone Configuration: Go to Settings > Default Timezone in n8n. Set to your local timezone (e.g., Asia/Jakarta). Ensure all Date & Time nodes explicitly use the same zone to avoid UTC-related bugs. Tool Authentication: Replace all OAuth credentials for: Gmail Google Drive Google Calendar Twitter LinkedIn Use your own accounts when copying this workflow. Platform Adaptability: While designed for Discord, you can replace the Discord trigger with any other chat or webhook service. Example: Telegram, Slack, WhatsApp Webhook, n8n Form Trigger, etc. 📦 Strengths Great for document retrieval, email summarization, calendar scheduling, and social posting. Reduces the need for tab-switching across multiple platforms. Tested with a comprehensive checklist across categories like: Calendar Gmail Google Drive Twitter LinkedIn Utility tools Cross-tool actions (Refer to discordGPT prompt checklist for prompt coverage.) ⚠️ Limitations ❌ Binary Uploads: AI agents & MCP server currently struggle with binary payloads. Uploading files to Gmail, Google Drive, or LinkedIn may fail due to format serialization issues. Binary operations (upload/post) are under development and will be fixed in future iterations. ❌ Date Bugs: If timezone settings are incorrect, event times may default to UTC, leading to misaligned calendar events. 🔬 Testing Use the provided prompt checklist for full coverage of: ✅ Core feature flows ✅ Edge cases (e.g., invalid dates, nonexistent users) ✅ Cross-tool chains (e.g., Google Drive → Gmail → LinkedIn) ✅ MCP Assistant Test Prompt Checklist 📅 Google Calendar [X] "Schedule a meeting with Alice tomorrow at 10am. and send an invite to [email protected]" [X] "Create an event called 'Project Sync' on Friday at 3pm with Bob and Charlie." [X] "Update the time of my call with James to next Monday at 2pm." [X] "Delete my meeting with Marketing next Wednesday." [x] "What is my schedule tommorow ? " 📧 Gmail [x] "Show me unread emails from this week." [x] "Search for emails with subject: invoice" [X] "Reply to the latest email from [email protected] saying 'Thanks, noted!'" [X] "Draft an email to [email protected] with subject 'Emp0 Fundraising' and draft the body of the email with an investment opportunity in Emp0, scrape this site https://Emp0.com to get to know more about emp0.com" [X] "Send an email to [email protected] with subject 'Feature request' and cc [email protected]" [ ] "Send an email to [email protected] , write about how you like their product and want to apply for a job there and attach my latest CV from Google Drivce" 🗂 Google Drive [ ] "Upload the PDF you just sent me to my Google Drive." [X] "Create a folder called 'July Reports' inside Emp0 shared drive." [X] "Move the file named 'Q2_Review.pdf' to 'Reports/2024/Q2'." [X] "Share the folder 'Investor Decks' with [email protected] as viewer." [ ] "Download the file 'Wayne_Li_CV.pdf' and attach it in Discord." [X] "Search for a file named 'Invoice May' in my Google Drive." 🖼 LinkedIn [X] "Think of a random and inspiring quote. Post a text update on LinkedIn with the quote and end with a question so people will answer and increase engagement" [ ] "Post this Google Drive image to LinkedIn with the caption: 'Team offsite snapshots!'" [X] "Summarize the contents of this workflow and post it on linkedin with the original url https://n8n.io/workflows/5230-content-farming-ai-powered-blog-automation-for-wordpress/" 🐦 Twitter [X] "Tweet: 'AI is eating operations. Fast.'" [X] "Send a DM to @founderguy: 'Would love to connect on what you’re building.'" [X] "Search Twitter for keyword: 'founder advice'" 🌐 Utilities [X] "What time is it now?" [ ] "Download this PDF: https://ontheline.trincoll.edu/images/bookdown/sample-local-pdf.pdf" [X] "Search this URL and summarize important tech updates today: https://techcrunch.com/feed/" 📎 Discord Attachments [ ] "Take the image I just uploaded and post it to LinkedIn." [ ] "Get the file from my last message and upload it to Google Drive." 🧪 Edge Cases [X] "Schedule a meeting on Feb 30." [X] "Send a DM to @user_that_does_not_exist" [ ] "Download a 50MB PDF and post it to LinkedIn" [X] "Get the latest tweet from my timeline and email it to myself." 🔗 Cross-tool Flows [ ] "Get the latest image from my Google Drive and post it on LinkedIn with the caption 'Another milestone hit!'" [ ] "Find the latest PDF report in Google Drive and email it to [email protected]." [ ] "Download an image from this link and upload it to my Google Drive: https://example.com/image.png" [ ] "Get the most recent attachment from my inbox and upload it to Google Drive." Run each of these in isolated test cases. For cross-tool flows, verify binary serialization integrity. 🧠 Why Use This Workflow? This is an always-on personal assistant that can: Process natural language input Handle multi-step logic Execute commands across 6+ platforms Be extended with more tools and memory If you want to interact with all your work tools from a single prompt—this is your base to start. 📎 Repo & Credits Discord bot trigger: n8n_discord_trigger_bot Creator: Jay (Emp₀)

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

Automate Peer Review Assignments with Sonar Pro AI & Multi-Channel Deadline Reminders

Introduction Automate peer review assignment and grading with AI-powered evaluation. Designed for educators managing collaborative assessments efficiently. How It Works Webhook receives assignments, distributes them, AI generates review rubrics, emails reviewers, collects responses, calculates scores, stores results, emails reports, updates dashboards, and posts analytics to Slack. Workflow Template Webhook → Store Assignment → Distribute → Generate Review Rubric → Notify Slack → Email Reviewers → Prepare Response → Calculate Score → Store Results → Check Status → Generate Report → Email Report → Update Dashboard → Analytics → Post to Slack → Respond to Webhook Workflow Steps Receive & Store: Webhook captures assignments, stores data. Distribute & Generate: Assigns peer reviewers, AI creates rubrics. Notify & Email: Alerts via Slack, sends review requests. Collect & Score: Gathers responses, calculates peer scores. Report & Update: Generates reports, emails results, updates dashboard. Analyze & Alert: Posts analytics to Slack, confirms completion. Setup Instructions Webhook & Storage: Configure endpoint, set up database. AI Configuration: Add OpenAI key, customize rubric prompts. Communication: Connect Gmail, Slack credentials. Dashboard: Link analytics platform, configure metrics. Prerequisites OpenAI API key Gmail account Slack workspace Database or storage system Dashboard tool Use Cases University peer review assignments Corporate training evaluations Research paper assessments Customization Multi-round review cycles Custom scoring algorithms LMS integration (Canvas, Moodle) Benefits Eliminates manual distribution Ensures consistent evaluation Provides instant feedback and analytics

Web3 Wallet Tracker: Sync Balances to GA4, BigQuery, and Discord Whale Alerts

This workflow bridges the gap between anonymous website traffic and on-chain wallet activity. It captures wallet connections via a webhook, enriches the data with real-time USD balances from the Zerion API, and syncs the results to Google Analytics 4, BigQuery, and Discord for immediate action. This directly helps Web3 marketing and growth teams identify high-value "whales" the moment they connect to your dApp, allowing for real-time monitoring and advanced attribution analysis. How it works Video tutorial: https://youtu.be/2_wuTRzRpkg How it works Webhook Trigger: Receives the wallet address, GA Client ID, and Session ID from your website via GTM. Zerion API Integration: Queries the real-time USD balance and individual chain distributions for the connected wallet. Whale Filtering (Switch): A logic that filters wallets based on a USD threshold (e.g., >$50) to trigger high-priority alerts. Dynamic Discord Alerts: Sends a formatted message to Discord with a 2-decimal rounded total balance and a dynamic breakdown of assets across all active chains (Base, Ethereum, etc.). GA4 Push: Sends the wallet_usd_balance as a custom metric to GA4 via the Measurement Protocol to maintain session continuity. BigQuery Archive: Records the wallet address, hashed ID, and USD balance into a secure table for SQL joining with raw GA4 data Prerequisites Zerion API Key: Required for fetching real-time balance and chain data. Discord Bot Token: Required to send automated whale alerts to your team server. Google Cloud Project: A project with BigQuery enabled and a JSON Service Account key for secure data insertion. GA4 Measurement Protocol API Secret: Required to push custom metrics back into active GA4 sessions.

Notion Status-Based Alert Messages (Slack, Telegram, WhatsApp, Discord, Email)

Notion Status-Based Alert Template Who is this for? Teams that live in Notion and want an instant ping to the right person when a task changes state. Perfect for content creators, project managers, or any small team that tracks work in a Notion database and prefers Slack / Telegram / Discord / e-mail notifications over manually checking a board. What problem does this solve? Polling Notion or checking a kanban board is slow and error-prone. This workflow watches a Notion database and routes an alert to specific people based on the item’s Status. One central map decides who gets pinged for “On Deck”, “In Progress”, “Ready for Review”, or “Ready to Publish”. How it works Trigger – choose either method Polling (Notion Trigger) – fires every minute. Push (Webhook) – register the production URL in a Notion automation and disable polling. Set Notion Page Info – copies Title, Status, URL, etc. into top-level fields. Switch (Status router) – routes the item down a branch that matches its Status. Set-Mention nodes – one per Status. Each node sets a single field mention (e.g. <@U123456>). Add or edit these nodes to map new statuses or recipients. Build Message – assembles a rich text block: Task title Status: <@UserIDs> <Notion URL|Open in Notion> Send nodes – Slack (active) + optional Telegram / WhatsApp / Discord / Email (disabled by default). All reuse the same {{$json.message}}. Setup steps Import this template into n8n. Connect credentials Notion API token Slack OAuth (and any other channels you enable) Edit the Status → Mention map Open each Set-Mention node and replace the placeholder with the real Slack ID / chat ID / phone / email. Copy a node for every extra Status you use, wire it to a new Switch output, and update the value. Set environment variables (recommended) NOTION_DB_ID, SLACK_CHANNEL, EMAIL_FROM, etc. Pick your trigger style Keep polling enabled or disable it and enable the Webhook, then register the webhook URL in Notion. Test – change a task’s Status in Notion → watch Slack for the ping. Example output > Title: “Draft blog post – AI productivity” > Status: Ready for Review > Slack message: > > Draft blog post – AI productivity > Status: Ready for Review > <@U789012> > <https://www.notion.so/…|Open in Notion> > Extending the flow Wire additional channels after Build Message—they all consume the same {{$json.message}}. Add richer logic (e.g. due-date reminders) in the Set Notion Page Info node. Verify Notion webhook signatures in a Function node if you rely on push triggers. This template is the leanest possible setup: one table of statuses → direct pings to the right people. Swap the IDs, flip on your favourite channels, and ship.

Discord AI ChatBot : Context-Aware, Replies to Mentions AND also DMs

Click here to access this Workflow for free. Get your own custom ChatGPT inside your Discord Server Description This n8n workflow enables a fully autonomous AI assistant within your Discord server. It listens for both public mentions and direct messages (DMs), and replies in real-time using a language model (OpenAI's GPT-4o by default). The assistant can dynamically fetch previous messages for better context, providing smart, coherent, and personalized responses. 🔧 Key Features Dual Trigger**: Reacts to both public bot mentions and private DMs. Context-Aware AI**: Dynamically fetches the last 30 messages from either public or private conversations. Smart Routing**: Replies either in the original public channel or via DM, depending on where the message came from. Custom Prompting**: Easily modify the system prompt to define the AI’s tone, behavior, and personality. Fully Autonomous**: No manual intervention required — the bot always replies instantly. ✅ Requirements An operational n8n instance. A Discord bot with at least these permissions: Send Messages Read Message History Manage Messages OpenAI API key** (or compatible LLM credentials). The community package: n8n-nodes-discord-trigger. 🧰 Setup Instructions Discord Bot Setup Create and invite your Discord bot to your server with required permissions. > You will find in the next step a complete tutorial to craft your own bot with the right code and permissions for this workflow to work Set your Discord bot token in n8n's credential manager. Install the Community Node (please read ⚠️ Disclaimer first) Go to Settings > Community Nodes > Install Paste: n8n-nodes-discord-trigger and install. Configure the Workflow Add your Discord bot credentials. Update the LLM credentials with your OpenAI key or alternative. Customize the AI agent system prompt if needed. 🤖 How It Works When a public mention is detected, the bot replies directly in the channel, referencing the original message. When a DM is received, it responds privately. The AI uses tools to read the latest 30 public or private messages to build accurate context before replying. 🛠 Customization Options Change LLM**: Swap out OpenAI with any LLM that has an API. Edit Prompt Behavior**: Modify the system prompt to control tone and personality. Adjust Trigger Filters**: Choose which roles, channels, or patterns activate the flow. If you just need a tutorial on setting up your Discord bot, be my guest ➡️ Here And if you need any help, or have any question, feel free to come discuss about it on Telegram

Build your own Webhook and Discord integration

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

Webhook and Discord integration details

integrationWebhook node
Webhook

Webhooks are automatic notifications that apps send when something occurs. They are sent to a certain URL, which is effectively the app's phone number or address, and contain a message or payload. Polling is nearly never quicker than webhooks, and it takes less effort from you.

Use case

Save engineering resources

Reduce time spent on customer integrations, engineer faster POCs, keep your customer-specific functionality separate from product all without having to code.

Learn more

FAQs

  • Can Webhook connect with Discord?

  • Can I use Webhook’s API with n8n?

  • Can I use Discord’s API with n8n?

  • Is n8n secure for integrating Webhook and Discord?

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

Need help setting up your Webhook and Discord integration?

Discover our latest community's recommendations and join the discussions about Webhook and Discord integration.
Benjamin Hatton
Albert Ashkhatoyan
Víctor González
Salomão
sg tech

Looking to integrate Webhook and Discord in your company?

Over 3000 companies switch to n8n every single week

Why use n8n to integrate Webhook with Discord

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