Block 1 - Gmail Trigger
- Type / Role
- n8n-nodes-base.gmailTrigger - gmailTrigger
- Config choices
- Version 1.1
This workflow is provided as-is. Please review and test before using in production.
Sort invoice PDFs from Gmail to Google Drive and Google Sheets Who’s it for Freelancers, finance teams, and small businesses that receive invoice PDFs by email and want them automatically saved to ...
n8n-nodes-base.gmailtrigger, n8n-nodes-base.stickynote, n8n-nodes-base.filter, n8n-nodes-base.googledrive, n8n-nodes-base.googlesheets, n8n-nodes-base.gmail, n8n-nodes-base.if
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Toshiya Minami.
Original n8n.io sourceFreelancers, finance teams, and small businesses that receive invoice PDFs by email and want them automatically saved to Google Drive and logged in Google Sheets—without manual downloading or copy-pasting.
This workflow watches your Gmail inbox for unread messages that match an invoice pattern (e.g., subject:invoice filename:pdf). For each email, it checks for attachments, uploads each PDF to a chosen Google Drive folder, and appends a new row to a Google Sheet with useful metadata: received time, sender, subject, filename, Drive link, and IDs. Finally, it marks the original email as read to avoid duplicates.
Open the Config (Set) node and fill in:
drive_folder_id (or leave blank for root)spreadsheet_id (from the Sheet URL)sheet_name (e.g., Invoices)Connect credentials for Gmail, Google Drive, and Google Sheets in each node.
Adjust the Gmail search query if needed (language/vendor terms).
Run once manually to verify data mapping, then activate.
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Automatic Gmail invoice PDF upload to Google Drive with spreadsheet logging |
|---|---|
| Complexity | intermediate |
| Nodes | 12 |
| Categories | Invoice Processing |
| Author | Toshiya Minami |
| Published | 14 Oct 2025 |
Use the JSON export at /data/workflows/9610/9610.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
Sort invoice PDFs from Gmail to Google Drive and Google Sheets Who’s it for Freelancers, finance teams, and small businesses that receive invoice PDFs by email and want them automatically saved to ...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Invoice Processing use case.