Create a Slack AI chatbot with threads & thinking UI using OpenRouter & Postgres
Ready for 3.0What this workflow does
This AI workflow has 8 nodes and runs on Slack events. Along the way it connects OpenRouter Chat Model, Slack and Postgres Chat Memory. It also calls slack.com over HTTP.
How it runs
Trigger: On Slack events.
- Check If User (If): checks a condition and branches into true / false
- Set Thinking Status (HTTP Request): calls slack.com (POST)
- AI Agent: runs an AI agent, with model: OpenRouter Chat Model; memory: Postgres Chat Memory
- Send Reply (Slack): uses Slack
Services it uses
HTTP calls to: slack.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Still check Slack Trigger requires a signing secret on the Slack API credential (On Message Received).
Nodes used (8)
- OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - AI Agent
@n8n/n8n-nodes-langchain.agent - No Operation, do nothing
n8n-nodes-base.noOp - Slack Trigger
n8n-nodes-base.slackTrigger - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Slack
n8n-nodes-base.slack - Postgres Chat Memory
@n8n/n8n-nodes-langchain.memoryPostgresChat
From the author
Overview Slack quietly released an update to their API that allows developers to build "AI Apps & Agents", which is a special classification of apps that have access to several special capabilities including: - Multiple simultaneous chat threads with one user…