All projects

End-to-End Sales Automation

Event-Driven Microservices with LLM Document Validation

End-to-end automation of the sales process, from document validation to invoice issuance. .NET Core microservices, RabbitMQ queues and an internal LLM replaced manual checks and cut each sale from 10–12 hours to about 1 hour.

The Challenge

Every sale required the customer's documents, stored in different formats (ID card, CPF, proofs, etc.), to be checked by hand before the invoice could be issued, followed by stock, warehouse, branch and transit checks. Each sale took 10 to 12 hours, depended on people being available, and had to stay reliable as volume grew.

The Solution

Documents sent by customers were stored in a GCP bucket. With the generated ID and path, a .NET Core microservice published the information to a RabbitMQ queue, consumed by an internal LLM that validated each document against the defined rules. Once every document was approved, the sale moved to another queue that orchestrated the next steps: invoice issuance and stock, branch and transit validations, all observed through Grafana. I worked on every stage, from building the microservices and integrating the queues to coordinating the team, often making the architectural decisions. It's one of the projects I'm proudest of.

Key Deliverables

  • Sales cycle cut from 10–12 hours to about 1 hour
  • LLM validation of PDFs and images against business rules
  • Document storage in a Google Cloud bucket
  • .NET Core microservices publishing to RabbitMQ
  • Queue-orchestrated invoicing with stock, branch and transit checks
  • End-to-end observability with Grafana
  • Architectural decisions and team coordination