Automated email classification & response system with Groq AI and Pinecone
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
Nodes used (16)
- Email Trigger (IMAP)
n8n-nodes-base.emailReadImap - Switch
n8n-nodes-base.switch - Code
n8n-nodes-base.code - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq - X (Formerly Twitter)
n8n-nodes-base.twitter - Pinecone Vector Store
@n8n/n8n-nodes-langchain.vectorStorePinecone - Embeddings Cohere
@n8n/n8n-nodes-langchain.embeddingsCohere - Manual Trigger
n8n-nodes-base.manualTrigger - HTTP Request
n8n-nodes-base.httpRequest - Extract from File
n8n-nodes-base.extractFromFile - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - Send Email
n8n-nodes-base.emailSend - AI Agent
@n8n/n8n-nodes-langchain.agent - Sentiment Analysis
@n8n/n8n-nodes-langchain.sentimentAnalysis
What it does
📝 Description This workflow helps automatically classify incoming emails using a combination of conditional logic and minimal AI-based classification. The system checks email content, performs sentiment analysis, uses OpenAI for categorization, and routes emails accordingly — with smart but efficient use of LLMs and AI Agents. ⚙️ How it works Trigger: An IMAP Email Trigger initiates the workflow upon receiving a new email. Code Block: Parses essential data from the email. Switch Node: Routes emails based on classification. LLM Chain: Processes specific email cases (e.g., inquiries or complaints). AI Agent (Minimal): Used only when other methods cannot determine intent. Email Responses: Sends tailored replies or routes to support/sales teams accordingly. Sentiment Analysis: Assists with tone evaluation for better response routing. 🧩 Set up steps Estimated setup time: 10–15 minutes You’ll need: An IMAP-compatible email account OpenAI or any compatible LLM provider Pinecone (optional, for vector memory) SMTP credentials for sending email Replace placeholder credentials in sticky notes before running.