AI Inbox Assistant

Personal build

n8nGeminiGmail APIGoogle Sheets

n8n workflow that sorts incoming Gmail with Gemini, archives spam, logs every email and drafts replies for sales and support.

Featured image for AI Inbox Assistant

Overview

An n8n workflow that automatically classifies incoming Gmail emails using Gemini, then takes action by archiving spam, logging summaries in Google Sheets, or generating replies for sales and support emails.

The Problem

Businesses waste hours daily sorting emails, missing urgent support requests or sales leads. Manual replies are inconsistent, and critical emails often get buried in spam.

Technical Solution

System Architecture

  • •n8n workflow with event-triggered Gmail API integration
  • •Gemini nodes for 2-stage processing: classification, then reply generation
  • •Google Sheets as a lightweight database for audit logs
  • •Conditional logic for email routing (spam/support/sales/other)

Tools

n8n, Gemini

Triggers

Gmail push notifications

Data Storage

Google Sheets

AI Inbox Assistant architecture diagram

Results & Impact

4

email routes: spam, support, sales, other

2-stage

Gemini: classify, then draft a reply

Sheets

log of every processed email

Lessons Learned

Prompt Engineering Matters

Fine-tuned Gemini prompts reduced misclassification errors.

n8n Limitations

Hit API rate limits with high email volumes, solved by adding delay nodes.

Sheets as a Database

Google Sheets sufficed for logging but would scale poorly at high volume.

Have a project in mind?

Book a quick discovery call, or send a message from the contact section on the home page.

Book a 15-Min Discovery CallOr send a message instead →

© 2026 Muhammad Saad. All rights reserved.