Skip to content
AI Agents

Process Slack Messages with AI Agent and Send Gmail Replies

15 nodes 548 187 Automatic trigger
Download

Loading workflow…

Workflow Description

Advanced automation that receives messages from Slack, processes them through an AI agent powered by large language models, searches a vector database for relevant information, maintains conversation memory, and automatically sends contextual replies via Gmail.

How it works

  1. 1.Receive incoming message from Slack channel or direct message
  2. 2.Split and process text using intelligent language model
  3. 3.Search vector database for relevant documents and context
  4. 4.Generate intelligent response using AI agent with conversation memory
  5. 5.Send formatted reply via Gmail to specified recipient

Use cases

  • Automatically respond to customer inquiries from Slack with contextually-aware answers using a knowledge base
  • Archive conversations and summaries to official email while maintaining continuity of support
  • Analyze internal team questions and provide immediate answers based on organizational knowledge base

Requirements

  • Slack workspace with bot token and message reading permissions
  • Gmail account with API access and send message permissions
  • API keys for OpenAI and/or Anthropic language models
  • Vector database (Pinecone or similar) indexed with relevant company documentation

Service Value

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

Apps Used

Slack Code OpenAI Vector Store LLM Chain Chat Trigger Gmail If Webhook

Details

Trigger Automatic trigger
Nodes 15
Apps 9
Views 548
Downloads 187

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 (15)

/

Send message

Slack

#1

Sticky Note2

Sticky Note

#2

Sticky Note

Sticky Note

#3

Execute JavaScript

Code

#4

Sticky Note3

Sticky Note

#5

OpenAI Chat Model

OpenAI

#6

Embeddings OpenAI2

OpenAI

#7

Vector Store Retriever

Retriever Vector Store

#8

Sticky Note4

Sticky Note

#9

Sticky Note5

Sticky Note

#10

Read Pinecone Vector Store

Vector Store Pinecone

#11

Question and Answer Chain

Chain Retrieval Qa

#12

Sticky Note6

Sticky Note

#13

Sticky Note7

Sticky Note

#14

Sticky Note1

Sticky Note

#15

Sticky Note8

Sticky Note

#16

Sticky Note9

Sticky Note

#17

Sticky Note10

Sticky Note

#18

When chat message received

Chat Trigger

#19

Sticky Note11

Sticky Note

#20

Sticky Note12

Sticky Note

#21

OpenAI Chat Model1

OpenAI

#22

Add automation label

Gmail

#23

On new email to nathan's inbox

Gmail

#24

Add music label

Gmail

#25

Assign label with AI

If

#26

Webhook

Webhook

#27

Whether email contains n8n

If

#28
Stay in the loop

Fresh workflows, straight to your inbox

Get newly published DROPIDEA workflows, a clear overview of what they do, and a link to explore them.

  • New workflows
  • Clear overviews
  • Setup guides

Be first to discover what is new

Your name, your email, and one confirmation.

Email confirmation · Unsubscribe anytime