ES | EN
AI

Send specific PDF attachments from Gmail to Google Drive using OpenAI

Google DriveOpen Ai
Nodes 3
Complexity Intermediate
Category AI
n8n popularity 17,846 views in n8n library

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 OpenAI credentials. Google credentials. How it works Triggers off on the On email received node. Iterates over the attachments in the email. 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). 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.

Apps and nodes included

Step-by-Step Implementation Guide

PDF Gmail a Google Drive con OpenAI

Lee el contenido de archivos PDF adjuntos en Gmail y los guarda en Google Drive.

Nodos Utilizados

  • Google Drive: Guarda los archivos PDF en Google Drive.
  • Code: Para procesar el contenido de los PDFs y posiblemente filtrar.
  • OpenAI: Para analizar el contenido de los PDF.

Pasos de Configuración

  • Paso 1: Conecta tu cuenta de Gmail.
  • Paso 2: Configura el nodo OpenAI para analizar el contenido de los PDFs y filtrar según tus criterios (ej. facturas).
  • Paso 3: Configura el nodo Code para extraer el texto y manipular los datos.
  • Paso 4: Configura el nodo Google Drive para guardar los archivos PDF en la carpeta deseada.
  • Paso 5: Prueba y activa el workflow.
⚡ Open and edit in Scriflow ← Browse all n8n templates

Scriflow builds and adapts n8n workflows with AI. Open this template in the editor to get the import-ready JSON.