How zahanturel/agyary works
Agyary is a WhatsApp-based temple management system with customer booking conversations and a priest-facing PWA for temple calendars and administration. The documented customer flow covers onboarding, machi or service booking, approval, and cancellation; the PWA supports WhatsApp sign-in, agyari setup, calendar and Machi Board views, and event slips. The README describes the web chat and future WhatsApp webhook as transport adapters around the messaging conversation layer. Edges reflect explicit README statements or references and calls in sampled/indexed files; some implementation details remain unsampled.
Main entry points: mobed.py Mobed API · models Domain records · mobed_dashboard.py Calendar and board · main.py FastAPI application
Components 21
Customer messaging
- Web chat adapter
src/agyary/api - Conversation flows
src/agyary/messaging - Booking persistence
src/agyary/messaging/booking_service.py
Mobed PWA
- Mobed PWA
src/agyary/api/static/mobed/js/main.js - Mobed API
src/agyary/api/routes/mobed.py - Mobed authentication
src/agyary/services/mobed_auth.py - Calendar and board
src/agyary/services/mobed_dashboard.py - Behdin directory
src/agyary/services/behdin_directory.py - Memorial management
src/agyary/api/routes/memorials.py - WhatsApp login webhook
src/agyary/api/routes/whatsapp.py
Domain services
- Calendar API
src/agyary/api/routes/calendar.py - Parsi calendar
src/agyary/calendar/engine.py - Memorial dates
src/agyary/calendar/memorial.py - Slot availability
src/agyary/messaging/availability.py - Geh times
src/agyary/messaging/geh_times.py
Application platform
- Domain records
src/agyary/models - Postgres session
src/agyary/core/database.py - FastAPI application
src/agyary/api/main.py
Other components
- Behdin
- Mobed
Connections 30
- Behdin → Web chat adapter: uses chat
README.md - Behdin → WhatsApp: messages
README.md - Web chat adapter → Conversation flows: adapts transport
README.md - WhatsApp → WhatsApp login webhook: delivers login
README.md - WhatsApp login webhook → Mobed authentication: completes login
src/agyary/api/routes/whatsapp.py - Conversation flows → Booking persistence: creates bookings
src/agyary/messaging/booking_service.py - Booking persistence → Slot availability: checks slots
src/agyary/messaging/booking_service.py - Slot availability → Geh times: uses times
src/agyary/messaging/availability.py - Mobed → Mobed PWA: manages temple
README.md - Mobed PWA → Mobed API: calls API
- Mobed API → Mobed authentication: delegates auth
src/agyary/api/routes/mobed.py - Mobed API → Calendar and board: loads calendar
src/agyary/api/routes/mobed.py - Mobed API → Behdin directory: manages behdins
src/agyary/api/routes/mobed.py - Mobed API → Slot availability: checks bookable slots
src/agyary/api/routes/mobed.py - Memorial management → Memorial dates: uses dates
src/agyary/api/routes/memorials.py - Calendar API → Parsi calendar: converts dates
src/agyary/api/routes/calendar.py - Memorial dates → Parsi calendar: uses calendar
src/agyary/calendar/memorial.py - Calendar and board → Booking persistence: uses booking logic
src/agyary/services/mobed_dashboard.py - Calendar and board → Slot availability: uses availability
src/agyary/services/mobed_dashboard.py - Calendar and board → Geh times: uses times
src/agyary/services/mobed_dashboard.py - Booking persistence → Domain records: reads and writes
src/agyary/messaging/booking_service.py - Mobed authentication → Domain records: reads and writes
src/agyary/services/mobed_auth.py - Calendar and board → Domain records: reads records
src/agyary/services/mobed_dashboard.py - Behdin directory → Domain records: reads and writes
src/agyary/services/behdin_directory.py - Memorial management → Domain records: reads records
src/agyary/api/routes/memorials.py - Domain records → Postgres session: uses sessions
src/agyary/models/booking.py - FastAPI application → Calendar API: registers routes
src/agyary/api/main.py - FastAPI application → Memorial management: registers routes
src/agyary/api/main.py - FastAPI application → Mobed API: registers routes
src/agyary/api/main.py - FastAPI application → WhatsApp login webhook: registers routes
src/agyary/api/main.py