Workflow: bank statement emails → balance check → Google Sheets (+ alert if numbers don't add up)

Hi all! I’m a mechatronics engineering student from Hungary and I built a small workflow for anyone who gets bank statements by email (MT940, camt.053, BAI2 or CODA files).

What it does

  1. IMAP trigger picks up emails with statement attachments
  2. Each file is sent to a balance-check API: opening balance + credits − debits must equal the bank’s closing balance, to the cent
  3. One row per statement goes to Google Sheets (account, balances, difference, verdict)
  4. If a statement is not VERIFIED (numbers don’t add up, or the file can’t be read), you get an alert email

Your RapidAPI key stays in an n8n Header Auth credential, it is not in the JSON. The free plan is enough to try it.

Workflow JSON + setup steps:

If you want to see the check on one file first (no sign-up, the file isn’t stored):

I tested it on n8n 2.44. Feedback is very welcome, especially if your bank’s files break it. I’d love to see weird exports.