About This Architecture
SalesBoost is a five-phase sequence architecture for lead management and automated outreach, orchestrating user input through Next.js/React frontend, Node.js/Supabase backend, AI classification, and multi-channel messaging. Data flows synchronously from user action through frontend and backend to Supabase database, then asynchronously triggers AI-powered lead analysis and workflow engine execution. The Workflow Engine applies trigger-condition-action logic to route qualified leads to WhatsApp, Instagram, or Facebook via the Messaging Service. This architecture demonstrates event-driven automation with clear separation between synchronous data capture and asynchronous AI processing, enabling scalable lead nurturing without blocking user interactions. Fork this diagram on Diagrams.so to customize phases, add new messaging channels, or integrate alternative AI providers and databases. The self-loop patterns show internal processing within the AI Engine and Workflow Engine, critical for understanding where business logic complexity lives.