Drive folder→decrypt if locked→extract text→parse rows→balance chain + tie-out check→statement key + row fingerprint→append new rows only→review tab for anything that fails
Same steps as an n8n workflow: Google Drive → Extract From File (PDF, password option) → Code node (parse + checks) → Google Sheets append. Everything stays on your own instance; no file is sent to an outside service.
1 · Incoming files
Extracted text:
2 · What the checks found
3 · Transactions sheet ( rows)
Why these three checks
- Statement key (account + period + closing balance): a file saved twice under a new name is skipped as a whole. File names are not trusted.
- Row fingerprint with the running balance: two $4.75 coffees on the same day have different balances after them, so both are kept. A key of date + amount + description alone would silently delete one.
- Balance chain and tie-out: every row must move the balance by exactly its amount, and opening + rows must equal closing. If text extraction drops a row at a page break, the statement is held for review instead of writing a sheet that looks complete but is not.