AI Agents

Connect Slack with Gmail

39 nodes 208 128 Automatic trigger
Download

Workflow Description

An advanced automation template that integrates Slack with Gmail using an intelligent AI agent. It receives messages from Slack, processes them with natural language capabilities, retrieves relevant information from email data, and sends smart responses directly to Slack channels.

How it works

  1. 1.Receive messages from Slack channels via Chat Trigger
  2. 2.Process and split text content using Text Splitter
  3. 3.Search email data using Vector Store and intelligent retrieval
  4. 4.Generate responses through an AI agent powered by OpenAI or Anthropic
  5. 5.Send responses back to Slack channels

Use cases

  • Answer team questions about email content without leaving Slack
  • Automatically extract and display email information when requested in Slack
  • Build a smart search engine linking Gmail data with real-time Slack interactions

Requirements

  • Active Slack workspace with app and channel permissions
  • Gmail account with access to messages and attachments
  • API keys for OpenAI or Anthropic
  • Vector database setup (Pinecone) for storing and retrieving embedded email data

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 208
Downloads 128

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