AI Email Automation hero

AI Email Automation

An AI agent that reads inbound emails, pulls context from a knowledge base, and drafts replies for review — cutting inbox management from hours to minutes.

Client Overview

Early-Stage B2B SaaS Founder

Public safety SaaS selling to law enforcement agencies. The founder ran sales himself and handled every campaign reply, with no dedicated email rep on the team yet.

Problem

Outbound campaigns brought in more replies than one person could handle. Every reply went to the founder no matter the intent, and each was written from scratch with no templates.

Solution

An intent-routed RAG draft engine that writes directly into Gmail

  • Classifies each reply as an objection, meeting request, question, or out-of-office before retrieval
  • Pulls the right context every time, grounded in the actual product knowledge base
  • No hallucinated claims and no generic responses
  • A Drive ingestion pipeline keeps the vector store current automatically

Outcomes

Inbox management dropped from hours to minutes

  • The founder approves ready-made drafts instead of composing every reply
  • Outbound can scale without treating replies as a hiring problem
  • Less cognitive load on the founder

Tech Stack

n8n orchestrates two workflows: reply pipeline and document ingestion.

n8n

Orchestration — reply pipeline and Drive ingestion workflow

OpenAI API

Intent classifier and draft generator

Gmail API

Inbox trigger and draft creation on the original thread

Google Calendar API

Real-time availability lookup for meeting-request drafts

Google Drive API

Documents uploaded here are automatically ingested into the vector database

Supabase + PGVector

Vector database for semantic retrieval and run tracking

Project Walkthrough