Extract & classify invoices & receipts with Gmail, OpenAI and Google Drive
Who is it for? Anyone who wants to automatically aggregate their invoices or receipts. Main beneficiaries: small business owners and freelancers. How it works 1. Creates a folder in Google Drive for uploading invoices and receipts. Responds (Webhook response) with URL to the created folder. 2. Gets all emails with attachments from a Gmail mailbox. 3. (Optional) Filters emails, e.g. exclude emails sent to specific address. 4. Filters only PDF attachments. 5. Classifies all PDF attach
At a glance
Extract & classify invoices & receipts with Gmail, OpenAI and Google Drive is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects code, filter, gmail, googleDrive. It's free to download. Follow the 5-step import below to go live in minutes.
- Platform
- n8n
- Connects
- code, filter, gmail, googleDrive, if, merge
- Modules
- 18
- Price
- Free
- Version
- v1.0

About this workflow
Who is it for? Anyone who wants to automatically aggregate their invoices or receipts. Main beneficiaries: small business owners and freelancers. How it works 1. Creates a folder in Google Drive for uploading invoices and receipts. Responds (Webhook response) with URL to the created folder. 2. Gets all emails with attachments from a Gmail mailbox. 3. (Optional) Filters emails, e.g. exclude emails sent to specific address. 4. Filters only PDF attachments. 5. Classifies all PDF attachment contents with an AI model (is it a receipt or an invoice?). 6. Uploads receipts and invoices to the created Google Drive folder and optionally sends an email with the attachments to, e.g., your accountant. Pre-conditions/Requirements - Gmail and Google Drive accounts - A Google Cloud OAuth 2.0 Client ID or a service account with Google Drive and Gmail APIs enabled - OpenAI API account and API key Set up steps 1. Provide credentials for the nodes: Gmail, Google Drive, OpenAI. 2. Configure parameters in the "Configure" node. Most importantly: - "sendInvoicesTo" for the email address where invoices/receipts should be sent. 3. It uses a Webhook node trigger. It expects a body with a schema such as: Example body: How to use with AI chat You can trigger the workflow with an AI chat that supports tool use, such as BrowseWiz. For setup instructions, read the blog post.
How to import this n8n workflow
- 1
Download the workflow JSON file after purchase.
- 2
Open n8n → click the menu → Import from File.
- 3
Select the downloaded JSON and import.
- 4
Set up credentials for each node that requires them.
- 5
Click Execute Workflow to test, then activate.
Setup guide
Setup guide included
Purchase to unlock the full step-by-step guide
Related N8n workflows
Enrich Company Data from LinkedIn via Bright Data & Google Sheets
Auto-generate product comparison pages with OpenAI & Google Sheets
Create YouTube videos daily from Google Sheets using MagicHour + Gemini
Ask questions about past meetings using voice with OpenAI and Pinecone
Automated AI cold calling system with VAPI.ai, Airtable, and smart follow-ups
Auto-generate meeting attendee research with GPT-4o, Google Calendar, and Gmail
Send personalized birthday and anniversary emails with Google Sheets, Gemini, and Gmail
AI-powered X (Twitter) content generator and scheduler with LangChain and Blotato
Reviews
No reviews yet
Be the first to buy and share your experience.
Leave a review
Sign in to share your experience with this workflow.
Create a free account to purchase workflows.
- JSON blueprint — instant download
- Setup guide PDF included
- 5 downloads · valid 30 days
- Works with n8n
Need help setting this up?
Book a 3-hour live setup session with an Agility consultant.
- Configure live on Google Meet / Zoom
- Free follow-up if workflow has defects
- Platform expert assigned to you