Templates / Create a Slack AI chatbot with threads & thinking UI using OpenRouter & Postgres

Create a Slack AI chatbot with threads & thinking UI using OpenRouter & Postgres

Ready for 3.0

by James Francis ✓ · 4,067 views · created 2025-07-07 · Support Chatbot, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What 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.

  1. Check If User (If): checks a condition and branches into true / false
  2. Set Thinking Status (HTTP Request): calls slack.com (POST)
  3. AI Agent: runs an AI agent, with model: OpenRouter Chat Model; memory: Postgres Chat Memory
  4. Send Reply (Slack): uses Slack

Services it uses

OpenRouter Chat ModelSlackPostgres Chat Memory

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)

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…

Excerpt from James Francis'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.