Templates / Check supplier invoices from Gmail using OpenAI, Google Sheets and Slack

Check supplier invoices from Gmail using OpenAI, Google Sheets and Slack

Ready for 3.0

by Hamza Jamal Janjua · 5 views · created 2026-09-15 · Invoice Processing, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 17 nodes and runs on Gmail events (plus 1 other trigger). Along the way it connects Gmail, OpenAI Chat Model, Google Sheets and Slack.

How it runs

Trigger: On Gmail events (plus 1 other trigger).

  1. Keep only PDF attachments (Filter): keeps only the items that match a condition
  2. Alert finance that it broke (Slack): uses Slack
  3. Read the PDF (Extract from File): extracts data from a file (pdf)
  4. Pull the invoice fields (Information Extractor): extracts structured fields from text with AI, with model: Extraction model
  5. Supplier master (Google Sheets): uses Google Sheets
  6. Open purchase orders (Google Sheets): uses Google Sheets
  7. Invoices already posted (Google Sheets): uses Google Sheets
  8. Run the checks (Code): runs custom JavaScript code
  9. Did every check pass? (If): checks a condition and branches into true / false
  10. Inside the approval limit? (If): checks a condition and branches into true / false

…plus 4 more steps. See the full node list below.

Services it uses

GmailOpenAI Chat ModelGoogle SheetsSlack

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

  • Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Invoice arrives by email).

Nodes used (11)

From the author

Quick overview Watches a Gmail label for supplier invoice PDFs, reads the fields with OpenAI, then runs eight checks against supplier, purchase order and ledger data in Google Sheets. Clean invoices post to the ledger, large ones go to Slack for sign off, and…

Excerpt from Hamza Jamal Janjua's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.