Templates / GPT-4.1-mini Powered Invoice Processing from Gmail to Google Sheets with Slack

GPT-4.1-mini Powered Invoice Processing from Gmail to Google Sheets with Slack

Ready for 3.0

by koichi nagino ✓ · 119 views · created 2025-11-16 · 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 17 nodes and runs on Gmail events (plus 2 other triggers). Along the way it connects Gmail, OpenAI Chat Model, Slack and Google Sheets.

How it runs

Trigger: On Gmail events (plus 2 other triggers).

  1. 2. Get Email Attachments (Gmail): get
  2. 8a. Extract Invoice ID (Edit Fields (Set)): sets 1 field: invoice_id
  3. 8b. Extract Invoice ID (Edit Fields (Set)): sets 1 field: invoice_id
  4. 3. Extract Text from PDF (Extract from File): extracts data from a file (pdf)
  5. 9a. Update Status to Approved (Google Sheets): update
  6. 9b. Update Status to Rejected (Google Sheets): update
  7. 4. Prepare Text for AI (Edit Fields (Set)): sets 1 field: clean_text
  8. 10a. Send Approval Confirmation (Slack): uses Slack
  9. 10b. Send Rejection Confirmation (Slack): uses Slack
  10. 5. Extract Invoice Data with AI (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser

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

Services it uses

GmailOpenAI Chat ModelSlackGoogle Sheets

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

Nodes used (10)

From the author

AI-Powered Invoice Processing from Gmail to Google Sheets with Slack Approval This workflow completely automates your invoice processing pipeline. It triggers when a new invoice email arrives in Gmail, uses AI to extract key data from the PDF attachment, logs…

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