Back to Selected Work
Work/Loan Automation
Workflow Automation / Legal Tech & Node.js

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.

Excel → JSONAutomated Transformation
Multi-ChannelWhatsApp & ZeptoMail
AutomatedPDF Document Synthesis
VPS / NginxProduction Infrastructure
SYSTEM_HUD // LOAN-AUTOMATION
PRODUCTION VERIFIED
DATA PIPELINE
Excel-to-JSONProgrammatic spreadsheet ingestion, schema parsing & sanitization
DOCUMENT ENGINE
Automated PDFsDynamic legal agreement compilation from structured JSON payloads
COMMUNICATION
Interakt & ZeptoMailMulti-channel WhatsApp and transactional email customer messaging
PRODUCTION OPS
VPS · Nginx · PM2Linux server management, reverse proxy routing, and SSL encryption
Loan Automation PipelineIntegrated Backend Engine
Excel ParsingJSON TransformPDF SynthesisWhatsApp / InteraktZeptoMail APINginx / PM2 VPS
Role: Full-Stack Automation Developer
https://loan-automation.internal
Loan Automation — Full-Stack Educational Platform Showcase
JUMP:
[01]SYSTEM ARCHITECTURE

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.

Key Subsystem Takeaways:
  • 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
[02]DATA INGESTION

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.

Loan Automation file selection interface for uploading Excel workbooksUI PREVIEW
Loan Automation file selection interface for uploading Excel workbooks
File Intake Interface — Secure selection and preliminary validation of loan spreadsheet workbooks prior to backend processing.
Key Subsystem Takeaways:
  • 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
[03]DATA TRANSFORMATION

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.

Loan Automation Excel file upload and automated data extraction pipelineUI PREVIEW
Loan Automation Excel file upload and automated data extraction pipeline
Excel-to-JSON Transformation Pipeline — Automated parsing converting raw tabular spreadsheets into normalized, typed JSON objects.
Key Subsystem Takeaways:
  • 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
[04]RECORD MANAGEMENT

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.

Loan Automation processed loan records table displaying extracted customer dataUI PREVIEW
Loan Automation processed loan records table displaying extracted customer data
Processed Records Interface — High-visibility table displaying parsed loan records, customer coordinates, and batch processing controls.
Key Subsystem Takeaways:
  • 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
[05]DOCUMENT ENGINE

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.

Key Subsystem Takeaways:
  • 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
[06]CUSTOMER MESSAGING

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.

Key Subsystem Takeaways:
  • 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
[07]PRODUCTION INFRASTRUCTURE

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.

Key Subsystem Takeaways:
  • 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
ENGINEERING SPOTLIGHT // LEGAL TECH AUTOMATION & SYSTEM ORCHESTRATION

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.

Pipeline: Excel Ingestion → JSON Normalization → PDF Generation → WhatsApp/Email → Webhook100% Automated Workflow Execution
ARCHITECTURAL MATRIX

Architectural Matrix & Technology Stack

A modular overview of the specialized frameworks, core competencies, and production technologies engineered across each architectural tier.

[01]Application Core

Backend & API Gateway

Core Skills & Capabilities:
Node.js Runtime Environment
Express.js RESTful API Framework
Modular Route Architecture
Asynchronous Pipeline Orchestration
Webhook Event Ingestion Handlers
Payload Validation & Sanitization
Comprehensive Error Logging & Retries
Subsystem StatusProduction Ready
[02]Event Pipelines

Workflow Automation & n8n Orchestration

Core Skills & Capabilities:
Event-Driven Webhook Callbacks
Multi-Step Sequential Workflow Execution
State Transition Management
Idempotent Webhook Verification
Automated Activity Audit Logging
Subsystem StatusProduction Ready
[03]Excel-to-JSON Pipeline

Data Ingestion & Transformation

Core Skills & Capabilities:
Excel Spreadsheet Ingestion (xlsx/exceljs)
Excel-to-JSON Transformation Pipeline
Multi-Column Data Schema Normalization
Field Type Coercion & Integrity Checks
Batched Record Stream Processing
Memory-Efficient File Stream Handling
Subsystem StatusProduction Ready
[04]Document Engine

Automated Document & PDF Generation

Core Skills & Capabilities:
Programmatic PDF Document Generation
Dynamic Legal Agreement Templates
Automated Variable Data Merging
Vector Graphic & Signature Embedding
Automated Document Archival
Secure Temporary File Cleanup
Subsystem StatusProduction Ready
[05]WhatsApp & Email APIs

Multi-Channel Customer Messaging

Core Skills & Capabilities:
Interakt WhatsApp Business API Integration
ZeptoMail Transactional Email Delivery
Automated Customer Notification Sequences
Document Attachment Dispatching
Delivery & Read Status Tracking
Fallback Messaging Logic
Subsystem StatusProduction Ready
[06]Platform Operations

DevOps, Security & Deployment

Core Skills & Capabilities:
Linux Virtual Private Server (VPS)
Nginx Reverse Proxy & Load Routing
PM2 Process Clustering & Zero-Downtime Reloads
Let's Encrypt SSL/TLS Certificate Automation
Linux Systemd Daemon Services
UFW Firewall & Network Security
Subsystem StatusProduction Ready
SUMMARY SPECIFICATION

Key Engineering Highlights

Engineered an automated loan processing engine replacing repetitive manual spreadsheet operations with automated backend pipelines
Developed a robust Excel-to-JSON data transformation pipeline parsing and sanitizing multi-column financial records
Implemented programmatic PDF generation dynamically compiling customized legal and loan agreements from structured JSON payloads
Integrated multi-channel automated customer messaging across Interakt WhatsApp Business API and ZeptoMail transactional email
Constructed event-driven webhook receivers connecting third-party communication receipts to internal workflow states
Deployed and configured the complete production server environment on a Linux VPS with Nginx reverse proxy, PM2 process management, and SSL
READY TO BUILD?

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