AI Agents

Intelligent Slack Message Analysis with Automated Gmail Responses

39 nodes 301 132 Automatic trigger
Download

Workflow Description

An AI-powered workflow that receives Slack messages, analyzes them using OpenAI and Anthropic models, searches a vector knowledge base, maintains conversation context, and automatically sends detailed responses via Gmail.

How it works

  1. 1.Capture incoming messages from specified Slack channels
  2. 2.Split and embed text into vector representations
  3. 3.Query vector database and retrieve relevant context
  4. 4.Generate intelligent response using AI agent with memory
  5. 5.Send formatted response to recipient via Gmail

Use cases

  • Automated customer support handling Slack inquiries with email follow-ups
  • Project documentation workflow triggering research and email summaries

Requirements

  • Active Slack workspace with bot permissions
  • Gmail account with send access enabled
  • OpenAI and Anthropic API keys configured
  • Pinecone vector database populated with reference documents

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 301
Downloads 132

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