Case Study
AI Customer-Support Email Agent
A retrieval-augmented agent that turns a support inbox into reviewed, ready-to-send draft replies
Project Overview
Built for a busy customer-support inbox, this agent reads each incoming email, figures out who the customer is, retrieves the right answer from the brand's own FAQ knowledge base, and writes a polished reply — saved as a draft for a human to review and send. It pairs a real RAG pipeline (vector search over embedded FAQs) with the system of record, so replies are both accurate and personal.
The Challenge
Problem: A high volume of repetitive support questions (enrollment, schedules, policies) was eating hours every week, and answer quality drifted depending on who replied. The goal was to handle the repetitive 80% instantly and on-brand — without ever auto-sending a machine-written email to a customer.
How it works
Triggered by the email itself, the agent grounds every reply in the customer record and the FAQ knowledge base before drafting.
Technical Implementation
Retrieval-Augmented Generation (RAG)
Brand FAQs and policies are embedded with Cohere and stored in a Pinecone vector database. For every email, the most relevant passages are retrieved and fed to the model, so answers are grounded in real source material rather than guessed.
Context Pre-Fetch from the System of Record
Before the model runs, the workflow normalises the sender's address and looks up their enrollment record in Google Sheets, so the reply already knows who the customer is and what they signed up for.
On-Brand Drafting with Gemini
A Google Gemini agent composes the reply in the studio's tone of voice, using the retrieved FAQ context and the customer's record as grounding.
Human-in-the-Loop by Design
Nothing is sent automatically. Every response is saved as a labelled Gmail draft, so a person reviews and sends with one click — keeping quality control and a human signature on every message.
Key Features
- Reads every inbound support email automatically
- Identifies the customer and pulls their enrollment record
- Retrieves the best-matching FAQ answers from a vector store
- Drafts a polished reply in the brand's voice
- Saves it as a labelled Gmail draft for one-click review
- Leaves edge cases for a human instead of guessing
Interested in similar automation?
Let's discuss how I can help automate your marketing workflows and analytics reporting.
Impact
Technologies Used
Business Value
- Faster first-response times on support email
- Consistent, on-brand answers every time
- No email slips through the cracks
- Staff time refocused on genuinely tricky cases