Templates / Process Gmail invoices with OpenAI, Google Sheets, and Slack reminders

Process Gmail invoices with OpenAI, Google Sheets, and Slack reminders

Ready for 3.0

by WeblineIndia ✓ · 18 views · created 2026-09-07 · 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 18 nodes and runs on Gmail events (plus 1 other trigger). Along the way it connects Gmail, OpenAI, Google Sheets and Slack.

How it runs

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

  1. Download Invoice Attachment (Gmail): get
  2. Load Pending Invoice Records (Google Sheets): uses Google Sheets
  3. Extract Text from Invoice PDF (Extract from File): extracts data from a file (pdf)
  4. Calculate Remaining Due Days (Code): runs custom JavaScript code
  5. AI Invoice Data Extraction (OpenAI): uses OpenAI
  6. Generate Reminder Priority & Status (Code): runs custom JavaScript code
  7. Format Extracted Invoice Data (Code): runs custom JavaScript code
  8. Check Reminder Action Required (If): checks a condition and branches into true / false
  9. Check Existing Invoice Record (Google Sheets): uses Google Sheets
  10. Send Invoice Reminder Email (Gmail): uses Gmail

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

Services it uses

GmailOpenAIGoogle 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) (Monitor Incoming Invoice Emails).

Nodes used (10)

From the author

Quick Overview This workflow monitors Gmail for invoice emails with PDF attachments, uses OpenAI to extract key invoice fields, logs them to a Google Sheets tracker with duplicate detection, and sends daily payment reminder emails and Slack notifications…

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