A simple web application for tracking ticket audits and KPI metrics for Uber team leaders.
- Ticket Audit Entry: Log individual ticket audits with scores
- KPI Data Management: Track TPH, CSAT, NPV, ATRR metrics
- Dashboard: View weekly stats and agent performance
- Reports: Generate detailed reports with filtering
- Excel Export: Download data as Excel files
- Google Sheets Integration: Sync data to Google Sheets
./start.shOr manually:
python3 -m uvicorn app:app --host 0.0.0.0 --port 8000 --reloadGo to: http://localhost:8000
- Click "New Audit" in the navigation
- Fill in the form:
- Agent name (can add new agents on the fly)
- Ticket ID
- Week number (auto-filled)
- Date
- Contact type (Phone/Chat/Email)
- Ticket link
- Experience score (1-3)
- Compliance scores (KB Usage, Grammar, Process - each 0-100%)
- Comments
- Click "Submit Audit"
- Click "KPI Entry" in the navigation
- Choose manual entry or CSV upload (from DOMO)
- Fill in the metrics:
- TPH (Tickets per Hour)
- CSAT (%)
- NPV (Non-Productive View)
- ATRR (Agent Touch Resolution Rate)
- DSAT Count
- Click "Reports" in the navigation
- Filter by week and/or agent
- View agent performance and DSAT summary
- Excel: Click "Export to Excel" on Dashboard or Reports
- Google Sheets: Configure in Settings, then export
- Go to Google Cloud Console
- Create a new project
- Enable Google Sheets API and Google Drive API
- Go to IAM & Admin > Service Accounts
- Create a new service account
- Create a JSON key file
- Download and rename to
credentials.json - Place in the app folder
- Open your Google Sheet
- Share it with the service account email (found in credentials.json)
- Give it Editor access
- Go to Settings
- Enter your Spreadsheet ID (from the URL)
- Click "Test Connection"
quality-audit-tracker/
├── app.py # Main application
├── database.py # Database operations
├── google_sheets.py # Google Sheets integration
├── requirements.txt # Python dependencies
├── start.sh # Startup script
├── templates/ # HTML templates
│ ├── index.html # Dashboard
│ ├── audit.html # Audit entry
│ ├── kpi.html # KPI entry
│ ├── reports.html # Reports
│ └── settings.html # Settings
├── static/ # Static files
│ ├── style.css # Styling
│ ├── script.js # JavaScript
│ └── template.csv # CSV template
└── data/
└── audit.db # SQLite database
date,agent_name,tph,csat,npv,atrr,dsat_count
2024-01-15,John Smith,4.5,95.2,2.1,87.3,1- Use the same agent names consistently for accurate reporting
- Week format: YYYY-WWW (e.g., 2024-W03)
- Back up
data/audit.dbregularly - The app auto-saves everything to the local database
For issues or questions, check the Settings page for setup instructions.