Emily case study

Emily AI Support Agent — Case Study | n8nstudio.tech
Case Study — AI Support Agent

Emily: AI Customer Support Agent
for ABC Plumbing & Drain

A fully autonomous inbound AI support agent handling calls, emails, and chat 24/7 — booking appointments, answering FAQs, and escalating only when truly needed.

Client: ABC Plumbing & Drain Services (via Agenify)
Industry: Plumbing / Home Services
Stack: n8n + Retell AI + GPT-4o-mini
Delivered: 9 days
100%
Pass rate across 150 test scenarios
9
Days from start to delivery
3
Input channels handled simultaneously
24/7
Autonomous operation

The Problem

ABC Plumbing & Drain was missing calls after hours, losing potential bookings to competitors who picked up the phone. Support emails were going unanswered for hours. The team had no system to handle high volumes of repetitive enquiries — service pricing, availability checks, appointment bookings — without burning staff time.

The client needed an agent that could handle all inbound communication channels, sound professional, check real calendar availability, book appointments, and only escalate genuine emergencies to human staff.

The Solution

I built Emily — a fully autonomous AI customer support agent running on n8n Cloud, powered by GPT-4o-mini as the LLM with Retell AI handling the voice layer. Emily operates across 3 channels simultaneously with smart routing and escalation logic built in.

📞 Voice Calls (Retell AI)
📧 Email (Gmail)
💬 Website Chat Widget

Tech Stack

Orchestration
n8n Cloud
AI / LLM
GPT-4o-mini (OpenAI)
Voice Layer
Retell AI
Memory / RAG
Supabase pgvector
Embeddings
Google Gemini
Calendar
Google Calendar
Email
Gmail
CRM Logging
Google Sheets

The Main Workflow

Emily’s core workflow handles all 3 channels — voice, email, and chat — routing each through dedicated preparation nodes before passing to the AI agent. The agent uses RAG knowledge retrieval, conversation memory, and tool calls to book appointments, check availability, and log every interaction.

Emily main workflow
Emily — AI Customer Support Agent: Voice + Email + Chat inputs → routers → AI agent → booking / escalation / response branches

Calendar Integration — Book & Check Availability

Emily has two dedicated sub-workflows for calendar management. One checks real-time availability against Google Calendar before offering time slots, and another books confirmed appointments directly — no double bookings, no manual intervention.

Emily check availability workflow
Check Availability — queries Google Calendar in real-time before offering slots to the customer
Emily book appointment workflow
Book Appointment — creates confirmed Google Calendar events automatically after customer confirms

Knowledge Base — Supabase RAG

A one-time setup workflow uploads all plumbing FAQs, pricing information, and privacy policies into Supabase as vector embeddings using Google Gemini. Emily queries this knowledge base on every interaction — giving accurate, consistent answers every time without hallucinating.

Emily Supabase knowledge base upload
Emily Supabase Upload — FAQ field, pricing field, and privacy policy uploaded as vector embeddings via Google Gemini

LLM Model Abstraction Layer

A dedicated sub-workflow dynamically fetches Emily’s active LLM configuration and routes to either Claude API or Grok API based on the config — normalizing the response into a unified format. This means the LLM can be swapped without touching the main workflow at all.

Emily LLM model abstraction layer
Emily LLM Model Abstraction Layer — fetches config → routes to Claude or Grok → normalizes response → unified output

How Emily Works

1
Customer contacts via any channel
Voice call, email, or website chat — each routed through a dedicated input normalizer.
2
Emergency vs normal routing
Each channel router detects emergency keywords and fast-tracks urgent calls to human staff immediately.
3
RAG knowledge retrieval
Supabase vector store queried for relevant FAQs, pricing, and policies — accurate answers every time.
4
Real-time availability check
Emily queries Google Calendar live before offering appointment slots — zero double bookings.
5
Appointment booking
Confirmed bookings created directly in Google Calendar with all customer details logged.
6
Logging & escalation
Every interaction logged to Google Sheets. Human agents notified only when escalation is genuinely needed.

Results & Capabilities

✅ 100% Test Pass Rate
Passed all 150 test scenarios covering bookings, FAQs, escalations, after-hours, and edge cases.
⚡ 9-Day Delivery
Fully built, tested, and delivered in 9 days from project start to client handover.
🕐 24/7 Coverage
Emily never misses a call or email — customers get instant responses at any hour.
📅 Real Calendar Booking
Live availability checks and direct Google Calendar booking — no manual scheduling needed.
🧠 RAG Knowledge Base
FAQs, pricing, and policies stored in Supabase — accurate answers without hallucination.
🔄 Swappable LLM
Model abstraction layer lets the LLM be changed from a single config — no code changes needed.

Want something like this?

I build custom AI agents and automation systems for businesses ready to scale without hiring.

Let’s Talk →
Scroll to Top