1 Overview
IMAP or Gmail mailbox
→ Strong Filter (score ≥ 8 + PDF/image)
→ Gemini 2.5 (invoice|receipt|bill, confidence ≥ 0.85)
→ Upload receipt
→ Discord notify org adminsReplaces n8n. Each org can register unlimited inbound mailboxes from Dashboard → Configuration → Email automation.
2 Add mailboxes
- Sign in as org admin → Configuration → Email automation.
- Add IMAP (Hostinger: imap.hostinger.com:993) and/or Add Gmail (OAuth client + refresh token).
- Click Test, then Enable. Use Poll now to process immediately.
- Repeat to add more addresses or accounts — there is no mailbox limit.
3 Worker
- npm run worker:email (or EMAIL_WORKER_LOOP=1 for continuous polling)
- Docker Compose service: email
- Optional cron: POST /api/v1/internal/email/poll with INTERNAL_CRON_SECRET