Process Slack Messages with AI and Send Responses via Gmail
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.Receive message from Slack channel or direct message
- 2.Split text and convert to numerical embeddings using OpenAI
- 3.Search Pinecone vector database for relevant documents
- 4.Pass context and message to language model (OpenAI or Anthropic) to generate intelligent response
- 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
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 (15)
Send message
Slack
Sticky Note2
Sticky Note
Sticky Note
Sticky Note
Execute JavaScript
Code
Sticky Note3
Sticky Note
OpenAI Chat Model
OpenAI
Embeddings OpenAI2
OpenAI
Vector Store Retriever
Retriever Vector Store
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
Sticky Note1
Sticky Note
Sticky Note8
Sticky Note
Sticky Note9
Sticky Note
Sticky Note10
Sticky Note
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
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