Accounting & Finance
Gmail PDF Invoice/Receipt Classifier & Google Drive Uploader
This workflow automatically finds PDF invoices/receipts in Gmail, uses AI to classify them, uploads classified documents to a new Google Drive folder, and offers an option to email them to an accountant. It integrates Gmail, OpenAI, and Google Drive for automated financial…
Built · ~9.5 hours saved per week
Anyone needing to sort and store PDF invoices or receipts from emails automatically.
This workflow automatically finds PDF invoices and receipts in your Gmail, uses AI to sort them, and uploads them to a Google Drive folder. You can also choose to email all sorted PDFs to someone.
Set up a webhook to start the workflow with a date range and an optional email flag. Connect your Gmail and Google Drive accounts. Customize the AI classification term and the recipient email in the "Configure" node.
An n8n instance, Google Gmail account, Google Drive account, and OpenAI API credentials.
You can change the AI's classification criteria (e.g., "contract" instead of "receipt"). You can also set a specific email address to receive the classified PDFs.
Key Technologies: Gmail,Google Drive,OpenAI (AI classification),n8n (workflow automation),PDF text extraction
Automation Value: Automatically sorts and stores financial documents, saving manual effort. Ensures important documents are consistently categorized and organized. Reduces errors from manual handling of invoices and receipts. Provides an option to easily share classified documents for accounting or record-keeping. Uses AI to intelligently identify relevant documents, adapting to specified criteria.
Best Practices: Clearly define the "Match on" criteria in the "Configure" node for accurate AI classification. Periodically review the AI's classifications to ensure accuracy and adjust the prompt if needed. Ensure proper error handling for cases where PDF text extraction fails or attachments are not PDFs. Regularly check the Google Drive folder for correct uploads. Keep maxTokenSize and replyTokenSize updated based on the OpenAI model's token limits to prevent errors and optimize costs.
Tags: Operations Automations, Data Transformation, AI Automation, Accounting Automations, Google
Integrations: OpenAI, Code, Google Drive, Webhook, Email, PDF