artenis.alija
ende
Automation · Gmail API · Python6 min read5 February 2025

From 2 Hours of Email to 15 Minutes: An

A walkthrough of the Gmail automation system I built — triage, priority labelling, templated replies, and the edge cases that nearly broke it.

The client was spending two hours daily on email — reading, sorting, and replying to a high volume of inbound inquiries. Not all of it was reducible to automation. But a large portion was pattern-matching: the same 12 question types, 80% of which had a standard answer.

Phase one was classification. Fine-tuned a small classifier on 6 months of archived email, got to 91% accuracy on intent detection after three rounds of active learning. The output feeds into a routing system: sales inquiries go one place, support requests another, billing to a third queue.

Phase two was templated replies. For the high-confidence categories (confidence > 0.88), the system drafts a reply and drops it in a 'review' label. The client reads the draft, clicks send. The cognitive overhead drops from 'compose a reply' to 'approve or edit.' That's the leverage point.

Edge cases were the expensive part: multi-topic threads, sarcastic subject lines, emails that looked like category X but were actually category Y. Building a graceful fallback path — 'not sure, flag for human' — was as important as the happy path.

Work with me

Want this working in your business?

I build the automations I write about: AI agents, n8n workflows and integrations that save hours every week. Tell me what is slowing you down and I’ll show you what can be automated, free.

Or join the monthly newsletter and get my 6 n8n workflow templates free

One email at the start of each month. Nothing more.

Monthly newsletter: one email a month, never more, with free tools and occasional offers of my services. I may also send the odd update on WhatsApp; reply STOP to opt out. Unsubscribe with one click.

Citation

Artenis Alija. "From 2 Hours of Email to 15 Minutes: An Automation Case Study." 2025. https://artenisalija.com/blog/automating-your-inbox/

https://artenisalija.com/blog/automating-your-inbox/
Free monthly newsletter

One email a month with an AI automation you can use

Sent at the start of each month, never more often. Real workflows I build for clients, new free tools first, and the n8n templates behind them. Sign up now and get my 6 n8n workflow templates straight away.

Monthly newsletter: one email a month, never more, with free tools and occasional offers of my services. I may also send the odd update on WhatsApp; reply STOP to opt out. Unsubscribe with one click.