AI Accountant
Automated bookkeeping for Invotek AS. An AI agent on Discord processes receipts, invoices, and expenses by talking to Folio (banking) and Fiken (accounting).
You forward a receipt on Discord
→ Book-E extracts the data
→ Proposes an action (with confidence score)
→ Auto-approved (known pattern) or sent for review
→ Executed in Folio/Fiken
→ You get a confirmation in the thread
Architecture at a Glance
Components
| Component |
Role |
Code |
| Book-E |
Discord agent — extracts data, proposes actions |
automate-e repo |
| Accounting API |
Thin HTTP service — Folio/Fiken calls, event store |
ai-accountant repo |
| PostgreSQL |
Events, patterns, history |
StatefulSet on k3s |
| CronJob |
Daily compliance checks |
k8s CronJob |
Start Here
- What We're Building — the problem, the solution, the 16 use cases
- C4 Level 1 — who uses the system and what it connects to
- C4 Level 2 — the containers and how they communicate
- Clean Architecture — how code is organized inside each service
- Event Sourcing — why every action is an immutable event