How nuby911/absen-ai-bot works
SmartSchool AI combines a teacher kiosk attendance workflow, school administration, and parent-facing WhatsApp services. Teachers scan students on-device; the backend verifies faces, records attendance, and sends notifications. Parents can query attendance and schedules or submit leave requests through the WhatsApp chatbot, while administrators manage school data and evaluate system performance. Mobile source beyond its Android entrypoint is not in the supplied tree, so its detailed implementation is represented only at the documented product level; edges reflect README statements or shown backend wiring.
Main entry points: main.py FastAPI application · attendance.py Attendance API · admin.py Admin operations · models.py School records
Components 28
User applications
- Admin dashboard
web_admin/src/app - Web API client
web_admin/src/lib/api.ts - Teacher kiosk app
mobile_guru
Backend API
- FastAPI application
backend/app/main.py - Authentication
backend/app/routers/auth.py - JWT and PIN security
backend/app/security.py - API contracts
backend/app/schemas.py - Admin operations
backend/app/routers/admin.py - Attendance API
backend/app/routers/attendance.py - Leave requests
backend/app/routers/leaves.py - WhatsApp webhook
backend/app/routers/webhook.py - Database sessions
backend/app/database.py - School records
backend/app/models.py
School workflows
- Face embedding engine
backend/app/providers/face_engine.py - Face index cache
backend/app/services/face_index.py - School rules
backend/app/services/school_rules.py - Semester maintenance
backend/app/services/semester_maintenance.py - Semester recap
backend/app/services/semester_recap.py - Chatbot orchestrator
backend/app/services/chatbot.py - WhatsApp delivery queue
backend/app/services/wa_queue.py
External services
- LLM provider
backend/app/providers/llm.py - WhatsApp provider
backend/app/providers/whatsapp.py - WhatsApp gateway
- Gemini AI
Other components
- School admin
- Teacher
- Student
- Parent
Connections 32
- School admin → Admin dashboard: manages school
README.md - Teacher → Teacher kiosk app: uses kiosk
README.md - Student → Teacher kiosk app: scans at kiosk
README.md - Parent → WhatsApp gateway: messages via
README.md - Admin dashboard → Web API client: uses client
README.md - Web API client → FastAPI application: calls REST API
README.md - Teacher kiosk app → FastAPI application: sends scan data
README.md - FastAPI application → Authentication: registers routes
backend/app/main.py - FastAPI application → Admin operations: registers routes
backend/app/main.py - FastAPI application → Attendance API: registers routes
backend/app/main.py - FastAPI application → Leave requests: registers routes
backend/app/main.py - FastAPI application → WhatsApp webhook: registers routes
backend/app/main.py - Authentication → JWT and PIN security: uses credentials
backend/app/routers/auth.py - Attendance API → Face embedding engine: verifies faces
README.md - Attendance API → Face index cache: uses face index
backend/app/routers/attendance.py - Attendance API → School rules: applies school rules
backend/app/routers/attendance.py - Attendance API → WhatsApp delivery queue: queues notifications
README.md - Admin operations → Face embedding engine: extracts embeddings
backend/app/routers/admin.py - Admin operations → Semester maintenance: maintains semesters
backend/app/routers/admin.py - Admin operations → Semester recap: builds semester recap
- WhatsApp webhook → Chatbot orchestrator: delegates message
backend/app/routers/webhook.py - Chatbot orchestrator → LLM provider: interprets messages
README.md - Chatbot orchestrator → WhatsApp provider: sends replies
README.md - LLM provider → Gemini AI: uses AI service
README.md - WhatsApp delivery queue → WhatsApp provider: dispatches messages
README.md - WhatsApp provider → WhatsApp gateway: sends WhatsApp
README.md - WhatsApp gateway → WhatsApp webhook: posts incoming messages
README.md - Attendance API → School records: records attendance
README.md - Admin operations → School records: manages records
backend/app/routers/admin.py - Leave requests → School records: stores requests
backend/app/routers/leaves.py - Database sessions → School records: maps records
backend/app/models.py - FastAPI application → Database sessions: configures database
backend/app/main.py