Slack chatbot powered by AI
Needs changesWhat this workflow does
This AI workflow has 9 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI Chat Model, SerpApi (Google Search), Wikipedia and Slack.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Is user message? (If): checks a condition and branches into true / false
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; 2 tools (SerpAPI, Wikipedia); memory: Simple Memory
- Slack: uses Slack
Services it uses
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.
- SerpApi (Google Search) in SerpAPI: no direct replacement: call the SerpApi REST API with an HTTP Request tool, or use a verified community node.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace 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. |
| SerpApi (Google Search) SerpAPI | No direct replacement: call the SerpApi REST API with an HTTP Request tool, or use a verified community node |
Nodes used (9)
- AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - If
n8n-nodes-base.if - No Operation, do nothing
n8n-nodes-base.noOp - SerpApi (Google Search)
@n8n/n8n-nodes-langchain.toolSerpApi - Wikipedia
@n8n/n8n-nodes-langchain.toolWikipedia - Slack
n8n-nodes-base.slack - Webhook
n8n-nodes-base.webhook
From the author
This workflow offers an effective way to handle a chatbot's functionality, making use of multiple tools for information retrieval, conversation context storage, and message sending. It's a setup tailored for a Slack environment, aiming to offer an…