FOCUSCurrently working on ScheduleSomething and LayerdEvents algorithmsLearn More
FOCUSCurrently working on ScheduleSomething and LayerdEvents algorithmsLearn More
FOCUSCurrently working on ScheduleSomething and LayerdEvents algorithmsLearn More
FOCUSCurrently working on ScheduleSomething and LayerdEvents algorithmsLearn More
CONTRIBUTING.MdBackend Modules
Backend Modules Overview
DocsCONTRIBUTING.mdBackend ModulesBackend Modules Overview
GitHub Live Sync

Backend Modules Overview

Live technical documentation fetched from GitHub repository omghante/metapilot/docs/modules/README.md

Backend Modules Specification Directory

Welcome to the Backend Modules section of the MetaPilot documentation. Every backend Django application is documented using a uniform 15-Point Module Specification Template.

Core Modules Index

  • users Module: Custom User model, 4-tier roles (
    UserRole
    ), managers, setup views, and CLI scripts.
  • tenants Module: Tenants, Agencies,
    TenantConfig
    , Fernet AES-256 encryption,
    TenantMiddleware
    , and
    AuditLog
    .
  • campaigns Module: WhatsApp broadcast marketing campaigns, recipient targeting, and campaign states.
  • templates Module: WhatsApp HSM message templates, placeholders, and approval statuses.
  • messaging Module: Customer conversations, inbound/outbound messages, and media handling.
  • inbox Module: Realtime agent inbox, Django Channels WebSockets, consumers, and event groups.
  • chatbot Module: Platform AI assistant, WhatsApp AI auto-responders, and OpenRouter integration.
  • scheduler Module: Celery task runner, Cron schedules, and Token Bucket rate limiter.
  • notifications Module: System alerts, unread counter badges, and notification triggers.

Standardized 15-Point Specification Structure

Every module document strictly includes:
  1. Purpose & Overview
  2. Responsibilities
  3. Directory Structure
  4. Models & Database Schemas
  5. Services & Business Logic
  6. Serializers & Data Transfer Objects
  7. Views & API Endpoints
  8. Permissions & Role Rules
  9. Signals & Event Listeners
  10. Background Tasks & Celery Jobs
  11. Data Flow & External Dependencies
  12. Business Rules & Validations
  13. Sequence Diagram (Mermaid)
  14. Known Limitations & Technical Debt
  15. Future Improvements