How haseebahsan-n/hostelcare-ai-agent works
HostelCare AI is a Streamlit complaint-management application. Students sign in, describe an issue conversationally, review and confirm a structured ticket, then track it; staff inspect tickets, resolve or escalate them, and review reporting. Gemini assists with complaint understanding, while routing rules assign authority and handle escalation. SQLite stores accounts, complaints, and history. The README documents several workflows not fully shown in the excerpts; those links are cited to the README rather than implying the unsampled implementation was inspected.
Main entry points: app.py Streamlit application · database.py Database operations · routing.py Manual and timed escalation · agent.py Conversational complaint agent
Components 17
Application experience
- Streamlit application
app.py - Sign-in and registration
app.py - Complaint conversation
app.py - Ticket confirmation
app.py - Ticket tracking
app.py - Staff dashboard
app.py - Analytics and export
app.py
Complaint intelligence
- Conversational complaint agent
agent.py - Google Gemini
Routing and escalation
- Initial complaint routing
routing.py - Manual and timed escalation
routing.py
Persistence and history
- Database operations
database.py - SQLite schema
schema.sql - SQLite database
- Complaint and action history
database.py
Other components
- Students
- Warden and staff
Connections 24
- Students → Streamlit application: use application
README.md - Warden and staff → Streamlit application: manage complaints
README.md - Streamlit application → Sign-in and registration: presents
README.md - Streamlit application → Complaint conversation: presents
README.md - Streamlit application → Ticket confirmation: presents
README.md - Streamlit application → Ticket tracking: presents
README.md - Streamlit application → Staff dashboard: presents
README.md - Streamlit application → Analytics and export: presents
README.md - Sign-in and registration → Database operations: checks and registers
app.py - Complaint conversation → Conversational complaint agent: sends conversation
app.py - Conversational complaint agent → Google Gemini: requests parsing
agent.py - Conversational complaint agent → Initial complaint routing: requests assignment
agent.py - Ticket confirmation → Database operations: creates ticket
app.py - Ticket tracking → Database operations: reads tickets
README.md - Staff dashboard → Database operations: updates complaints
README.md - Staff dashboard → Manual and timed escalation: requests escalation
README.md - Analytics and export → Database operations: reads records
README.md - Analytics and export → Students: exports filtered CSV
app.py - Streamlit application → Manual and timed escalation: checks on execution
README.md - Manual and timed escalation → Database operations: loads and updates tickets
routing.py - Manual and timed escalation → Complaint and action history: records actions
routing.py - Database operations → SQLite schema: initializes from
database.py - Database operations → SQLite database: reads and writes
database.py - Database operations → Complaint and action history: records updates and logs
database.py