n8n

How to Automate Slack AI Team Support?

Give your team quick answers inside Slack without switching apps. A Slack message is sent to an AI agent, and the reply is posted back into the same channel. Great for help desk questions, policy lookups, or quick guidance for sales and operations.

Here is how it flows. Slack sends a POST request to a secure webhook path. The AI agent uses a fast Gemini model to understand the message. A short chat memory keeps up to 10 recent exchanges, so the bot stays on topic. The agent creates a clean reply and the Slack node posts it to the channel, including the original user and text for clarity. Because Slack expects a response in about three seconds, the workflow posts a new message instead of waiting on the webhook.

Setup is simple with a Slack app and a Google AI Studio API key. Expect faster answers, fewer repeated questions, and less context switching. Teams can use it for IT support, HR policy FAQs, or project updates. Start with default settings, then adjust the model or add tools to fit your needs.

What are the key features?

  • Secure POST webhook endpoint to receive Slack messages at a public https URL
  • Google Gemini model set to gemini 1.5 flash for fast responses
  • Window buffer memory stores the last 10 turns for context continuity
  • AI agent orchestrates model and memory to produce a clear answer
  • Slack node posts the response into the original channel with the user and text reference
  • Asynchronous send to meet Slack’s three second response window
  • Dynamic channel targeting using the incoming channel_id value

What are the benefits?

  • Cut average reply time from minutes to seconds by answering directly in Slack
  • Automate up to 60% of routine questions with AI generated responses
  • Keep context for up to 10 recent messages to improve answer quality
  • Connect Slack and Google Gemini without custom code
  • Reduce copy and paste errors by posting replies straight to the right channel

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Slack and Google AI Studio. See the Tools Required section above for links to create accounts with these services.
  3. Open the Webhook node and copy the Production URL. Make sure your n8n instance is reachable over https so Slack can call it.
  4. In your Slack API dashboard, create or open a Slack app. Add the Slash Commands feature and set the Request URL to the webhook Production URL that ends with /slack-bot.
  5. In the same Slack app, add scopes like chat:write and commands, then install the app to your workspace to get a Bot User OAuth Token.
  6. In n8n, double click the Slack node, then on the 'Credential to connect with' dropdown, click 'Create new credential' and follow the on screen instructions to connect your Slack app.
  7. Create an API key in Google AI Studio. In n8n, open the Google Gemini node, choose 'Create new credential', and paste the API key when prompted.
  8. Confirm the Memory node keeps session context. It is already set to store up to 10 messages, which helps the agent stay on topic.
  9. Save the workflow and click Execute test. In Slack, run your slash command and send a sample question. You should see the bot post a new message in the same channel.
  10. If Slack shows a timeout or no reply, ensure your webhook URL is https and publicly reachable, and verify both Slack and Google credentials are connected in n8n.
  11. Check that the Slack node uses the incoming channel_id so replies go to the right place. Test in another channel to confirm dynamic routing works.
  12. Turn the workflow Active so it runs continuously. Monitor the execution list in n8n for any errors and adjust model or memory settings as needed.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Google AI Studio

Sign up

Free tier: $0 via Gemini API (lower rate limits). Cheapest paid: Gemini 2.5 Flash-Lite at $0.10/1M input tokens and $0.40/1M output tokens; Embeddings at $0.15/1M tokens (USD).

Slack

Sign up

Free plan: $0 / mo; limited to 10 apps (third-party or custom) and usable via Slack API

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.