Note of the Week 09 · Understand before you automate

The most-viewed n8n automation in finance: Gmail invoices to a sheet, with GST/QST checks

We went through n8n's 14,315 public templates. The most-viewed finance one moves PDF invoices from email to a sheet. Here is our version, with GST/QST checks, ready to download.

Automation and AI

Leer en españolLire en français

In this note
  1. What people look at most in n8n
  2. The most-viewed in finance: invoices from email to a sheet
  3. Our version, built for Quebec
  4. How to set it up
  5. What it costs, in Canadian dollars
  6. Risks and limits
  7. First step in 15 minutes
  8. What if this ran on its own?
  9. Sources

We wanted to know which automation n8n users ask for most. n8n is a tool that connects apps with little or no code. Instead of guessing, we counted. n8n’s public library shows how many times each template has been viewed. On November 16, 2026 we pulled the data for 14,315 templates.

What people look at most in n8n

The ten most-viewed templates, according to n8n’s public counter:

#TemplateViews
1AI agent chat780,399
2Creating an API endpoint (tutorial)422,411
3Building Your First WhatsApp Chatbot331,713
4Angie, personal AI assistant with Telegram326,067
5Scrape and summarize webpages with AI291,546
6Very quick quickstart (tutorial)232,320
7AI viral videos for TikTok, YouTube and Instagram214,907
8AI agent that can scrape webpages211,623
9Multi-platform social media content with AI205,470
10Pulling data from services (tutorial)194,346

Two honest warnings. These are page views, not installs: n8n does not publish how often each template is used. And almost all of the top 10 are chatbots, tutorials and social media content. Useful, but not what saves a small business time at month-end.

The most-viewed in finance: invoices from email to a sheet

Filter for finance and the most-viewed template is “Invoice data extraction with LlamaParse and OpenAI” (37,004 views, rank 93 of 14,315). Second is “Invoices from Gmail to Drive and Google Sheets” (27,090 views). Both do the same thing: take the PDF invoice that arrives by email, let AI read the data, and put it in a sheet. n8n’s “Invoice Processing” category already holds 464 templates.

It makes sense. Typing supplier, date, subtotal, GST, QST and total from every invoice by hand is slow and dull, and it is where errors start.

Our version, built for Quebec

We built our own workflow with the same idea, plus a check the generic templates do not have:

  1. Gmail: every hour it looks for emails with a PDF that do not yet have the invoices-processed label.
  2. Split PDFs: if an email has several PDFs, each one is handled on its own. Logos and images are ignored.
  3. Read the PDF text.
  4. Does it have text? If the PDF is a photo or a scan, we do not hand it to the AI (it would guess). It goes straight to the sheet marked REVIEW.
  5. AI: pulls the supplier, invoice number and date, who it is billed to, subtotal, GST, QST, total, currency and the supplier’s registration numbers. The prompt tells it to copy only what is written.
  6. Fixed rule, no AI: checks that subtotal + GST + QST = total, that GST is 5% and QST 9.975% of the subtotal, that the GST number looks like 9 digits + RT + 4 and the QST number 10 digits + TQ + 4, and flags an NR-type QST number (that QST does not give an ITR, as we saw in note 06).
  7. Google Sheets: adds a row with everything, plus a status column (OK or REVIEW) and the reason.
  8. Gmail: adds the invoices-processed label so the same invoice is not read twice.

The workflow does not pay, approve or send anything. It only records and flags. A person still makes the call.

Download: n8n workflow in English (JSON). We imported it into n8n 2.47.7 with no errors and tested the fixed rules with three test cases: a clean invoice, one with an NR-type QST number and one whose total does not add up. We did not test it with your OpenAI account or your Gmail: that test is yours.

How to set it up

  1. In n8n, use Import from file and pick the JSON.
  2. Connect your Gmail, Google Sheets and OpenAI accounts in the nodes with a red triangle.
  3. In Gmail, create the label invoices-processed. Pick it in the last node.
  4. Create a Google Sheet with a tab named Invoices. Paste its link in the Google Sheets node.
  5. Send yourself 3 or 4 real invoices and compare each row with the paper.
  6. Only then turn it on.

What it costs, in Canadian dollars

PiecePublished priceIn CAD (approx.)
n8n Starter, hosted by n8n€20 a month, billed annually$31.47 a month
n8n Pro, hosted by n8n€50 a month, billed annually$78.67 a month
n8n Community, self-installedFree$0 licence, plus your server
OpenAI gpt-4.1-mini, inputUS$0.40 per million tokens$0.57 per million
OpenAI gpt-4.1-mini, outputUS$1.60 per million tokens$2.28 per million

