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

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

Needs changes

by Theo Marcadet ✓ · 1,235 views · created 2025-04-24 · Support Chatbot, AI Chatbot

Needs changes. This template uses 2 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes), HTTP Request Tool (legacy). 2 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 11 nodes and runs when an HTTP GET request hits its webhook URL (plus 1 other trigger). Along the way it connects OpenAI Chat Model, Discord, HTTP Request and Discord Trigger (community).

How it runs

Trigger: When an HTTP GET request hits its webhook URL (plus 1 other trigger).

  1. Mapping data for the Agent (Edit Fields (Set)): sets or maps fields
  2. AI Agent: runs an AI agent, with model: OpenAI Chat Model; 2 tools (Read last public messages, Read last private messages); memory: Simple Memory
  3. Either the bot should reply in dm or in public channel (If): checks a condition and branches into true / false
  4. Reply in DM (Discord): uses Discord
  5. Reply in public channel (Discord): uses Discord

Services it uses

OpenAI Chat ModelDiscordHTTP RequestDiscord Trigger (community)

Before you upgrade to n8n 3.0

2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:

  • AI Agent v1 (old agent modes) in AI Agent (v1.8): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
  • HTTP Request Tool (legacy) in Read last private messages: replace with HTTP Request node connected to the AI Agent's Tool input.
Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI Agent (v1.8)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
HTTP Request Tool (legacy)
Read last private messages
HTTP Request node connected to the AI Agent's Tool input

Nodes used (10)

From the author

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…

Excerpt from Theo Marcadet's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.