π€ Discord Message Proxy: Bot Mentions β AI Actions
Last edited 10 days ago
π 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!
You may also like
New to n8n?
Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!