Automate Gmail PDF Attachment Classification and Upload to Google Drive with AI
detail.loadingPreview
Automatically sort and upload specific PDF attachments from your Gmail inbox directly to Google Drive. This workflow leverages AI to intelligently identify and categorize documents like invoices, payslips, or contracts, saving you valuable time on manual filing.
About This Workflow
Tired of manually sifting through your inbox to find and save important PDF attachments? This powerful n8n workflow automates the entire process, using the intelligence of OpenAI to identify and categorize specific PDF files received via Gmail. Upon receiving an email, the workflow extracts all PDF attachments, sends their textual content to OpenAI for classification against your defined criteria (e.g., 'invoice' or 'contract'), and then automatically uploads matching documents to a designated folder in your Google Drive. Streamline your document management and ensure critical files are always where they need to be, without any manual intervention.
Key Features
- AI-Powered PDF Classification: Utilizes OpenAI to intelligently read and categorize PDF attachments based on customizable keywords.
- Automated Email Monitoring: Triggers instantly upon receiving new emails in your configured Gmail account.
- Selective Attachment Handling: Processes only PDF attachments, ignoring other file types in the email.
- Seamless Google Drive Integration: Automatically uploads classified PDFs to a specified Google Drive folder.
- Customizable Matching Criteria: Easily define what type of PDF documents (e.g., payslips, invoices, contracts) you want to identify and save.
How To Use
- Configure Gmail Trigger: Set up the 'On email received' node with your Gmail credentials. Ensure 'Download attachments' is enabled.
- Set up OpenAI Credentials: Connect your OpenAI API key to the 'OpenAI matches PDF textual content' node.
- Connect Google Drive: Provide your Google Drive OAuth2 API credentials to the 'Upload file to folder' node.
- Customize Matching & Destination: In the 'Configure' node, update the
Match onparameter with the keyword (e.g., "invoice", "payslip", "contract") you want the AI to look for. Also, update theGoogle Drive folder to upload matched PDFswith the URL of your desired Google Drive destination folder.
Apps Used
Workflow JSON
{
"id": "a26acc2a-275b-4f64-a71b-f10f9258fb27",
"name": "Automate Gmail PDF Attachment Classification and Upload to Google Drive with AI",
"nodes": 15,
"category": "Operations",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: a26acc2a-275b...
About the Author
Crypto_Watcher
Web3 Developer
Automated trading bots and blockchain monitoring workflows.
Statistics
Related Workflows
Discover more workflows you might like
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.
On-Demand Microsoft SQL Query Execution
This workflow allows you to manually trigger and execute any SQL query against your Microsoft SQL Server database. Perfect for ad-hoc data lookups, administrative tasks, or quick tests, giving you direct control over your database operations.
Automate Getty Images Editorial Search & CMS Integration
This n8n workflow automates searching for editorial images on Getty Images, extracts key details and embed codes, and prepares them for seamless integration into your Content Management System (CMS), streamlining your content creation process.