"The statement comes in by email. Out comes the SAP load file and the audit report — classified, totalized, ready to post."
End-to-end automation of bank debit-note generation for SAP. The process receives statements by email, structures them with AI, cross-references them against accounting catalogs, and delivers two files to Google Drive: the SAP load file and a classified list for audit.
Companies migrating to SAP often inherit a recurring manual process: classify every bank transaction, identify items subject to accounting entry, and assemble the load file. A person opens the CSV, walks the rows, cross-references against an Excel of criteria, splits amounts by internal rules, assembles header and totalizer, and uploads the file to the system.
| Dimension | Before (manual) | After (automated) |
|---|---|---|
| Time per statement | 30 to 45 minutes | ~30 seconds |
| Traceability | Manual / Excel sheet | Log + versioned files |
| Scalability | 1 bank per operator | N banks in parallel |
| Error risk | High — manual classification | Low — auditable rules |
The process runs whenever a statement arrives in a dedicated mailbox. No human intervention between sending the email and the final files in Drive.
gemini-2.5-pro receives the CSV and returns a JSON object with the statement header and an array of transactions.The automation is implemented on Make.com, which orchestrates the external services. No servers to administer, no code to maintain, no lock-in: if an accounting criterion or BCRA code changes tomorrow, everything is visible and editable.
| Platform | Make.com — orchestration and execution engine | |
| AI | Google Gemini 2.5 Pro — statement structuring | |
| Reference data | Google Sheets — BCRA Entities and Criteria catalogs | |
| Trigger | Email (custom mailhook) — statement attachment intake | |
| Storage | Google Drive — timestamped output repository | |
| SAP output | Plain text (.txt) delimited by pipe (│) | |
| Audit output | CSV — 17 columns | |
Every rule is unambiguously documented. Any functional change starts by updating this section — not by touching the code.
Cuenta_Banco field in the header against the BCRA Entities catalog. Exact-match. If the bank isn't in the catalog, the run continues with an incomplete header — the catalog must be kept up to date.Codigo_Proveedor (400000000 + BCRA padded), N_Factura, Folio, Ejercicio, Periodo, and the date in DDMMYY format.Cod_Op_Bco as the key. Returns: category, key, ledger account, description, tax indicator, cost center, and sign.Cod_Op_Bco has no match in Criteria are flagged UNCLASSIFIED in the seven accounting columns of UMSATZ. They don't affect SAP (excluded by RN-04). An operational signal that the catalog should be extended.Every run produces two timestamped, versioned files. The first feeds SAP; the second is for audit.
Make.com keeps an auditable log for every run: email received and attachments, AI model response, bundles processed per module, files uploaded to Drive, errors and retries. Every run can be audited individually from the console.
If your accounting team assembles load files manually every month, book a call. The first conversation is to understand your chart of accounts, your catalogs, and your criteria — and send you a concrete proposal.