AI Agents

Build an AI Agent in Slack Powered by Google Gemini

10 nodes 356 140 Webhook
Download

Workflow Description

This template creates an intelligent Slack agent that leverages Google Gemini to automatically respond to messages while maintaining conversation context through memory buffers. Messages flow through a webhook trigger and are processed via an AI-driven agent for contextual replies.

How it works

  1. 1.Receive messages from Slack channels via webhook trigger
  2. 2.Add message content to memory buffer to preserve conversation history
  3. 3.Send accumulated context to Google Gemini API for intelligent response generation
  4. 4.Execute agent actions based on Gemini's output and intent
  5. 5.Post the generated response back to the original Slack channel

Use cases

  • Automated customer support agent answering FAQs directly in Slack channels
  • Team assistant that researches and summarizes information within workspace conversations

Requirements

  • Active Slack workspace with permissions for webhooks and app integrations
  • Valid Google Gemini API key configured and authenticated
  • Proper Slack channel setup with message read and write permissions

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Gemini Memory Slack AI Agent

Details

Trigger Webhook
Nodes 10
Apps 4
Views 356
Downloads 140

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (10)

Sticky Note

Sticky Note

#1

Sticky Note2

Sticky Note

#2

Sticky Note3

Sticky Note

#3

Google Gemini Chat Model

Gemini Model

#4

Window Buffer Memory

Memory Buffer Window

#5

Sticky Note4

Sticky Note

#6

Sticky Note1

Sticky Note

#7

Send response back to slack channel

Slack

#8

Webhook to receive message

Webhook

#9

Agent

Agent

#10