Skip to main content

Keptcash

Overdue invoices sit unpaid because nobody knows what is blocking each one.

My part
Core engineer for Ledgercross: 78 of 185 commits and 56 merged PRs (case engine, AI pipeline, payment matching, evals, deploy).
When
2026
Merged PRs
56
Days
9
My commits
78
Live
Sep 2026

The problem

Overdue invoices stall a company's cash, and the reason each one is unpaid is scattered across the accounting system and email threads, so collection emails are guesses.

What I built

Keptcash syncs QuickBooks and Gmail, diagnoses the blocker behind each overdue invoice with evidence, drafts a targeted collection email that a human approves and sends, tracks promises and disputes, matches incoming payments and reports the dollars it recovered, with an append-only audit trail.

How

  1. 01

    Collection case engine

    A case state machine and case opener for every overdue invoice, with rule-based blocker diagnosis and an LLM fallback.

  2. 02

    Grounded AI drafts

    An LLM provider layer on Gemini in Vertex AI, hybrid retrieval over invoice documents, and a deterministic grounding checker that hard-fails any draft the evidence doesn't support; drafts wait in an approval queue.

  3. 03

    Payments and attribution

    Exact payment auto-match, an unmatched-payments queue with manual match, and dollars-recovered attribution with analytics.

  4. 04

    Evals, tests and deploy

    An eval runner with classification and diagnosis golden sets and an injection-resistance suite, Playwright e2e over every screen, role and worker loop, and production images deployed with Dokploy.

Stack

  • Python
  • FastAPI
  • Gemini
  • PostgreSQL
  • Vertex AI
  • Next.js
  • Playwright
  • Dokploy

More case studies

Have something in mind?

My inbox is open.

Say hi
© 2026 Ehsanul Haque Siam. Dhaka, Bangladesh.