AI Agents

Process Slack Messages with AI and Send Responses via Gmail

39 nodes 316 162 Automatic trigger
Download

Workflow Description

Intelligent automation that receives messages from Slack, analyzes them using advanced language models (OpenAI and Anthropic), and generates tailored responses sent through Gmail. The workflow supports document retrieval and contextual data to ensure accurate answers.

How it works

  1. 1.Receive message from Slack channel or direct message
  2. 2.Split text and convert to numerical embeddings using OpenAI
  3. 3.Search Pinecone vector database for relevant documents
  4. 4.Pass context and message to language model (OpenAI or Anthropic) to generate intelligent response
  5. 5.Send generated response through Gmail to the intended recipient

Use cases

  • Automate replies to frequent customer inquiries from Slack with documented record via email
  • Multi-channel support: immediate conversation in Slack with formal Gmail documentation of responses
  • Process attachments and documents sent in Slack and deliver analysis reports via email

Requirements

  • Active Slack workspace with message access permissions
  • Gmail account with API credentials or authentication token
  • API keys for OpenAI and/or Anthropic language models
  • Pinecone vector database configured for document similarity search

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 316
Downloads 162

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