How shanmukhapasumarthi/ai-customer-ticket works
Customers submit ticket details in the Streamlit interface, which POSTs them to the FastAPI ticket endpoint and displays the returned classification and status. The endpoint delegates creation and retrieval to the service layer; that layer classifies the message and persists the ticket through SQLite. The application entry point initializes the database and mounts the API router. The README documents the end-to-end frontend/API flow; the sampled source shows the calls and storage operations. Other README-listed deployment and testing capabilities are outside this runtime map.
Main entry points: routes.py Ticket endpoint · services.py Ticket services · app.py Streamlit form · database.py SQLite access
Components 8
Customer interface
- Streamlit form
frontend/app.py
API runtime
- FastAPI app
src/main.py - Ticket endpoint
src/api/routes.py
Ticket processing
- Ticket services
src/backend/services.py - Rule classifier
src/ai/classifier.py
Ticket storage
- SQLite access
src/database/database.py - SQLite database
Other components
- Customer
Connections 9
- Customer → Streamlit form: submits details
README.md - Streamlit form → Ticket endpoint: POSTs ticket
frontend/app.py - Ticket endpoint → Streamlit form: returns result
src/api/routes.py - FastAPI app → Ticket endpoint: mounts router
src/main.py - FastAPI app → SQLite access: initializes database
src/main.py - Ticket endpoint → Ticket services: creates and retrieves
src/api/routes.py - Ticket services → Rule classifier: classifies message
src/backend/services.py - Ticket services → SQLite access: reads and writes
src/backend/services.py - SQLite access → SQLite database: reads and writes
src/database/database.py