Check the sum before you trust it
Any model can read a table off a PDF. The part that goes wrong is trusting the same model to add it up. Below is how I actually build this: the AI transcribes, a Code node does the arithmetic, and the two never get to disagree without somebody finding out.
Buy the download · $9 The n8n download, $9 USD
The question
this build answers
How do I get a table out of a PDF report without trusting the AI's own maths?
From the first trigger
to the finished job.
The working version, step by step.
Watch one label, not the inbox
A Gmail trigger watches a single label for report attachments, the same security boundary I use on every mailbox-triggered build. Only PDFs move past the filter; anything else in that label is ignored.
Transcribe, don't calculate
I tell the extraction prompt to copy the total exactly as printed on the document, not compute one. That instruction is the whole point of the build. If the model calculated its own total, the reconciliation step downstream would just be checking the model against itself.
Add it up in code, not in the model
I built a plain Code node that sums the line items in JavaScript and compares that sum to the stated total within a tolerance you set. Nothing here calls a model. A demo that reconciles five clean reports proves nothing; this is what survives a report where the model misread one row.
Write only what checked out
A reconciled report produces line-item rows in Line Items. A mismatch creates a separate Needs Review row with the difference and can trigger a Slack alert. Review the source PDF before accepting or correcting a flagged report.
The n8n download, $9 USD
Extract PDF report tables into Google Sheets and flag totals that don't reconcile
Fifteen working nodes make up this one, the setup written on the canvas and a setup guide I wrote for every node. It reads the total off the PDF and checks the sum in code, never in the model. This purchase covers the files; connect your own accounts, or arrange hands-on installation as a separate service with its own scope and price.
Buy the download · $9Need more workflows? $39 USD
Money Pack
Keep reminders, payment forecasts, payout checks and PDF totals in one download. I include four products and seven workflow files; configure and test each workflow separately against your own records.
Buy the Money Pack · $39Why the model shouldn't grade its own homework
I have watched an extractor misread one figure on an otherwise clean table and hand back a total that looked entirely plausible. Nothing about that error is visible from the output alone, because a wrong number reads exactly like a right one until somebody checks it against the page.
So I put the check outside the model. A Code node reads the same rows and adds them up itself, in ordinary arithmetic nobody has to trust. If that sum doesn't match what's printed on the document, the report is flagged rather than booked.
What actually breaks
I've found some report types never carry a printed total at all, certain inventory sheets among them. Left as-is, those get flagged as a mismatch every time, which is the honest outcome: there's nothing to check the sum against, so it should not be booked unread.
I fill in a row missing its own line total from quantity times unit price for that row alone; the document's stated total is never touched by that shortcut, because the whole design rests on that number staying untouched by anything but the page itself.
Before you process live reports
The related case studies below show other operational work. Connect and test your own report mailbox, sheet and Slack channel before processing live reports.
Before you spend anything
The fit matters.
Who should not buy this
If your reports already arrive as CSV or a spreadsheet, there is no PDF for me to read and this buys you nothing. And if you're genuinely fine trusting a model's own arithmetic on financial totals, the reconciliation step is overhead you don't want.
If every report you receive looks nothing like the last one, in a way where even the columns change shape, I need to tailor the extraction prompt to your own report family before this is worth running unattended.
Yours to keep
What lands
on your desk.
- An importable n8n workflow, setup guide and start-here instructions
- Settings for your report label, sheet tabs and reconciliation tolerance
- A Line Items path for matches and a Needs Review path for mismatches
See the work
Open the proof.
Published case studies of running systems. Each links to the thing itself.
A few useful
answers.
Does the AI decide whether the report is correct?
No, the AI only transcribes what's printed on the page. A plain Code node does the arithmetic and the comparison, and that step never calls a model.
What happens when the sums don't match?
The line items stay out of Line Items. A Needs Review row records the computed total, stated total and difference, and the configured alert can notify Slack.
What if a report has no printed total at all?
It's flagged as a mismatch by design, since there's nothing to check the extracted sum against. You read it before it reaches your books, same as any other flagged report.
Licence and support
Personal and commercial use on your own instances and for your own clients. Do not resell or redistribute the files themselves.
Email support@fractionalhq.uk and include your order email.
Ways to get this
Download it, have me install it,
or have me build it to fit.
Download it
$9 USD
The workflow files and the setup guide, to import into your own n8n.
Buy the download · $9Have me install it
$15 USD
I can install it on your own n8n and accounts for $15. You sign in and paste your keys into n8n by your own hand while I do the rest. After a test run with you, I fix anything in my install that breaks in the first 14 days.
Book the install · $15Have me build it to fit
Quoted to your job
Tell me what your version needs to do. One line is enough to start.
Start a brief


