Slack 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%2CprizmMq5350). --- Get your own custom ChatGPT inside your Slack Workspace  Description This n8n workflo...
Template notes
[Click here to access this Workflow for free](https://www.bonzai.pro/auth?action=buyPrice%2CprizmMq5350).
---
Get your own custom ChatGPT inside your Slack Workspace 
Description This n8n workflow enables a fully autonomous AI assistant within your Slack Workspace. It listens for both public mentions and direct messages (DMs), and replies in real-time using a large 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 20 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.
---