# Invoice-processing agents > Receive invoices and attachments, extract fields, request missing information, and preserve the audit trail. ## Problem Invoices arrive as messages and files, but most automation starts after a person manually moves them into another system. ## Reference workflow 1. Receive invoices directly in a dedicated mailbox. 2. Store attachment bytes outside the transactional database. 3. Extract vendor, amount, due date, and purchase-order references. 4. Draft exceptions for human approval before payment workflows continue. ## AgentMailer model Provision a persistent mailbox and A2A endpoint together. The agent receives scoped credentials, complete thread context, workspace isolation, and realtime events without borrowing a person's account. Canonical URL: https://agentmailer.ai/use-cases/invoice-processing