AI Customer Support
A Gmail support assistant that classifies incoming email, answers routine questions from a curated knowledge base, and hands anything sensitive or uncertain to a person — with Python rules holding the final say.
- Focus
- AI Systems, Backend Engineering
- Core stack
- Python/FastAPI, Pydantic AI, Anthropic models, Supabase Postgres, Gmail API
- Dashboard
- React, TypeScript, Tailwind CSS, shadcn/ui
- Deployment
- Docker Compose (local)

Customer emails

Troubleshooting
A board losing air gets the valve-check steps from the guidance — and if that doesn’t fix it, the reply asks for the order number, board size and delivery date so a colleague can take over.

Handing off to a person
A refund demand isn’t answered by the AI: the customer gets a short acknowledgement and the thread is flagged in Gmail for the team.
How it decides
Decision pipeline for one email
Diagram
Escalates when
Outcome
Support dashboard

Tickets
Every conversation is recorded with its topic and outcome, so the team can see at a glance what was answered and what was escalated.

Processing history
Each incoming email is an event with its status, attempts and any error; failed events are retried up to three times, and the inbox can be checked on demand.

Knowledge base
The guidance the assistant reads — product details, policies, brand voice and the escalation rules themselves — is plain text the team can edit.