n8n template

PDF Invoice to Google Sheets

Invoice PDFs from Gmail become checked rows in Google Sheets: vendor, numbers, dates, tax and total.

Typing supplier invoices into a spreadsheet is slow, and it's where mistakes creep in.

When an invoice PDF arrives in Gmail, this workflow reads the text, has an AI model pull out the vendor, invoice number, dates, currency, subtotal, tax, total and tax id, and checks that the numbers add up. Each invoice becomes one row in your Google Sheet, marked OK or Review with the reason.

Invoices that need a look can alert you on Telegram.

How it works

  1. Gmail picks up new emails with a PDF invoice attached.
  2. The PDF text is read and the AI extracts the invoice fields.
  3. Required fields and subtotal + tax = total are checked.
  4. A row is added to Google Sheets; Review rows can alert you on Telegram.

What's included

  • n8n workflow, ready to import
  • Header row for your Google Sheet
  • Setup guide (PDF)
  • Test mode with two sample invoices

You'll need

  • n8n 2.x
  • Gmail and Google Sheets
  • An AI API key or Ollama
  • Optional: a Telegram bot for alerts

Questions

Can it read scanned invoices?

Only PDFs with real text. Scanned images are added as Review rows so nothing is missed.

Which AI model does it use?

You choose in the Config node: Claude (Anthropic), OpenAI, Google Gemini, or a local Ollama model. You use your own API key; nothing goes through us.

Which n8n version does it need?

It was built and tested on n8n 2.22 (self-hosted). It uses only n8n's built-in nodes, so it also runs on n8n Cloud.

What if it doesn't work for me?

Email us within 14 days and we'll help you get it running. If we can't, we'll refund you in full.

Can I use it for clients?

Yes. One purchase covers one business: yours, or one client you build it for. You can change it as much as you like. You can't resell or share the files themselves.