Templates / Extract invoice data from Gmail PDFs to Google Sheets with OpenAI and Slack

Extract invoice data from Gmail PDFs to Google Sheets with OpenAI and Slack

Ready for 3.0

by Abhishek Gawade ✓ · 25 views · created 2026-06-13 · 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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 8 nodes and runs on Gmail events. Along the way it connects Gmail, OpenAI Chat Model, Google Sheets and Slack.

How it runs

Trigger: On Gmail events.

  1. Extract Text from PDF (Extract from File): extracts data from a file (pdf)
  2. Extract Invoice Fields (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Parse Invoice (JSON)
  3. Log to Bookkeeping Sheet (Google Sheets): append
  4. High-Value? (If): checks a condition and branches into true / false
  5. Send for Approval (Slack): post (message)

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) (New Invoice Email).

Nodes used (8)

From the author

Quick Overview This workflow monitors Gmail for emails with PDF attachments, extracts invoice fields with OpenAI, logs the results to a Google Sheets bookkeeping spreadsheet, and posts high-value invoices to Slack for approval. How it works 1. Triggers every…

Excerpt from Abhishek Gawade'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.