Send specific PDF attachments from Gmail to Google Drive using OpenAI

Nodes

2e3e39e3-0e17-4fae-9ac5-9ee31f9711ed550cbb22-673d-46ed-a595-c3da3597ecfa767a4dc9-a96d-4faf-8994-3ca756304676+2

Created by

n8n8n Team

Last edited 38 days ago

This workflow reads PDF textual content and sends the text to OpenAI. Attachments of interest will then be uploaded to a specified Google Drive folder. For example, you may wish to send invoices received from an email to an inbox folder in Google Drive for later processing. This workflow has been designed to easily change the search term to match your needs. See the workflow for more details.

Prerequisites

How it works

  1. Triggers off on the On email received node.
  2. Iterates over the attachments in the email.
  3. Uses the OpenAI node to filter out the attachments that do not match the search term set in the Configure node. You could match on various PDF files (i.e. invoice, receipt, or contract).
  4. If the PDF attachment matches the search term, the workflow uses the Google Drive node to upload the PDF attachment to a specific Google Drive folder.

New to n8n?

Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!