AI Agents

Connect Slack with Gmail

39 nodes 213 113 Automatic trigger
Download

Workflow Description

Advanced automation template integrating Slack with Gmail through an intelligent AI agent powered by large language models. Receives messages from Slack, processes them using text processing and embedding techniques, and queries Gmail with conversation memory capabilities.

How it works

  1. 1.Receive message from Slack via Chat Trigger
  2. 2.Process and split text using Text Splitter
  3. 3.Generate embeddings and search Vector Store for relevant data
  4. 4.Analyze query through LLM Chain and execute appropriate actions
  5. 5.Send results and responses back to Slack

Use cases

  • Search Gmail messages intelligently through Slack without opening email client
  • Generate smart summaries of email messages and send them directly to Slack channels
  • Automate responses to team inquiries based on previous email conversation history

Requirements

  • Active Slack workspace with permissions to create apps and bot tokens
  • Gmail account with Gmail API enabled and proper access scopes configured
  • API keys for OpenAI or Anthropic models and Pinecone database for embeddings

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 213
Downloads 113

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