Invoice Management System
Full-stack AR invoice management with an NL chatbot and ML predictions
Open source Source
Built for accounts-receivable teams that track and query large volumes of customer invoices. A Java servlet backend (Tomcat) serves a React frontend and a REST-style API backed by MySQL, with invoice browsing and filtering by customer name, business code or open-amount thresholds, inline edits, and per-customer outstanding-balance summaries. A Node.js and Dialogflow chatbot answers plain-English questions against the same data. A separate Python/Flask model server exposes an XGBoost payment-behaviour predictor over HTTP, decoupled from the Java backend so the inference layer can evolve independently.
What it does
- Four services across four languages: Java/Tomcat servlet API, React data table, Node.js Dialogflow chatbot, Python XGBoost predictor, over MySQL via JDBC and REST/JSON
- XGBoost regressor over 50,000 invoices and 47 lifecycle columns, thresholded at 90% of the open amount into a full-vs-partial payment decision
- Regression plus a tunable threshold keeps the predicted amount available to collections and makes the tolerance a business parameter
- Missing shipping data encoded as a null-indicator feature
- Model-agnostic serving layer loads a pickled model and its matching transformation class by ID, so preprocessing is versioned with the weights
Pipeline
- 1Browser (React)
- 2Java Backend (Tomcat, Servlet API)
- 3MySQL (customer_invoice, 47 cols, 50k rows)
- 4Chatbot (Node.js, Dialogflow)
- 5Prediction Service (Flask + XGBoost)