A Java/Spring Boot telecom billing and collections application with configurable dunning workflows, role-specific dashboards and a LangChain4j assistant that calls authenticated Java tools.
CredFlow is a telecom billing and collections application built as a Java modular monolith with a React frontend. It brings prepaid and postpaid accounts, subscription plans, invoices, payments, reminders and collections activity into one relational business system. Administrators, customers and BPO agents use different interfaces backed by the same Spring Boot application and MySQL data model.
The operational side includes configurable dunning rules, scheduled collections checks, account restriction and curing workflows, notifications, BPO task management, and activity reporting. These functions share a domain model but remain organized around separate Java services, giving the application a clear internal structure without requiring distributed microservices for every business capability.
CredFlow also includes a Java-native AI customer assistant. LangChain4j connects Gemini to typed application tools that retrieve plan recommendations, customer invoices, active-plan details and account summaries. Customer-specific tools resolve identity from the authenticated Spring Security context and access data through existing Java services rather than exposing the database directly to the model. The result combines transactional application development, operational automation and practical AI tool integration in one project.
Project Objectives
Model prepaid and postpaid subscription accounts, billing cycles, invoices and payments in a cohesive relational domain.
Express collections escalation as configurable dunning rules and auditable actions.
Coordinate customer self-service, administrator operations and BPO agent work through role-specific interfaces.
Apply account speed restrictions and restoring actions according to collections or payment state.
The Problem
Telecom operators face chronic revenue leakage and high subscriber churn caused by delayed collections and disconnected, manual service restriction workflows. Legacy systems lack policy-driven automation and real-time service restoration upon payment, creating heavy administrative backlogs and negative customer experiences.
Approach & Solution
Engineered CredFlow as a robust, full-stack automated dunning and curing platform using Spring Boot 3, React, and MySQL. Implemented a stateless JWT security model across three dedicated operational roles (Admin, Customer, BPO Agent), a priority-driven rule engine for scheduled policy execution, and an event-driven curing pipeline that auto-restores customer lines immediately upon payment confirmation.
Outcomes
Implemented a three-role telecom operations prototype connecting billing, collections rules, BPO workflows and an authenticated LangChain4j tool-calling assistant in one deployable backend.
Target Personas
Active PersonaCore User
Telecom Customer
Ravi manages his telecom bills and services online but faces unclear billing details, delayed payment notifications, and uncertainty about service restoration. He needs a self-service portal to track invoices, make payments, receive timely updates, and get account-specific assistance through an AI chatbot.
System Architecture
Click to View Full Blueprint
Architecture Blueprint
Three-Tier Telecom Modular Monolith with LangChain4j Tool Calling
Three-Tier Telecom Modular Monolith with LangChain4j Tool Calling
A React/Vite UI communicates with one Spring Boot application through JWT-protected REST endpoints. Internal business modules use JPA/MySQL for authoritative state; a LangChain4j AiServices customer assistant uses Gemini and @Tool-annotated CredFlowTools Java methods to fetch authenticated account, plan and invoice data through application services.
Presentation Layer
Role-aware React application for admin operations, subscriber self-service and BPO work.
HTTP and Security Layer
Spring Security/JWT boundary and REST controllers for the distinct role groups.
Domain Services
Domain modules implement billing, dunning, payments, account curing, BPO tasks and notifications. LangChain4j tool methods call these services without bypassing business logic.
Persistence Layer
JPA repositories operate on normalized telecom entities in MySQL.
External Integrations
Gemini model execution, Twilio calls and email delivery are outbound adapters; the authoritative business state stays in the Spring Boot/MySQL application.
Technologies & Stack
Java
Spring Boot
Spring Security
Spring Data JPA
Hibernate
MySQL
MapStruct
React
Vite
JavaScript
Tailwind CSS
Axios
Recharts
LangChain4j
Google Gemini
Twilio
JUnit 5
Mockito
Radix UI
Framer Motion
Maven
Engineering Deep Dive
Production architecture, telemetry evidence, quality verification, and governance.
Testing Strategy & Quality Assurance
Comprehensive automated test suite with unit, integration, and end-to-end regression prevention.
Verified
Unit Coverage
85%
Integration Coverage
90%
Tests Passed
520passed
Comprehensive automated test suite combining JUnit 5, Mockito service-layer mocks, and Spring Boot integration slice tests. Validates security filter chains, rule execution idempotency, and transactional payment-curing consistency.
Performance, Benchmarks & Latency
Latency profiling, concurrency stress bounds, and optimization under peak traffic.
Verified
Sub-second (<1s) automated curing evaluation and service status restoration upon payment receipt. Indexed MySQL schema across account IDs, status flags, and overdue dates.
Observability & Metrics
Full-stack observability with OpenTelemetry, Prometheus exporters, and incident telemetry.
Verified
Execution audit logging for all automated dunning events, DunningEngineRun timestamp tracking, and live admin KPI telemetry with zero log loss.
Deployment & Infrastructure
Containerized workloads, cloud resource isolation, and automated GitOps release stages.
Verified
The repository provides a locally run React/Vite frontend and a Spring Boot application backed by MySQL with optional external AI and telephony credentials. This record describes a capstone system and does not claim a commercially deployed telecom service or a live card/payment processor.
Security, Auth & Data Governance
Least-privilege authorization, token lifecycle governance, and auditable event logging.
Verified
Spring Security and JWT authenticate application routes, while the LangChain4j customer tools use SecurityContext-derived identity when reading account-specific data. The source includes a tool-binding boundary with typed operations, not an assertion that a language model is an authorization authority or that the entire application has third-party security certification.
Project Timeline
01
Nov 01 – Nov 04, 2025
Enterprise Foundation & Stateless RBAC
Architected Spring Boot 3 + React foundation with stateless JWT authentication, 3-tier role authorization (Admin, Customer, BPO Agent), and normalized MySQL relational schema.
02
Nov 05 – Nov 08, 2025
Customer Ledger & Plan Marketplace
Built subscriber self-service portal with multi-account balance cards, prepaid/postpaid plan marketplace, invoice breakdown, and instant payment checkout simulation.
03
Nov 09 – Nov 12, 2025
Automated Dunning Engine
Engineered daily scheduled rules engine evaluating overdue thresholds to execute automated email warnings, bandwidth throttling, and service restriction with execution deduplication.
04
Nov 13 – Nov 15, 2025
Real-Time Curing & Service Restoration
Implemented transactional post-payment curing loop that verifies zero remaining overdue invoices and auto-restores customer bandwidth and line status in sub-second time (<1s).