SalesPal / Kalash Ecosystem
Multi-tenant SaaS platform built for scale
The Problem
The client needed a production-grade CRM automation platform capable of handling multiple business tenants, each with isolated data, custom workflows, and real-time AI-assisted engagement. Existing solutions were rigid, overpriced, and couldn't accommodate the specific automation flows required.
Architecture
Multi-repo architecture with a React/Vite frontend, Node/Express API layer, PostgreSQL for persistent storage, and a custom n8n fork for workflow automation. Initially deployed on GCP Cloud Run, later migrated to Railway. Razorpay handled subscription billing with webhook-driven state management.
Key Decisions
Chose multi-tenant isolation at the database schema level rather than separate databases — balancing security with operational simplicity for the team size.
Built a custom n8n fork instead of using the hosted version to maintain control over workflow execution and reduce costs at scale.
Executed a live PostgreSQL migration from GCP to Railway at 2am when the GCP free trial expired mid-production — zero data loss, minimal downtime.
Integrated Gemini AI for automated response generation rather than OpenAI to reduce per-request costs by 60% while maintaining quality.
Implemented Razorpay webhook verification with idempotent subscription state management to prevent duplicate charges.
Outcome
Shipped to production with active paying tenants. Platform handles multi-tenant CRM automation, AI-assisted engagement, and subscription billing. Led the team as the youngest and most technically senior member at age 20.