konbi's local AI in Bulwark: automatic mail sorting
- JavaScript 76.5%
- Python 23.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| scripts | ||
| src | ||
| test | ||
| .gitignore | ||
| CHANGELOG.md | ||
| LICENSE | ||
| manifest.json | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| SPEC.md | ||
bulwark-ai
Optional since 2026-11-30 (konbi/infra#31, wiki decision 127): switched on or off with the
stack's scripts/modules.py (ai); off on konbi's dev server.
konbi's local AI inside Bulwark. The model (Ollama, ministral-3:3b) runs on konbi's own server; emails never leave it.
- Automatic mail sorting (wiki decision 52): one label on each new inbox email, from a fixed list (Action needed, Invoices, Clients, Newsletters, Notifications, Personal). On for everyone; each person can turn it off under Settings → Add-ons → AI. The labels are added to the person's tags, named in their language, whenever they're missing (to get rid of them for good, turn sorting off).
- Email → calendar event (decision 53): "Add to calendar" on an open email or a row's menu; the AI fills in title, day, start, length and place in about 10 s (never overwriting what you typed), warns when you're already busy then, and you add the event to the calendar you pick. An event made from an email in a project joins that project.
- Task drafts from emails live in the Tasks plugin (bulwark-vikunja 0.8.0).
The sorting runs on the server (infra/stack/sftpgo-hooks/mail_sorter.py, ai_sort.py); this plugin only shows the switch and adds the tags. The "service" credential is provisioned automatically (PLUGIN_PROVISION ai/service).
Build: npm install && npm run package → bulwark-ai.zip; texts in scripts/locales.py (python3 -I scripts/locales.py).