Automated invoice processing & filing with IMAP, AI, Google Drive & DateV
UnknownWhat this workflow does
This AI workflow has 16 nodes and runs when a new email arrives over IMAP. Along the way it connects OpenAI, Google Drive, Google Sheets and Imap (community).
How it runs
Trigger: When a new email arrives over IMAP.
- Code: runs custom JavaScript code
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Upload file (Google Drive): uses Google Drive
- Search Month Folder (Google Drive): work with file folder
- Download file (Google Drive): download
- Extract From PDF (Extract from File): extracts data from a file (pdf)
- Extract & Format Data (OpenAI): uses OpenAI
- Get Additional Date Data (Code): runs custom JavaScript code
- Google Sheets: append
- Download file (Google Drive): download
…plus 5 more steps. See the full node list below.
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other Google Drive + Google Sheets templates (720) · Other OpenAI + Google Drive templates (628)
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-imap is verified or supports 3.0 (used in MoveEmail email).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- Extract from File
n8n-nodes-base.extractFromFile - OpenAI
@n8n/n8n-nodes-langchain.openAi - Code
n8n-nodes-base.code - Google Drive
n8n-nodes-base.googleDrive - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Google Sheets
n8n-nodes-base.googleSheets - Email Trigger (IMAP)
n8n-nodes-base.emailReadImap - Send Email
n8n-nodes-base.emailSend - Imap
n8n-nodes-imap.imap
From the author
This n8n template demonstrates how to automatically process incoming invoice emails using AI to extract structured data, organize files in Google Drive, log everything in Google Sheets, and forward to your accounting system, completely hands-free. Use cases…