AI Agents

Process Slack Messages with AI Agent and Send Gmail Replies

39 nodes 297 146 Automatic trigger
Download

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 Text Splitter OpenAI Document Default Data Loader Vector Store LLM Chain Anthropic HTTP Request AI Agent Memory Chat Trigger Gmail If

Details

Trigger Automatic trigger
Nodes 39
Apps 13
Views 297
Downloads 146

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

/

Send message

Slack

#1

Sticky Note2

Sticky Note

#2

Sticky Note

Sticky Note

#3

Execute JavaScript

Code

#4

Sticky Note3

Sticky Note

#5

Recursive Character Text Splitter

Text Splitter Recursive Character Text Splitter

#6

Embeddings OpenAI

OpenAI

#7

Default Data Loader

Document Default Data Loader

#8

OpenAI Chat Model

OpenAI

#9

Embeddings OpenAI2

OpenAI

#10

Vector Store Retriever

Retriever Vector Store

#11

Download PDF

HTTP Request

#12

PDFs to download

No Op

#13

Sticky Note4

Sticky Note

#14

Sticky Note5

Sticky Note

#15

Read Pinecone Vector Store

Vector Store Pinecone

#16

Question and Answer Chain

Chain Retrieval Qa

#17

Sticky Note6

Sticky Note

#18

Sticky Note7

Sticky Note

#19

Anthropic Chat Model

Lm Chat Anthropic

#20

Get calendar availability

HTTP Request

#21

Appointment booking agent

Agent

#22

Sticky Note1

Sticky Note

#23

Window Buffer Memory

Memory Buffer Window

#24

Sticky Note8

Sticky Note

#25

Sticky Note9

Sticky Note

#26

Sticky Note10

Sticky Note

#27

Insert into Pinecone vector store

Vector Store Pinecone

#28

Book appointment

HTTP Request

#29

When chat message received

Chat Trigger

#30

Sticky Note11

Sticky Note

#31

Sticky Note12

Sticky Note

#32

OpenAI Chat Model1

OpenAI

#33

Add automation label

Gmail

#34

On new email to nathan's inbox

Gmail

#35

Add music label

Gmail

#36

Assign label with AI

If

#37

Webhook

Webhook

#38

Whether email contains n8n

If

#39