← All work
04 Backend · AI

Customer Support Agent

A support assistant for a fictional online store. It helps with order tracking, cancellations and returns, answers policy questions from the store's documentation, and hands complex cases to a person.

Role
Backend developer
Team
Solo
Status
Live
Links
Live demo ↗ · Code ↗
support-assistant · onrender.com
Customer support demo with scenarios and chat
The demo workspace: preloaded scenarios on the left (cancel a processing order, refuse a cancellation after shipping, refund under the limit, escalate a refund over €500), each running against the live chat on the right.

01Overview

  • Customers chat with the assistant about their orders. It can look orders up and act on them through a fixed set of tools.
  • Questions about the store's policies are answered from its documentation, and cases it shouldn't handle alone are escalated to a human.

02What I built

  • A FastAPI backend where the assistant, using the OpenAI API, works through typed tools instead of accessing the database directly.
  • Refund rules kept in code rather than left to the model.
  • RAG over the store's policy documents with ChromaDB, order data in SQLite, and a Docker setup for deployment.

03Stack

  • Python
  • FastAPI
  • OpenAI API
  • RAG
  • ChromaDB
  • SQLite
  • Docker