PostLotse
AI agent for SME email triage — categorises, prioritises and drafts replies, with a human in the loop.
Problem & context
Email overload costs SMEs hours every week
Requests, invoices, appointments and spam land in one inbox. An agent that classifies, prioritises and drafts routine replies — escalating tricky cases — gives that time back.
Solution
An agent with tools — not a chatbot
Tool-calling (set label, draft reply, create appointment) in an agent loop with an approval step.
Architecture
Clean Architecture, four layers
Triage classes & escalation rules
Agent loop, tool orchestration, HITL
IMAP, Mistral, tool registry
FastAPI + HTMX dashboard
Process history
From plan to deploy — six phases
- 01
Setup & architecture
IN PROGRESSClean-arch skeleton, Docker, CI. ADR-0001: tool-calling agent over rigid rules.
- 02
Classification
PLANNEDCategories, few-shot prompts, measure baseline.
- 03
Tool-calling
PLANNEDTools exposed, agent loop with Mistral.
- 04
Human-in-the-loop
PLANNEDEscalation + approval before any action.
- 05
Eval harness
PLANNEDRouting F1, tool-call success, escalation rate.
- 06
Deploy & docs
PLANNEDDocker deploy, README, ADRs, datenschutz.md.
Results
Made measurable
Will be filled with real numbers after the eval phase — and then feeds into the CV.
Stack & compliance
GDPR: emails are personal data → EU/local LLM, data minimisation. Human-in-the-loop prevents uncontrolled actions.