Email automation

Org admins add as many Hostinger IMAP or Gmail mailboxes as needed. The in-app worker filters, classifies with Gemini, uploads receipts, and Discord-notifies admins.

Open dashboard

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 admins

Replaces n8n. Each org can register unlimited inbound mailboxes from Dashboard → Configuration → Email automation.

2 Add mailboxes

  1. Sign in as org admin → Configuration → Email automation.
  2. Add IMAP (Hostinger: imap.hostinger.com:993) and/or Add Gmail (OAuth client + refresh token).
  3. Click Test, then Enable. Use Poll now to process immediately.
  4. 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