Invoices from Gmail to Drive and Google Sheets — n8n Workflow
Overview
Attachments Gmail to Drive and Google Sheets
Description Automatically process invoice emails by saving attachments to Google Drive and extracting key invoice data to Google Sheets using AI. This workflow monitors your Gmail for unread emails with attachments, saves PDFs to a specified Google Drive folder, and uses OpenAI's GPT-4o to extract invoice details (date, description, amount) into a structured spreadsheet.
Use cases Invoice Management**: Automatically organize and track invoices recei
Nodes used
Workflow Preview
How it Works
- 1
Trigger
The workflow starts with a trigger trigger.
- 2
Process
Data flows through 14 nodes, connecting chainllm, extractfromfile, gmail.
- 3
Output
The workflow completes its automation and delivers the result to the configured destination.
Node Details (14)
Google Sheets
googleSheets
HTTP Request
httpRequest
Google Drive
googleDrive
Gmail
gmail
Basic LLM Chain
n8n-nodes-langchain.chainLlm
OpenAI Model
n8n-nodes-langchain.lmOpenAi
Structured Output Parser
n8n-nodes-langchain.outputParserStructured
How to Import This Workflow
- 1Click Download JSON button on the right to save the workflow file.
- 2Open your n8n instance. Go to Workflows → New → Import from file.
- 3Select the downloaded
invoices-from-gmail-to-drive-and-google-sheetsfile and click Import. - 4Set up credentials for each service node (API keys, OAuth, etc.).
- 5Click Test Workflow to verify everything works, then activate it.
Or paste directly in n8n → Import from JSON:
Integrations
Created by
Juan Carlos Cavero Gracia
@carlosgracia
Tags
New to n8n?
n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.
Get n8n Free →