Skip to main content

🤖 Discord message proxy: Bot mentions → AI actions

Workflow preview

Workflow preview
100%
🤖 Discord message proxy: Bot mentions → AI actions preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Need help? Want access to this workflow + many more paid workflows + live Q&A sessions with a top verified n8n creator? [Join the community](https://www.skool.com/beyond nodes automation lab 2006/a...

Best for

  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.discord, n8n-nodes-base.set, n8n-nodes-base.filter, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.removeduplicates

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
🤖 Discord message proxy: Bot mentions → AI actions
Workflow name
🤖 Discord message proxy: Bot mentions → AI actions

Need help? Want access to this workflow + many more paid workflows + live Q&A sessions with a top verified n8n creator?

Join the community

🔍 What It Does

Listens for @mentions of your bot in Discord channels (without a native trigger).

Filters noise: Only processes messages:

    From authorized users (configurable).

    That mention your bot.

    Sent today (skips old messages).

Forwards cleaned messages to any webhook (e.g., your AI agent, like the GitHub MCP Server).

Replies in Discord with the webhook’s response.

🛠️ Key Features

⚡ No Community Nodes: Uses official n8n nodes only (security-first!).

🔒 Role-Based Access: Restrict bot usage to specific users.

🗑️ Deduplication: Avoids processing the same message twice.

🔄 Scheduled Checks: Runs every X minutes (adjustable in the Schedule Trigger).

🚀 Use Cases

Chat with your AI bot via Discord mentions.

Moderate channels: Auto-flag messages or ping moderators.

Build custom commands: Trigger workflows by mentioning your bot.

⚙️ Setup Guide

🤖 Update Credentials: Ensure your Discord bot has Read Messages and Send Messages permissions.

🔧 Configure Variables: In the "Set Values" node:

    discordServerId: Your server’s ID.

    botId: Your bot’s user ID.

    authorizedUser: Who can trigger the bot (user ID).

🌐 Webhook Target: Point the HTTP Request node to your AI/webhook endpoint.

⏱️ Adjust Polling: Change the Schedule Trigger interval (default: every minute).

Note: This polls channels instead of true event-based triggers—tradeoffs time for security!

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 - Schedule Trigger

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

Block 2 - Discord1

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

Block 3 - Get All Servers' Channels

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

Block 4 - Set Values

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

Block 5 - Filter (Remove empty)

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

Block 6 - Get last message

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

Block 7 - Filter (Remove Old)

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

Block 8 - Filter (Messages with mentions)

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

Block 9 - Filter (Authorized User)

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

Block 10 - Filter (Messages mentioning bot)

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

Block 11 - HTTP Request

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 12 - Clean Message

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

Block 13 - Remove Duplicates

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

Block 14 - Remove Duplicates1

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

Block 15 - It

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

3. Summary Table

Workflow 🤖 Discord message proxy: Bot mentions → AI actions
Complexity advanced
Nodes 15
Categories AI Chatbot
Author David Ashby
Published 21 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4264/4264.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 🤖 Discord message proxy: Bot mentions → AI actions do?

Need help? Want access to this workflow + many more paid workflows + live Q&A sessions with a top verified n8n creator? [Join the community](https://www.skool.com/beyond nodes automation lab 2006/a...

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 AI Chatbot use case.