Turn Slack posts into clear AI answers. Team members send a message and get a follow up reply in the same channel. Good for handling common support questions, internal FAQs, and quick coaching for agents.
An n8n Webhook receives a POST from Slack and forwards key fields to an AI Agent. The agent uses a Google Gemini chat model and a window buffer that stores conversation history. The session key comes from the Slack body token and keeps up to ten recent messages for context. Slack has a short response window, so the bot sends a fresh message that shows the original text and the AI result, with markdown removed for clean formatting. This design supports fast replies without blocking Slack.
Use a public https webhook URL, connect your Slack app, and add your Google Gemini API key in n8n. Map channel id, user name, and text from the incoming payload, and leave memory set to ten to balance context and cost. Expect faster first replies, less repetitive typing, and better triage in channels that handle many requests every day. Many teams cut first response time from minutes to seconds and keep a steady tone across threads.