How pricardok/agendafacil works
Agendamento Já is a multi-tenant appointment-booking SaaS, with a separate Admin back office sharing the PostgreSQL database. The principal customer flow is a public booking request through the PWA, which checks service and professional availability and creates appointments; tenant staff then manage appointments and professionals. Other major product areas include subscriptions and payment processing, messaging, and scheduled jobs. The map combines documented capabilities with indexed source references; unsampled implementation details and integration wiring are left unverified where necessary.
Main entry points: pwa_routes.py Public booking PWA · app/main.py Backend API · app/main.py Admin API · admin_agendamento_routes.py Appointment management
Components 22
Booking & Tenants
- Public booking PWA
AgendaPro_Backend/app/routes/pwa_routes.py - Appointment services
AgendaPro_Backend/app/services/agendamento_service.py - Appointments
AgendaPro_Admin/app/models/agendamento.py - Tenant records
AgendaPro_Admin/app/models/clientes_plataforma.py
Tenant Operations
- Professional management
AgendaPro_Backend/app/routes/profissional_admin_routes.py - Professional availability
AgendaPro_Backend/app/models/profissional_horario.py - Appointment management
AgendaPro_Backend/app/routes/admin_agendamento_routes.py - Anamnesis records
AgendaPro_Backend/app/services/anamnese_service.py
Platform Admin
- Admin API
AgendaPro_Admin/app/main.py - Admin authentication
AgendaPro_Admin/app/routes/auth_routes.py - Tenant administration
AgendaPro_Admin/app/routes/tenant_usuarios_routes.py - Subscription management
AgendaPro_Admin/app/routes/assinaturas_routes.py
Payments & Messaging
- Payment providers
AgendaPro_Backend/app/services/payment_provider_factory.py - Stripe webhooks
AgendaPro_Backend/app/routes/webhooks/stripe_webhook_routes.py - EFI webhooks
AgendaPro_Backend/app/routes/webhooks/efi_webhook_routes.py - WhatsApp messaging
AgendaPro_Backend/app/services/waha_outbound_service_v2.py - Email notifications
AgendaPro_Backend/app/services/email_service.py
Shared Foundation
- Backend API
AgendaPro_Backend/app/main.py - Shared PostgreSQL
AgendaPro_Admin/app/database/database_core.py - Background schedulers
AgendaPro_Backend/app/schedulers
Other components
- Booking customer
- Tenant staff
Connections 23
- Booking customer → Public booking PWA: books through
README.md - Public booking PWA → Appointment services: checks availability
AgendaPro_Backend/app/routes/pwa_routes.py - Public booking PWA → Appointments: creates bookings
AgendaPro_Backend/app/routes/pwa_routes.py - Public booking PWA → Professional availability: checks schedules
AgendaPro_Backend/app/routes/pwa_routes.py - Tenant staff → Appointment management: manages bookings
README.md - Appointment management → Appointment services: delegates to
AgendaPro_Backend/app/routes/admin_agendamento_routes.py - Appointment management → Appointments: reads and writes
AgendaPro_Backend/app/routes/admin_agendamento_routes.py - Professional management → Professional availability: manages availability
AgendaPro_Backend/app/routes/profissional_admin_routes.py - Anamnesis records → Appointments: supports care records
- Backend API → Public booking PWA: registers routes
AgendaPro_Backend/app/main.py - Admin API → Admin authentication: registers routes
AgendaPro_Admin/app/main.py - Admin API → Tenant administration: registers routes
AgendaPro_Admin/app/main.py - Admin API → Subscription management: registers routes
AgendaPro_Admin/app/main.py - Admin authentication → Shared PostgreSQL: reads admin records
AgendaPro_Admin/app/routes/auth_routes.py - Tenant administration → Tenant records: manages tenants
AgendaPro_Admin/app/routes/tenant_usuarios_routes.py - Subscription management → Payment providers: generates charges
AgendaPro_Admin/app/routes/assinaturas_routes.py - Backend API → Payment providers: configures provider
AgendaPro_Backend/app/main.py - Stripe webhooks → Payment providers: handles payment events
AgendaPro_Backend/app/routes/webhooks/stripe_webhook_routes.py - EFI webhooks → Shared PostgreSQL: records webhook payments
AgendaPro_Backend/app/routes/webhooks/efi_webhook_routes.py - Appointment services → WhatsApp messaging: sends reminders
- Backend API → Email notifications: configures service
AgendaPro_Backend/app/main.py - Background schedulers → WhatsApp messaging: dispatches messages
- Backend API → Shared PostgreSQL: uses shared database
README.md