Converted with Bank of Canada rates of November 13, 2026: 1 EUR = 1.5734 CAD and 1 USD = 1.4257 CAD. Prices change; check the n8n and OpenAI pages before you decide.

Our AI estimate: if a one- or two-page invoice uses about 3,000 input tokens and 500 output tokens (an assumption; your OpenAI dashboard will show the real figure), it comes to about $0.003 CAD per invoice. 200 invoices a month stay under $1 CAD. The AI is not the expensive part: setting it up properly and reviewing is.

Risks and limits

  • The AI makes mistakes. It misreads a total, confuses GST with HST, or leaves a field empty. That is what the REVIEW column is for. Each month, also check a sample of the rows marked OK.
  • A correct format is not a valid number. The rule checks the shape of the number, not whether the supplier is really registered. For that, use the CRA GST/HST Registry and Revenu Québec’s QST number validation service.
  • Exempt items and mixed rates. If an invoice mixes exempt and taxable items, the 5% and 9.975% rule will flag REVIEW even when the invoice is fine. That is on purpose: better one alert too many.
  • Law 25. If hosted n8n (its servers are in Frankfurt, according to n8n) or OpenAI process personal information outside Quebec, section 17 requires a privacy impact assessment and a written agreement first. If that stops you, n8n Community can be installed on a server in Canada.
  • It does not replace your records. The CRA generally asks you to keep records for six years from the end of the last tax year they relate to. The sheet helps you search; the original PDF is still the document.
  • Before you file. This workflow is an educational example. Confirm the GST/QST rules with your accountant and the Revenu Québec and CRA pages.

First step in 15 minutes

Before installing anything, open your email and count how many PDF invoices you got last month and how long it took to type them in. If it is under 20, it may not be worth it yet. If it is 100 or more, this workflow gives you back hours every month.

Then test the idea with a single invoice. Open the PDF, copy the text and paste it into ChatGPT, Claude or the assistant you already use, with this prompt:

You are an accounts payable assistant in Quebec. Below is the text of a supplier invoice. Copy only what is written; if a field does not appear, write "missing". Do not make anything up.
1) Return a table: supplier, invoice number, date (YYYY-MM-DD), billed to, subtotal, GST, QST, total, supplier GST number, supplier QST number.
2) Check and show the math: does subtotal + GST + QST = total? Is GST 5% of the subtotal and QST 9.975%? Does the GST number look like 9 digits + RT + 4 and the QST number 10 digits + TQ + 4? Does the QST number start with NR?
3) End with "OK" or "REVIEW" and the reason in one line.
[paste the invoice text here]

Compare the result with the invoice. If the invoice holds personal information (for example, from a self-employed supplier), remove it before you paste.

What if this ran on its own?

The workflow in this note already runs on its own: it checks the inbox every hour and records each invoice in the sheet. The checks on sums, rates and numbers are fixed rules, with no AI. The AI only reads the PDF and, by our estimate, costs under $1 CAD per 200 invoices. FluxLogic AI helps you install it on a server in Canada, tune the rules to your suppliers and connect it to your accounting system.

Sources

Frequently asked questions

Do I need to code to use this workflow?

Not to import it. You do need a quiet hour to connect Gmail, Google Sheets and OpenAI, create a label and a sheet, and test with real invoices. If you have never used n8n, get help the first time.

Can the AI misread an invoice?

Yes. That is why the workflow does not pay or send anything: it only records. A fixed rule checks the sums, the tax rates and the registration numbers, and marks REVIEW when something is off. A person checks those rows, and a sample of the OK ones.

What does it cost in Canadian dollars?

n8n hosted by n8n starts at €20 a month billed annually, about $31.47 CAD at the Bank of Canada rate of November 13, 2026. The Community edition you install yourself is free, but you pay for the server. The AI, with the default model we set, comes to under $1 CAD per 200 invoices by our estimate.

What about Law 25?

An invoice can hold personal information (for example, from a self-employed supplier). If n8n or the AI process that data outside Quebec, the law requires a privacy impact assessment and a written agreement first. Check it with whoever handles privacy in your business.

How to cite this note

Paez Ayala, J. M. (2026). The most-viewed n8n automation in finance: Gmail invoices to a sheet, with GST/QST checks. FluxLogic SI. https://fluxlogicsi.com/en/cases/gmail-invoices-to-a-sheet-with-ai-and-gst-qst-checks/

Juan Manuel Paez Ayala · Longueuil, QC
About Juan Manuel →

This note in your inbox

Get this note by email

We’ll send it once to this email. Subscribing to the newsletter is optional.