Connect Slack with Gmail
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.Receive message from Slack via Chat Trigger
- 2.Process and split text using Text Splitter
- 3.Generate embeddings and search Vector Store for relevant data
- 4.Analyze query through LLM Chain and execute appropriate actions
- 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
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (39)
Send message
Slack
Sticky Note2
Sticky Note
Sticky Note
Sticky Note
Execute JavaScript
Code
Sticky Note3
Sticky Note
Recursive Character Text Splitter
Text Splitter Recursive Character Text Splitter
Embeddings OpenAI
OpenAI
Default Data Loader
Document Default Data Loader
OpenAI Chat Model
OpenAI
Embeddings OpenAI2
OpenAI
Vector Store Retriever
Retriever Vector Store
Download PDF
HTTP Request
PDFs to download
No Op
Sticky Note4
Sticky Note
Sticky Note5
Sticky Note
Read Pinecone Vector Store
Vector Store Pinecone
Question and Answer Chain
Chain Retrieval Qa
Sticky Note6
Sticky Note
Sticky Note7
Sticky Note
Anthropic Chat Model
Lm Chat Anthropic
Get calendar availability
HTTP Request
Appointment booking agent
Agent
Sticky Note1
Sticky Note
Window Buffer Memory
Memory Buffer Window
Sticky Note8
Sticky Note
Sticky Note9
Sticky Note
Sticky Note10
Sticky Note
Insert into Pinecone vector store
Vector Store Pinecone
Book appointment
HTTP Request
When chat message received
Chat Trigger
Sticky Note11
Sticky Note
Sticky Note12
Sticky Note
OpenAI Chat Model1
OpenAI
Add automation label
Gmail
On new email to nathan's inbox
Gmail
Add music label
Gmail
Assign label with AI
If
Webhook
Webhook
Whether email contains n8n
If