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

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

Needs changes

by Theo Marcadet ✓ · 282 views · created 2025-07-10 · Internal Wiki, AI Chatbot

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

What this workflow does

This AI workflow has 12 nodes and runs on Slack events. Along the way it connects Pinecone Vector Store, Embeddings OpenAI, Slack and OpenAI Chat Model.

How it runs

Trigger: On Slack events.

  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 (Think, Get the history of a channel in Slack); 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 to DM (Slack): uses Slack
  5. Reply to public mention (Slack): uses Slack
  6. Pinecone Vector Store: uses the Pinecone vector store, with embeddings: Embeddings OpenAI

Services it uses

Pinecone Vector StoreEmbeddings OpenAISlackOpenAI Chat Model

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in AI Agent1 (v1.8): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
  • Also check Slack Trigger requires a signing secret on the Slack API credential.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI Agent1 (v1.8)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (11)

From the author

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…

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.