In a public institution, every citizen request has a legal deadline for a reply. And that deadline starts counting when the request arrives, not when someone opens it. When emails are read, sorted, and forwarded by hand, the days slip away in the inbox.
We worked on bringing that process down to minutes. These are the most important lessons.
1. Rules first, then the model
The temptation is to ask artificial intelligence to decide everything. It works better the other way around. The institution already knows many things with certainty: which senders belong to which area, which types of request have a fixed procedure, which words signal an urgent matter. Those rules come first. The model comes in afterwards, for what the rules cannot read: the meaning of a long text, a poorly written request, or a scanned attachment.
2. Sorting is not enough
Knowing what a request is about is half the work. The other half is getting it to where it gets resolved:
- Filing it in the document management system, with its number.
- Assigning it to the responsible area, following the institution’s routing rules.
- Notifying the citizen with an acknowledgment that confirms the request was received.
When all three happen in minutes, the legal clock starts with the request already in the hands of whoever must answer it.
3. What is ambiguous goes to a person
Some emails fit no rule and the model cannot sort them with confidence. Forcing an answer is the worst possible mistake. Those cases go to a person, with the text, the proposed classification, and the concrete reason for the doubt. The person decides in seconds, and that decision helps refine the rules.
A system that knows how to say “I am not sure” is more trustworthy than one that always answers.
4. Everything must be reconstructable
Oversight bodies ask what happened to each request: when it arrived, who sorted it, why it went to that area, and who answered. Every step is recorded with its time and reason, so the answer is a query, not an investigation.
5. Measure before celebrating
Before calling the process done, we review with the institution’s team how many cases went to human review and why. That review, done regularly, is what keeps the system tuned when the types of request, the senders, or the regulations change.