Invoice verification and validation with Gmail, Drive, Sheets and OCR AI
Needs changesWhat this workflow does
This AI workflow has 34 nodes and runs on a schedule (every day). Along the way it connects OpenRouter Chat Model, Google Sheets, Google Drive and Gmail.
How it runs
Trigger: On a schedule (every day).
- Date & Time: formats or calculates dates
- Today's Date (Code): runs custom JavaScript code
- Gmail: uses Gmail
- Date From Email Subject (Code): runs custom JavaScript code
- Merge: merges the data from its input branches
- Read Message (Gmail): uses Gmail
- Get Attachments (Code): runs custom JavaScript code
- Search Month Folder (Google Drive): uses Google Drive
- Upload Invoices (Google Drive): uses Google Drive
- Extract from File: extracts data from a file
…plus 22 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Text Extractor (v1.8): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Text Extractor (v1.8) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (15)
- Extract from File
n8n-nodes-base.extractFromFile - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Split Out
n8n-nodes-base.splitOut - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Google Sheets
n8n-nodes-base.googleSheets - Wait
n8n-nodes-base.wait - Google Drive
n8n-nodes-base.googleDrive - Merge
n8n-nodes-base.merge - Date & Time
n8n-nodes-base.dateTime - Gmail
n8n-nodes-base.gmail - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
📝 Description (Full, User-Centric & Sales-Driven): Tired of manually verifying purchase order invoices every single day? This plug-and-play n8n automation template saves your accounts team hours of work by automatically downloading, storing, extracting, and…