AutomationMart
Home/Browse/Slack AI ChatBot : context-aware, replies to mentions AND also DMs
n8n

Slack AI ChatBot : context-aware, replies to mentions AND also DMs

n8nn8n12 modulesv1.0
SlackOpenAITelegram

Click here to access this Workflow for free. --- 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

At a glance

Slack AI ChatBot : context-aware, replies to mentions AND also DMs is a ready-made n8n workflow you import as a workflow JSON file β€” no build required. It connects Slack, OpenAI, Telegram. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Slack, OpenAI, Telegram
Modules
12
Price
Free
Version
v1.0
Slack AI ChatBot : context-aware, replies to mentions AND also DMs workflow diagram

About this workflow

Click here to access this Workflow for free. --- 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. --- βœ… Requirements - An operational n8n instance. - A Slack workspace (you can create one for free here) - A Slack account with Admin or Owner privileges (required to install apps) --- 🧰 Setup Instructions Slack Bot Setup - Create a Slack App with the necessary permissions and configurations > You will find in the next step a complete tutorial to craft your own bot with the right confirguration and permissions for this workflow to work - Set your Slack bot token in n8n's credential manager. --- πŸ€– How It Works - When a public mention is detected, the bot replies directly in the channel, referencing the original message. - When a DM is received, it responds privately. - The AI uses a tool to read the latest 20 public or private messages to build accurate context before replying. --- πŸ›  Customization Options - Change LLM: Swap out OpenAI with any LLM that has an API. - Edit Prompt Behavior: Modify the system prompt to control tone and personality. --- If you just need a tutorial on setting up your Slack bot, be my guest ➑️ Here --- And if you need any help, or have any question, feel free to come discuss about it on Telegram

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n β†’ click the menu β†’ Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Create a session-based Telegram chatbot with GPT-4o-mini and Google Sheets

How It Works This workflow creates an AI-powered Telegram chatbot with session management, allowing users to: - Start new conversations (/new). - Check current sessions (/current). - Resume past sessions (/resume). - Get summaries (/summary). - Ask questions (/question). Key Components: - Session Management: - Uses Google Sheets to track active/expired sessions (storing SESSION IDs and STATE). - /new creates

Free

Create new users in When I Work from new users in Slack

This template periodically checks for new users in Slack and uses the retrieved information to create new users in When I Work. The template is scheduled to run every 15 minutes. You can change the schedule after you set up the template.

Free

Generate responses using Perplexity AI and ChatGPT and send them via Telegram

Automatically generate responses using Perplexity AI and ChatGPT then send them via Telegram. Enhance communication by integrating AI-driven replies directly into your Telegram chats.

Free

Update a row in Google Sheets for every ChatGPT completion from a custom webhook

Use this template to log every ChatGPT completion in Google Sheets from received custom webhook data. Streamline data tracking and analysis with this integration.

Free

Automate customer support issue resolution using AI text classifier

This n8n template is designed to assist and improve customer support team member capacity by automating the resolution of long-lived and forgotten JIRA issues. How it works Schedule Trigger runs daily to check for long-lived unresolved issues and imports them into the workflow. Each Issue is handled as a separate subworkflow by using an execute workflow node. This allows parallel processing. A report is generated from the issue using its comment history allowing the issue to be classified by

Free

Send a Slack message from a closed Salesforce opportunity

Use this template to send a Slack message to a channel or a user when a Salesforce opportunity is closed.

Free

AI-powered file management automation for Google Drive with MCP

This workflow contains community nodes that are only compatible with the self-hosted version of n8n. πŸ“ Google Drive MCP Workflow – AI-Powered File Management Automation πŸš€ 🧠 Overview A secure and intelligent n8n workflow that connects with Google Drive via MCP (Model Control Protocol). Ideal for AI agent tasks, compliance-driven storage, and document automation. 🌟 Key Features πŸ”’ Built-In Safety Backs up files before edits (timestamped) Supports rollback using file history Validates file size, ty

Free

AI orchestrator: dynamically selects models based on input type

This workflow is designed to intelligently route user queries to the most suitable large language model (LLM) based on the type of request received in a chat environment. It uses structured classification and model selection to optimize both performance and cost-efficiency in AI-driven conversations. It dynamically routes requests to specialized AI models based on content type, optimizing response quality and efficiency. --- Benefits Smart Model Routing: Reduces costs by u

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint β€” instant download
  • Setup guide PDF included
  • 5 downloads Β· valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

β‚Ή2,499/ session
3 hrs Β· video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free