Skip to content
← All work

TicketAnalyzer

A support copilot that checks a customer's complaint against their transaction history and returns a classified, safety-checked reply in under 50 ms.

Year
2026
Role
Team Binary DIU
Context
SUST CSE Carnival 2026 hackathon
Type
AI & ML
Stack
Python, FastAPI, Pydantic, Groq, React, TanStack Query, Docker
TicketAnalyzer screenshot

Built with Team Binary DIU for the Codex Community Hackathon at SUST CSE Carnival 2026. All data is synthetic.

The problem

A support agent reading "I sent 5,000 taka and it never arrived" has to find the right transaction, decide whether the story matches the records, pick a department and write a careful reply. That takes minutes, and a wrong reply can promise a refund nobody approved.

The approach

Every field that matters is decided by deterministic rules, not by a language model:

  • Match the complaint to a transaction by amount, time, phone number and type. If it's ambiguous, return nothing instead of guessing.
  • Decide whether the evidence is consistent, inconsistent or insufficient.
  • Classify the case into one of 8 types, set severity and route it to one of 6 departments.
  • Flag cases that need a human, such as suspected phishing or duplicates.

A language model is only used to polish the summary and reply, through a Groq → Groq → Hugging Face fallback chain. If every provider fails, a safe template is returned and the pipeline still completes.

Safety

  • Complaint text is sanitised to strip prompt-injection phrases before anything else runs.
  • Every reply is scanned before it's returned and never promises a refund.
  • The rules-only path answers in under 50 ms.

What I learned

Use AI for language and rules for decisions. It made the system faster, cheaper and much easier to test.

Next project

CricketHub-BD →