What This Workflow Does
This automation solves the tedious manual process of downloading, renaming, and filing invoice PDFs from email. For freelancers and small businesses receiving multiple invoices weekly, it eliminates hours of repetitive work while creating a searchable digital record of all transactions.
The system monitors a specific Gmail label or folder for incoming invoices. When detected, it extracts the PDF attachment, saves it to a structured Google Drive folder with consistent naming, and logs key details (vendor, date, amount) in a master Google Sheet. This creates both organized document storage and an instant accounting record.
How It Works
1. Gmail Trigger
The workflow watches a designated Gmail label or inbox for new messages containing PDF attachments. You can filter by specific senders or subject lines to only process genuine invoices.
2. PDF Extraction
The system automatically detaches the PDF file from the email while preserving the original message for reference. Advanced parsing can extract vendor names from email addresses or message content.
3. Drive Organization
Invoices are saved to Google Drive using a consistent naming convention (e.g. "Vendor_Date_Amount.pdf") and filed in dated folders. The structure makes retrieval simple during audits or payments.
4. Spreadsheet Logging
Key details from each invoice are recorded in a master Google Sheet including: processing timestamp, vendor name, invoice date, amount due, due date, and Drive file link. This becomes your searchable transaction database.
Pro tip: Add a second workflow to notify your accounting software when new invoices arrive, creating a complete procure-to-pay automation.
Who This Is For
This automation delivers the most value for:
- Freelancers managing client invoices
- Small business owners handling vendor payments
- Finance teams processing departmental expenses
- Ecommerce stores reconciling supplier invoices
- Service providers tracking billable hours
What You'll Need
- A Gmail account with invoices arriving consistently
- Google Drive with folder creation permissions
- Google Sheets for the master log
- n8n cloud account or self-hosted instance
Quick Setup Guide
- Download the JSON template file
- Import into your n8n instance
- Connect your Gmail, Drive, and Sheets accounts
- Specify the source label/folder and destination paths
- Test with sample invoices
- Activate the workflow
Key Benefits
Time savings: Eliminates 2-3 hours weekly of manual invoice processing through complete automation of filing and logging.
Error reduction: Automated naming and data extraction prevents human mistakes in recording critical payment details.
Audit readiness: Creates a timestamped, searchable record of all invoices with direct links to original files.
Scalability: Handles increasing invoice volumes without additional staff time or resources.
Accessibility: Cloud-based system allows secure access to invoices and records from anywhere.