Skip to content
← back to projects
2026·shipped·Sole developer

AI Support Agent for Online Stores

Answers order-status, shipping and returns questions from real store data, and hands anything involving money or judgment to a person with a summary.

PythonFastAPIReactRAGOllama
Admin transcript of a refund request: the assistant verified the order, then handed off to a person with a summary

Architecture

Support agent
Tool calling
↓ calls out to
lookup_order
Read-only store API
search_help_center
Policies + catalog
hand_off_to_human
With a summary
Admin dashboard
Handoffs, gaps, transcripts

Highlights

  • Order lookups need the order number and the matching email; wrong email and unknown order give the same response, and failed lookups are capped.
  • Policy answers come from the store's own documents with sources shown; questions it couldn't answer are logged for the team.
  • One script tag adds the chat widget to any site, rendered in a Shadow DOM so styles can't clash. The same agent also runs as a Telegram bot.
  • Runs on free local models through Ollama, or any OpenAI-compatible API.

The problem#

Most store support is the same few questions: where is my order, how do returns work, does this ship to me. Those are answerable from data the store already has. Refunds, damaged items and complaints are not, and a bot that improvises on them costs money.

The design choice#

The assistant has no tools that change orders or money. It can look up an order, search the store’s policies and catalog, and hand off to a person. That restriction is enforced in code, not in the prompt, so no instruction from a customer can widen it.

Each handoff arrives with a category and a short summary, so nobody rereads the chat. Questions the policies couldn’t answer are listed in the dashboard, which tells the store exactly what to add to its help content.

Status and limits#

A portfolio build against a fictional store, with a Shopify adapter and a demo store. On a laptop without a GPU, local models take 20 to 60 seconds per reply; hosted models answer in a few seconds.

The 2-minute demo shows an order lookup, a refund handed to a person, and the admin dashboard.

Write-ups