This project is an AI-powered email automation workflow built with n8n and Groq AI. It automatically classifies incoming emails into business categories and generates intelligent responses.
The system is designed to help companies manage large volumes of emails efficiently, reducing manual work and ensuring faster responses to customers.
Companies often receive many types of emails such as:
- Technical support requests
- Sales inquiries
- Billing questions
- Customer complaints
Manually reading and sorting these emails can take a significant amount of time.
This workflow automates the process by using AI to:
- Detect new incoming emails
- Extract the message content
- Classify the email category using AI
- Store the information in a database (Google Sheets)
- Generate an automatic response using AI
- Send the reply to the customer
New Email (Gmail)
↓
Extract Email Data
↓
AI Email Classification (Groq)
↓
Save Data to Google Sheets
↓
Switch by Category
↓
AI Generates Response
↓
Automatic Reply Sent via Gmail
The AI classifies emails into the following categories:
- Support – technical issues or help requests
- Sales – customers interested in products or services
- Billing – invoices, payments, or financial questions
- Complaints – dissatisfaction or service issues
- n8n – workflow automation platform
- Groq API – AI model for classification and response generation
- Gmail API – email trigger and automatic responses
- Google Sheets – data storage for classified emails
- Automatic email classification
- AI-generated professional responses
- Email logging in Google Sheets
- Department-based routing
- Fully automated workflow
Example email received:
Hello,
I am having trouble accessing my account and I keep receiving an error message when trying to log in.
Could you please help me resolve this issue?
AI classification result:
support
The system then:
- Logs the email in Google Sheets
- Generates a support response
- Sends the reply automatically to the customer



