Templates / Process invoices and send weekly AI reports with OpenAI and Gmail

Process invoices and send weekly AI reports with OpenAI and Gmail

Ready for 3.0

by ResilNext ✓ · 69 views · created 2026-03-23 · 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 19 nodes and runs when someone submits an n8n form (“Invoice Upload - AI Processing System”) (plus 1 other trigger). Along the way it connects Gmail and OpenAI Chat Model.

How it runs

Trigger: When someone submits an n8n form (“Invoice Upload - AI Processing System”) (plus 1 other trigger).

  1. Workflow Configuration (Edit Fields (Set)): sets 2 fields: reportRecipientEmail, validCurrencies
  2. Fetch Weekly Invoices (Data table): get
  3. Store Raw Form Submission (Data table): uses Data table
  4. Generate Weekly Report (AI Agent): runs an AI agent, with model: OpenAI GPT-5-mini Model for Reports
  5. Extract Invoice Content (Extract from File): extracts data from a file (pdf)
  6. Send Weekly Report Email (Gmail): uses Gmail
  7. Extract Invoice Data with AI (AI Agent): runs an AI agent, with model: OpenAI GPT-5-mini Model; output parser: Invoice Data Schema Parser
  8. Validate Invoice Data (Code): runs custom JavaScript code
  9. Check Validation Result (If): checks a condition and branches into true / false
  10. Prepare Success Email Data (Edit Fields (Set)): sets 2 fields: emailSubject, emailBody

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

Services it uses

GmailOpenAI Chat Model

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.

Nodes used (11)

From the author

Overview This workflow automates invoice handling from upload to reporting using AI. Users submit invoices through a simple form. The workflow extracts key details, validates the data, stores valid invoices, and sends email notifications. It also generates a…

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