Skip to content
AI Agents

Process Slack Messages with AI and Send Responses via Gmail

15 nodes 519 201 Automatic trigger
Download

Loading workflow…

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 Code OpenAI Vector Store LLM Chain Chat Trigger Gmail If Webhook

Details

Trigger Automatic trigger
Nodes 15
Apps 9
Views 519
Downloads 201

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