Templates / File and classify Gmail invoices, orders, and payouts with OpenAI and Google Sheets

File and classify Gmail invoices, orders, and payouts with OpenAI and Google Sheets

Unknown

by Avkash Kakdiya ✓ · 8 views · created 2026-09-29 · Document Extraction, AI Summarization

Unknown. This template uses community nodes we can't verify statically. Uses community nodes that can't be verified statically (unverified community packages are off by default in 3.0). Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 41 nodes and runs on a schedule (every hour) (plus 1 other trigger). Along the way it connects Gmail, OpenAI, Google Sheets and Google Drive and 2 more.

How it runs

Trigger: On a schedule (every hour) (plus 1 other trigger).

  1. Get many messages (Gmail): get many
  2. Message a model (OpenAI): uses OpenAI
  3. Message a model (OpenAI): uses OpenAI
  4. Send a message (Discord): work with message
  5. Send a message (Gmail): uses Gmail
  6. Code: runs custom JavaScript code
  7. Switch: routes items into 6 branches
  8. Extract Expense Data (OpenAI): uses OpenAI
  9. Extract Sales Data (OpenAI): uses OpenAI
  10. Extract Settlement (OpenAI): uses OpenAI

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

Services it uses

GmailOpenAIGoogle SheetsGoogle DriveDiscordPdfbolt (community)

Before you upgrade to n8n 3.0

We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).

  • Check that n8n-nodes-pdfbolt is verified or supports 3.0 (used in PDFBolt).

Nodes used (12)

From the author

Quick overview This workflow runs hourly to process unread Gmail messages, uses OpenAI to classify them (sales, expense, settlement, transaction, notification, other), extracts key fields for expenses/sales/settlements, uploads supporting PDFs to Google…

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