OpenClaw · Detached Finance · Algorithm Demo

Bank Statement Category Algorithm

Demo untuk flow yang tadi: CatDict browser, CategoryAlgo, manual learning loop, dan save-algo-results. Fokus pada classification engine, bukan GL posting.

CategoryAlgo CatDict Rule Match Fuzzy Fallback Review Loop
0.5× ← Perlahan · Cepat →
0%Stage 0 / 7 · Idle
ALGTekan Play Demo untuk lihat bagaimana CategoryAlgo bergerak dari keyword match ke review fallback.
Demo Complete — Algorithm Flow Ready

01 WhatsApp Command

02 Requirement Analysis

4Sample Rows
2Rule Matches
1Fuzzy Fallback
1Needs Review
4Detected Categories
Menunggu Sedang aktif Selesai
This demo reflects the algorithm flow from CategoryAlgo.php and the learning surface in catdict.php.

03 PHP Algorithm Flow

1
IN
Normalize descriptionTrim, uppercase, and prep the bank text
2
RM
Run rule / keyword matchMatch against known catdict rows and patterns
3
FB
Fallback if neededUse fuzzy or manual review path when confidence is low
4
SV
Save resultPersist algo_category, algo_reason, and review flag

04 Algorithm Diagram

Menunggu Sedang aktif Selesai

05 CatDict + Review Loop

What CatDict does

  • Stores learned descriptions and categories
  • Helps future runs hit better matches
  • Acts as the learning surface, not just a lookup table

What save-algo-results does

  • Writes algo_category and algo_reason back to transactions
  • Marks low-confidence rows for review
  • Keeps the classified output searchable later
Input

Bank statement row

Description, debit, credit, and source sheet arrive from recompile-mbb.

Decision

CategoryAlgo

Match rule, fallback, or review path based on confidence.

Memory

CatDict

Manual category corrections improve the next run.

For this demo, the URL you should share is https://ainna.bond/ainna/demos/bank-statement-category-algo/.

06 Live Classification Sample

Ready

07 Algorithm Report

Demo
Category Algorithm
Rows
4
Rule Matches
2
Fallback
1
Needs Review
1
Status
Completed
This demo is meant to show the real flow: catdict.php for learning/review, CategoryAlgo.php for inference, and save-algo-results.php for persistence.

Terminal Log

[SISTEM] Category algorithm demo sedia

System Architecture

IN Input Layer
Bank statement row
Source sheet
Debit / credit
AL Algorithm Layer
CategoryAlgo.php
Rule match
Fallback logic
LR Learning Layer
catdict.php
Manual category save
Review queue

Safety Notes

  • Review low-confidence rows before using the categories in production.
  • CatDict is a learning surface, not the sole source of truth.
  • Keep the manual override path available for exceptions.
  • Browser demo uses sample rows only.