Backend Documentation

Data Models

MongoDB model layer used by chat, bot lifecycle, auth, and billing modules.

Model Inventory

user.jsagent.jsbot.jsfeature.jschatHandler.jschatSession.jsapiKey.jspayment.jsbotPaymentConfig.jsprocessedMessage.jstransactionTracking.jswhatsappMetadata.js

Usage Pattern

Controllers orchestrate read/write operations and delegate business-specific transformations to services and utilities.

Persistent entities support API key validation, session chat state, message processing, and payment reconciliation.