Automated PDF Extraction and Upload from Gmail to Google Drive

somdn_product_page

This n8n workflow automates the process of handling PDF attachments received via Gmail, searching for specific keywords, and managing the relevant files. When an email arrives, it examines each attachment to determine if it is a PDF and whether its textual content matches a user-defined search term, such as ‘invoice’ or ‘payslip’. The workflow then filters suitable PDFs based on this match, verifies if the text size is within token limits for OpenAI processing, and uses OpenAI’s API to confirm the match. Matching PDFs are subsequently uploaded to a specified Google Drive folder for organized storage or further processing. This workflow is ideal for automating document sorting tasks like retrieving invoices, receipts, or contracts from email, saving manual effort and ensuring consistent organization.

Node Count

11 – 20 Nodes

Nodes Used

code, gmailTrigger, googleDrive, if, merge, noOp, openAi, readPDF, set, stickyNote

Reviews

There are no reviews yet.

Be the first to review “Automated PDF Extraction and Upload from Gmail to Google Drive”

Your email address will not be published. Required fields are marked *