Skip to content

Document intake automation

PYMES live in PDFs and photos of thermal receipts. Bind the AI + file infra together so paper becomes bookkeeping.

Related code: app/graphql/files/, app/graphql/chats/, app/graphql/invoices/tabular/, app/graphql/expenses/, app/graphql/bank_statements/.

Items

  • Photo → supplier invoice via AI extraction.
  • Acceptance: phone-uploaded photo / PDF returns a draft supplier invoice with supplier (matched by RUC), date, line items, totals, ITBMS. User confirms and posts.
  • Forward gastos@tu-empresa.com → expense.
  • Acceptance: per-tenant ingestion address; inbound mail with attachment creates a draft expense linked to the matched supplier and category.
  • Photo of thermal receipt → expense.
  • Acceptance: OCR + categoriser; one tap to approve; receipt image attached to the expense.
  • CUFE QR scan → supplier invoice lookup (idea from IDEAS.md).
  • Acceptance: scan or paste a CUFE → call DGI lookup → pre-fill supplier invoice with all the legal data.
  • Bank statement auto-import from email.
  • Acceptance: tenant-specific inbox or vendor IMAP connection ingests bank PDFs nightly and triggers the existing parser.
  • Supplier-invoice / expense duplicate detector.
  • Acceptance: SHA-dedupe on file + (supplier, date, total) fuzzy match warns before posting a duplicate.
  • Confidence threshold + queue.
  • Acceptance: high-confidence extractions auto-post; low-confidence land in a "Por revisar" queue.

Shipped

None yet.