The Inbox Problem
You get 50–100 emails per day. Half are spam, a quarter need replies, and the rest are FYIs you'll never read. You spend 2–3 hours daily in your inbox, and still miss important messages.
For a Nigerian business owner billing ₦10,000/hour, that's ₦20,000–₦30,000/day in email management. Monthly? ₦600,000 of your time spent reading and replying.
Smart filters and AI auto-replies can cut that by 70%. Here's how.
What Smart Email Automation Handles
| Email Type | Volume | Current Handling | Automated |
|---|---|---|---|
| Customer support | 15/day | Manual reply | AI auto-response |
| Sales inquiries | 8/day | Manual qualification | AI pre-qualify + schedule |
| Invoice/payment queries | 5/day | Manual check + reply | Auto-lookup + reply |
| Newsletter/product updates | 20/day | Read or delete | Auto-archive, weekly digest |
| Meeting requests | 4/day | Back-and-forth | Calendar link auto-reply |
| Spam / cold outreach | 15/day | Delete | Auto-archive |

Gmail Native Filters (Start Here)
Before adding AI, set up Gmail's built-in filters. These handle 60% of the problem for free.
Essential Filter Setup
Go to Gmail → Settings → Filters and Blocked Addresses → Create a new filter.
| Filter Purpose | From | Subject Contains | Action |
|---|---|---|---|
| Auto-archive newsletters | *news@, *noreply@, *updates@ | — | Skip Inbox, label "Newsletters" |
| Flag payment emails | paystack.com, flutterwave.com | payment, receipt | Label "Payments", Star it |
| Priority client emails | @clientdomain.com | — | Label "VIP", Star it |
| Auto-delete spam patterns | — | unsubscribe, limited offer | Delete it |
| Meeting invites | calendar.google.com, calendly.com | — | Label "Meetings" |
Create Filters via Google Apps Script
For bulk filter creation:
function createGmailFilters() {
const filters = [
{ from: 'noreply@', action: 'archive', label: 'Automated' },
{ from: 'news@', action: 'archive', label: 'Newsletters' },
{ from: '@paystack.com', action: 'label', label: 'Payments' },
{ subject: 'invoice', action: 'star', label: 'Invoices' }
];
// Gmail API filter creation
filters.forEach(f => {
Gmail.Users.Settings.Filters.create({
criteria: { from: f.from, query: f.subject ? 'subject:' + f.subject : '' },
action: { addLabelIds: [getLabelId(f.label)], removeLabelIds: ['INBOX'] }
}, 'me');
});
}
AI-Powered Auto-Replies
Gmail's canned responses are static. AI auto-replies understand context and generate relevant responses.
Architecture: Gmail → n8n → Groq → Gmail
New Email Arrives
→ Gmail forwards to n8n webhook
→ n8n extracts sender, subject, body
→ Groq classifies intent (support / sales / billing / other)
→ Groq generates appropriate reply
→ n8n sends draft reply via Gmail API
→ You review and approve (or auto-send for confidence > 90%)
The Classification Prompt
const classifyPrompt = `Classify this email into one category:
support — customer needs help with a product issue
sales — someone wants to buy or learn about pricing
billing — question about invoice, payment, or refund
meeting — requesting or confirming a meeting
spam — unsolicited cold outreach
other — anything else
Email from: ${sender}
Subject: ${subject}
Body: ${body.substring(0, 500)}
Reply with ONLY the category name.`;
The Auto-Reply Prompt
const replyPrompt = `You are the customer support agent for a Nigerian tech company.
A customer sent this email:
Subject: ${subject}
Body: ${body}
Write a professional, warm reply that:
1. Acknowledges their concern
2. Provides a helpful next step or answer
3. Includes relevant links if applicable
4. Is under 150 words
5. Signs off as "The [Company] Team"
Do NOT make up specific product details you don't know.`;
Smart Routing Rules
Based on classification, route emails differently:
| Classification | Auto-Action | Human Review? |
|---|---|---|
| Support (FAQ) | AI auto-reply | No (confidence >90%) |
| Support (complex) | AI draft reply | Yes — draft in Gmail |
| Sales | AI pre-qualify + send pricing | Yes — lead in CRM |
| Billing | Auto-lookup payment status + reply | No (if data available) |
| Meeting | Reply with Calendly link | No |
| Spam | Auto-archive | No |
| Other | Forward to you | Yes |
Setting Up Gmail Forwarding to n8n
- In Gmail Settings → Forwarding, add your n8n webhook URL
- Create a filter: "Only forward emails that match these criteria"
- Set criteria: exclude newsletters, spam, and automated emails
- n8n receives the email as a webhook payload
n8n Webhook Handler
// n8n Webhook Node configuration
{
"path": "/gmail-webhook",
"method": "POST",
"responseMode": "lastNode"
}
// Function Node — process incoming email
const email = $input.first().json;
const classification = await classifyEmail(email);
if (classification.confidence > 0.9 && classification.category !== 'other') {
// Auto-reply
const reply = await generateReply(email, classification);
await sendGmailReply(email, reply);
return { json: { status: 'auto-replied', category: classification.category } };
} else {
// Draft for human review
const draft = await generateReply(email, classification);
await createGmailDraft(email, draft);
await sendSlackAlert(email, classification);
return { json: { status: 'drafted', category: classification.category } };
}
Email Tool Comparison
| Tool | Auto-Classify | AI Reply | Cost | African Market Fit |
|---|---|---|---|---|
| Gmail + n8n + Groq | Yes | Yes | ₦0 | Excellent |
| Superhuman | Basic | No | ₦40,000/month | Overpriced |
| SaneBox | Yes | No | ₦10,000/month | Good for filtering |
| Missive | Basic | No | ₦0–₦18,000 | Good for teams |
| Front | Yes | No | ₦24,000/month | Good for shared inboxes |
Common Mistakes
| Mistake | Result | Fix |
|---|---|---|
| Auto-replying to everything | Embarrassing AI responses | Only auto-reply when confidence >90% |
| No sender whitelist | Clients get AI replies instead of you | Add VIP senders to a bypass list |
| Forgetting to check drafts | Important emails sit in drafts | Daily Slack summary of pending drafts |
| Too many filters | Important emails get misrouted | Start with 5 filters, add carefully |
| AI making up facts | Wrong prices, fake features | Add "do not fabricate" to all prompts |
After 2 weeks of running this system, most users report checking email only twice daily — morning and evening — instead of constantly. That's 2+ hours reclaimed every day.

