How jishnutej1804/customer-escalation-agent works
EscalationSentinel is a human-in-the-loop support escalation console. A supervisor submits a ticket through the console; the backend recalls relevant policy and precedent, asks Groq to assess the case, applies a cash-approval guardrail, and returns a recommendation with risk and auto-approval status. Supervisors can approve or override recommendations to retain precedents or corrections, and inspect the memory bank. The README also documents initial policy seeding. Backend source was sampled; the tree identifies the UI only as the templates directory.
Main entry points: server.py FastAPI Backend · templates Web Console · seed_memory.py Policy Seeding
Components 13
Support Console
- Web Console
templates - FastAPI Backend
server.py
Ticket Analysis
- Ticket Input
server.py - Investigation
server.py - Risk Guardrail
server.py - Recommendation
server.py
Policy Memory
- Memory Bank
- Memory Inspector
server.py - Approval / Override
server.py - Policy Seeding
seed_memory.py
Other components
- Supervisor
- Groq API
- Hindsight API
Connections 21
- Supervisor → Web Console: submits ticket
- Web Console → FastAPI Backend: sends request
- FastAPI Backend → Investigation: dispatches investigation
- Investigation → Ticket Input: validates input
- Investigation → Hindsight API: recalls memories
- Hindsight API → Memory Bank: reads memories
- Investigation → Groq API: requests assessment
- Investigation → Risk Guardrail: applies guardrail
- Risk Guardrail → Recommendation: produces result
- FastAPI Backend → Web Console: returns response
- Supervisor → Approval / Override: approves or overrides
- Web Console → FastAPI Backend: posts decision
- FastAPI Backend → Approval / Override: dispatches decision
- Approval / Override → Hindsight API: retains correction
- Hindsight API → Memory Bank: writes memory
- Supervisor → Memory Inspector: requests inspection
- Web Console → FastAPI Backend: requests memories
- FastAPI Backend → Memory Inspector: dispatches listing
- Memory Inspector → Hindsight API: lists memories
- Policy Seeding → Hindsight API: seeds policies
- Hindsight API → Memory Bank: stores policies