Discord AI ChatBot : Context-Aware, Replies to Mentions AND also DMs
[Click here to access this Workflow for free](https://www.bonzai.pro/auth?action=buyPrice%2CpriXVAx5246). --- Get your own custom ChatGPT inside your Discord Server  Description This n8n workflow...
Template notes
[Click here to access this Workflow for free](https://www.bonzai.pro/auth?action=buyPrice%2CpriXVAx5246).
---
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.
---