Send specific PDF attachments from Gmail to Google Drive using OpenAI
n8n template #1897Summary
Use templateThis 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
How to set it up
- Open template #1897 on n8n.io and click Use for free, or copy the template JSON and paste it onto an empty canvas in n8n.
- Create 2 credentials under Credentials → Add credential: Google Drive, OpenAI. Then open each of those nodes and pick the credential.
- Check the model in the OpenAI node. The template may point at a model your account can't use; swap it for one you have access to.
- Click Execute workflow and step through each node's output to confirm the data looks right.
- Toggle the workflow to Active so its trigger runs on its own.
Hand off to your agent
Prompt
Help me set up the n8n workflow "Send specific PDF attachments from Gmail to Google Drive using OpenAI" (https://n8n.io/workflows/1897). It uses: Google Drive, Code, OpenAI. Import the template JSON into my n8n instance, list every credential I need to create, and walk me through testing it.
Paste into Claude Code and it will do the rest.
Apps and nodes
Questions
Yes. n8n Team published it free on n8n.io as a verified creator, and it has 18K views. It runs on n8n Cloud or a self-hosted n8n instance.
Google Drive, OpenAI. The other 1 node are built into n8n.
Similar workflows
NameViews
- Fully Automated AI Video Generation & Multi-Platform Publishing191K
- AI-Powered Short-Form Video Generator with OpenAI, Flux, Kling, and ElevenLabs93K
- AI Email Analyzer: Process PDFs, Images & Save to Google Drive + Telegram21K
- Create a Multi-Modal Telegram Support Bot with GPT-4 and Supabase RAG10K
- Narrating over a Video using Multimodal AI8,840
- Create Content from Form Inputs and Save it to Google Drive using AI8,644
- Extract & Classify Invoices & Receipts with Gmail, OpenAI and Google Drive6,645
- Automate YouTube Uploads with AI-Generated Metadata from Google Drive6,190