How nxt-website/nxt-cloud-chat works
NXT Cloud Chat is a WordPress plugin that connects a shared WhatsApp inbox, CRM, and OTP login to Meta’s Cloud API while storing CRM data in WordPress. Its principal workflow is managing conversations and contacts, sending or receiving WhatsApp messages, and retaining message and delivery history. Other major branches include sales pipelines, team-scoped access, dashboard reporting, and login verification. The graph combines documented capabilities with sampled source; unsampled feature wiring is represented only where the README documents it.
Main entry points: pages Admin workspace · nxtcc-auth-handler.php OTP workflow · routes.php Route bootstrap · nxtcc-history-handler.php History actions
Components 26
Inbox and messaging
- Admin workspace
admin/pages - Inbox handlers
admin/model/chat - Conversation service
includes/class-nxtcc-conversations.php - WhatsApp API
includes/nxtcc-send-message.php - History actions
admin/model/nxtcc-history-handler.php - History repository
admin/model/class-nxtcc-history-repo.php - CSV helpers
admin/model/nxtcc-csv-helpers.php
CRM workspace
- Contact management
admin/model/contacts - Sales pipelines
admin/model/nxtcc-deals-handler.php - Contact groups
admin/model/groups - Contact tags
admin/model/nxtcc-tags-handler.php - Follow-up tasks
includes/class-nxtcc-crm-tasks.php - Team access
includes/class-nxtcc-access-teams.php - Dashboard
admin/model/class-nxtcc-dashboard-handler.php
Authentication
- OTP workflow
admin/model/nxtcc-auth-handler.php - Auth data access
admin/model/class-nxtcc-auth-dao.php - Login widget
includes/widgets/class-nxtcc-login-whatsapp-widget.php - Verification gate
includes/force-migration/gate.php - Binding repository
includes/force-migration/class-nxtcc-auth-bindings-repo.php - Auth policy
includes/force-migration/options.php
WordPress runtime
- Route bootstrap
includes/routes.php - Admin routes
includes/class-nxtcc-routes.php - REST API
includes/rest-api.php - Plugin database
includes/class-nxtcc-db.php
Other components
- WordPress user
- Meta Cloud API
Connections 25
- Admin workspace → Inbox handlers: manages chats
- Inbox handlers → Conversation service: handles conversations
- Conversation service → WhatsApp API: sends messages
- WhatsApp API → Meta Cloud API: sends messages
- Meta Cloud API → Conversation service: delivers events
- Admin workspace → History actions: reviews history
- History actions → History repository: queries history
admin/model/nxtcc-history-handler.php - History actions → CSV helpers: builds exports
admin/model/nxtcc-history-handler.php - Admin workspace → Contact management: manages contacts
- Admin workspace → Sales pipelines: tracks deals
- Admin workspace → Contact groups: manages groups
- Admin workspace → Contact tags: manages tags
- Admin workspace → Follow-up tasks: manages follow-ups
- Admin workspace → Team access: sets access scopes
- Admin workspace → Dashboard: views reporting
- WordPress user → Login widget: requests login
- Login widget → OTP workflow: requests verification
- OTP workflow → Auth data access: stores OTP data
admin/model/nxtcc-auth-handler.php - OTP workflow → Meta Cloud API: sends OTP
- OTP workflow → WordPress user: verifies and logs in
- Verification gate → Binding repository: checks bindings
includes/force-migration/gate.php - Verification gate → Auth policy: reads policy
includes/force-migration/options.php - Route bootstrap → Admin routes: initializes routes
includes/routes.php - Route bootstrap → REST API: loads REST API
includes/routes.php - Route bootstrap → Plugin database: loads database
includes/routes.php