Predictive accounting on Aito โ multi-tenant, no model training
A working reference implementation of a predictive accounting SaaS. 255 customer companies, 128K invoices, one shared Aito instance โ predictions scoped per-tenant via customer_id in the where clause. No model training, no retraining schedule, no per-tenant pipeline.
Every feature is a query against the same multi-tenant Aito table. Pick a feature to read its implementation guide on GitHub.
Code an invoice, route it for approval, match a payment, flag what looks wrong โ every step one query.

Predict GL code + approver per invoice with the full $why factor decomposition
View Use Case โView Source โ
Type any field, the rest predict. Vendor โ fills GL, approver, cost centre, VAT
View Use Case โView Source โ
Bank transactions matched to invoices via schema link in one _predict invoice_id call
View Use Case โView Source โ
Inverse prediction โ if the actual GL is not in the top-3 predicted, flag it
View Use Case โView Source โDiscover statistical patterns and learn from human corrections โ close the loop without retraining.

Discover patterns with support and lift, drill into compounds via chained _relate
View Use Case โView Source โ
Two-pass _relate on overrides surfaces input โ output rules from corrections
View Use Case โView Source โ
Mined rules per-customer with lift, support, and override coverage
View Use Case โView Source โ
Real _evaluate accuracy on held-out samples with green/red diff vs majority baseline
View Use Case โView Source โOne Aito table, 255 tenants. Same vendor, different customer_id โ different prediction. No per-tenant infra.
Explore the source, data model, and architecture decisions
{
"from": "invoices",
"where": {
"customer_id": "CUST-0000",
"vendor": "Telia Finland Oyj",
"amount": 890.50
},
"predict": "gl_code",
"select": ["$p", "feature", "$why"]
}
One predictive database, every tenant scoped by customer_id, no model deployment between corrections
From live demo to your own data in three steps
Episto Oy
Putouskuja 6 a 2
01600 Vantaa
Finland
VAT ID FI34337429