Loan Automation
End-to-End Loan Processing · WhatsApp & ZeptoMail · Nginx & PM2 VPS
A full-stack loan processing and communication automation system engineered for an Indian legal practice with Node.js and Express — transforming human-maintained Excel spreadsheets into structured JSON, compiling customized loan PDF documentation, executing multi-channel customer communications via Interakt (WhatsApp) and ZeptoMail, and deployed on a production Linux VPS with Nginx and PM2.

Architecting an End-to-End Legal Automation Pipeline
Loan processing within legal practices is notoriously labor-intensive: case workers manually transcribe customer records from spreadsheets, draft individualized legal agreements, and dispatch repetitive status updates across disparate communication channels. Loan Automation was engineered as a comprehensive backend orchestration platform that eliminates manual intervention entirely.
As the full-stack automation developer, I designed the complete system lifecycle from initial spreadsheet ingestion to production deployment on a Linux VPS. The platform transforms raw customer datasets into structured JSON models, feeds those models into dynamic PDF compilation services, triggers multi-channel messaging via WhatsApp (Interakt) and email (ZeptoMail), and synchronizes workflow states through bidirectional webhooks.
- End-to-end legal automation pipeline replacing repetitive manual transcription with programmatic flows
- Decoupled microservice architecture orchestrating parsing, PDF synthesis, and multi-channel messaging
- Drastic reduction in processing turnaround time from hours of manual labor to instantaneous execution
Ingesting Loan Records: File Selection, Upload & Integrity Validation
The entry point of the automation workflow begins with ingesting client loan spreadsheets. In legal environments, spreadsheet files often contain subtle formatting discrepancies, missing fields, or irregular column arrangements. I implemented a robust file-intake interface allowing staff to select and upload Excel workbooks with instant client-side feedback.
Upon file selection, the backend validates file extensions, MIME types, and header structures before streaming the contents into our transformation pipeline. This pre-flight validation guarantees that corrupt files or incomplete records are identified before entering downstream legal document generation.

- Intuitive file upload interface with pre-flight MIME type and extension validation
- Automated file validation preventing malformed workbooks from entering downstream workflows
- Clean status reporting giving staff immediate feedback on file integrity
Excel-to-JSON Pipeline: Transforming Spreadsheet Data into Structured Payloads
To bridge the gap between human-maintained spreadsheets and machine-readable services, I built an automated Excel-to-JSON transformation engine. The parser processes uploaded workbooks row-by-row, extracting key financial terms, customer contact coordinates, interest schedules, and legal identifiers.
The engine enforces strict schema normalization: date formats are converted into standardized ISO strings, monetary values are parsed into clean numeric types, and customer phone numbers are sanitized for international WhatsApp dispatching. The resulting structured JSON payload forms a dependable, clean contract consumed by the rest of the application.

- High-throughput Excel parsing extracting structured loan parameters and customer records
- Schema normalization converting disparate date formats, currencies, and phone numbers into clean types
- Conversion of human-maintained spreadsheet data into machine-readable JSON contracts
Processed Loan Records & Interactive Operations Table
Following successful JSON normalization, the extracted loan data is rendered in a clean, high-visibility operations table. This dashboard allows legal administrators to inspect ingested records, review extracted customer parameters, and audit loan variables before initiating automated processing batches.
Each record displays borrower identification, loan amounts, approval stages, and communication readiness. Administrators maintain full oversight over which records are queued for document compilation and automated dispatch, providing an essential balance between full automation and human auditability.

- Operational review table displaying extracted borrower parameters and loan metrics clearly
- Granular administrative controls allowing batch execution or individual record auditing
- Immediate visual verification ensuring total data accuracy before triggering downstream customer messaging
Automated PDF Generation & Dynamic Document Compilation
Legal agreements require rigorous typography, precise page geometry, and dynamic variable binding. Rather than relying on manual template filling, I developed an automated PDF generation service capable of synthesizing complete loan contracts programmatically.
Using headless document generation pipelines, the service takes normalized JSON record data and injects borrower names, loan principals, interest schedules, and repayment timelines into formal legal templates. The resulting PDF documents feature crisp vector typography, proper pagination, and embedded legal disclaimers, producing production-ready contracts in seconds.
- Headless PDF compilation engine generating customized legal loan agreements from JSON data
- Dynamic variable insertion binding borrower details, financial schedules, and terms flawlessly
- Zero manual drafting overhead delivering consistent, print-ready contracts on demand
Multi-Channel Communication: Interakt WhatsApp & ZeptoMail
Delivering loan agreements and updates promptly to borrowers is paramount. I engineered a multi-channel communication layer integrating Interakt for WhatsApp Business messaging and ZeptoMail for high-deliverability transactional email.
Once a borrower's PDF agreement is compiled, the backend automatically dispatches personalized WhatsApp notifications through Interakt, attaching the document link and custom greeting. Simultaneously, ZeptoMail delivers a formal email confirmation with the signed contract attached. This dual-channel approach achieves near-100% open rates and immediate borrower acknowledgment without requiring manual staff outreach.
- Interakt integration for automated WhatsApp Business customer communications and document links
- ZeptoMail integration ensuring reliable, high-reputation transactional email delivery
- Coordinated multi-channel strategy ensuring instant customer awareness and verification
Server Deployment: Linux VPS, Nginx Reverse Proxy & PM2 Management
A business-critical automation platform requires an infrastructure engineered for persistent uptime. I managed the complete deployment of the system onto a production Linux Virtual Private Server (VPS), configuring the entire server software stack from the ground up.
I configured Nginx as a high-performance reverse proxy handling SSL/TLS termination, request rate limiting, and HTTP-to-HTTPS redirects. To ensure the Node.js application runs continuously without interruption, I configured PM2 process clustering with automated restarts upon server reboots, complemented by Let's Encrypt SSL certificates securing all incoming webhook payloads and API traffic.
- Production Linux VPS deployment managed and configured end-to-end with enterprise rigor
- Nginx reverse proxy handling SSL/TLS encryption, port routing, and traffic management
- PM2 process clustering guaranteeing continuous daemon execution, keep-alive, and zero downtime
Bridging Spreadsheets, Document Synthesis & Multi-Channel Messaging into a Unified Pipeline
Building a single API integration or generating an isolated document is common; the primary engineering challenge in Loan Automation was harmonizing multiple heterogeneous systems into an unyielding, fault-tolerant business pipeline. The client, a legal practice, previously relied on error-prone manual copy-pasting from Excel sheets into loan agreements, followed by manual customer follow-ups on WhatsApp and email. I engineered a continuous orchestration architecture where uploaded Excel workbooks are parsed, validated, and normalized into JSON data objects. This structured state immediately feeds a headless PDF generation engine and triggers coordinated multi-channel messaging via Interakt and ZeptoMail. Webhook endpoints capture delivery acknowledgments and update processing stages in real time. Deployed on a hardened Linux VPS with Nginx and PM2, the solution transformed an entire legal department's operational velocity.
Architectural Matrix & Technology Stack
A modular overview of the specialized frameworks, core competencies, and production technologies engineered across each architectural tier.
Backend & API Gateway
Workflow Automation & n8n Orchestration
Data Ingestion & Transformation
Automated Document & PDF Generation
Multi-Channel Customer Messaging
DevOps, Security & Deployment
Key Engineering Highlights
Have a Complex Web Application or Custom LMS in Mind?
We engineer custom Next.js platforms, transactional payment engines, and intelligent AI workflows built for real-world commercial scale.
Schedule a Technical Discovery Call