
Slack AI Assistant
Mentions in Slack answered with short, natural LLM replies.
Overview
A lightweight Slack bot on n8n that listens for channel mentions and app events, runs the message through a concise LLM chain with strict tone rules, and posts the reply back in-thread.
Problem
Teams want quick answers in Slack without opening another tool. Replies need to sound human and stay short — not like a generic chatbot essay.
Solution
Slack Trigger on app mention events, Basic LLM Chain with instructions for concise casual replies (no AI self-reference, no emoji spam), OpenAI model, Slack Send Message node returning text to the same channel.
Architecture
n8n Slack Trigger (app_mention + channel events), LangChain Basic LLM Chain with message template injecting `$json.text`, OpenAI chat model, Slack message node for response delivery.
Workflow
- 01 User mentions the bot in Slack
- 02 Trigger passes message text to LLM chain
- 03 Model returns a short natural reply
- 04 Bot posts response in the Slack channel
- 05 Rules keep tone casual and non-robotic
Results
- · Slack questions answered without leaving the channel
- · Replies stay short and human-sounding
- · No separate chat UI for simple team queries
- · Easy to extend with tools later if needed