π« Automated email classification & response system with Groq AI and Pinecone
β‘ 1,024 views Β· π« Ticket Management & Triage
π‘ Pro Tip β Twitterβs API is paid now, which makes simple data pulls expensive. ScraperNode is a community node that scrapes Twitter profiles and posts without needing API access.
Description
π 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.
π Nodes Used
Email Trigger (IMAP), Send Email, HTTP Request, X (Formerly Twitter), AI Agent, Basic LLM Chain
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File