How stillchoosingyou/ai-chatbot works
This is a local Flask prototype for managing school ID records, processing status and appointments, with a staff-facing chatbot and QR-based student profiles. The main workflow is staff search or edit an inventory record, save status or appointment changes, then ask about the selected record; a separate scan path displays limited student details. The app also documents gate logs, incidents, student requests, card previews and CSV export. Some route implementations were not sampled, so those links rely on README statements or are omitted where evidence is insufficient.
Main entry points: Chatbot.py Flask application · app.js Workspace UI · train_model.py Model training · intent_model.py Intent inference
Components 17
Staff interface
- Workspace UI
static/app.js
ID operations
- Flask application
Chatbot.py - ID inventory
Chatbot.py - Status and appointments
Chatbot.py - Gate logs
Chatbot.py - Incident records
Chatbot.py - Student requests
Chatbot.py
Chat and training
- Chat handling
Chatbot.py - Intent inference
intent_model.py - Model training
train_model.py - Intent examples
property_management_dataset.csv - Trained model
data/intent_model.joblib
Records and outputs
- Inventory database
data/inventory.sqlite3 - QR and sticker views
Chatbot.py - Card artwork
id_cards.py
Other components
- Staff user
- Student / phone user
Connections 19
- Staff user → Workspace UI: uses
README.md - Workspace UI → Flask application: requests API
static/app.js - Flask application → ID inventory: routes inventory
Chatbot.py - Flask application → Status and appointments: updates status
README.md - Flask application → Gate logs: records entries
Chatbot.py - Flask application → Incident records: records incidents
Chatbot.py - Flask application → Student requests: handles requests
Chatbot.py - Flask application → Inventory database: reads and writes
README.md - Workspace UI → Chat handling: sends questions
README.md - Chat handling → Intent inference: classifies intent
Chatbot.py - Intent inference → Trained model: loads model
intent_model.py - Chat handling → ID inventory: looks up ID data
README.md - Model training → Intent examples: trains from
README.md - Model training → Trained model: saves model
README.md - Flask application → QR and sticker views: serves QR views
Chatbot.py - Flask application → Card artwork: renders card images
Chatbot.py - Student / phone user → QR and sticker views: scans QR
README.md - QR and sticker views → Inventory database: reads profile fields
Chatbot.py - Workspace UI → ID inventory: edits and filters
static/app.js