{"product_id":"n8n-template-gmail-trigger-to-upload-multiple-attachments-to-google-drive","title":"n8n Template: Gmail Trigger to Upload Multiple Attachments to Google Drive","description":"\u003ch3\u003eAutomatically capture Gmail attachments and upload them to Google Drive\u003c\/h3\u003e\n\u003cp\u003eThis n8n template watches your \u003cstrong\u003eGmail\u003c\/strong\u003e for new messages with attachments, extracts multiple attachment files, and prepares them for upload to \u003cstrong\u003eGoogle Drive\u003c\/strong\u003e. It’s a straightforward way to turn incoming email attachments into Drive files using n8n.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGmail Trigger:\u003c\/strong\u003e Detects any new email that has attachments.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCode (Function):\u003c\/strong\u003e Extracts each attachment as binary data and attaches the binary files to the item output. The result is an \u003cem\u003eiterable output\u003c\/em\u003e for handling multiple attachments per email.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGoogle Drive:\u003c\/strong\u003e Uses the prepared attachment files so they can be uploaded from n8n to your Google Drive.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDocument handoff:\u003c\/strong\u003e Receive signed PDFs or reports via email and store them automatically in the correct Google Drive destination.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eBatch asset ingestion:\u003c\/strong\u003e Emails often include multiple files—this workflow helps you capture and process all attachments together.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOperational efficiency:\u003c\/strong\u003e Reduce manual downloads from Gmail and uploads to Google Drive for back-office teams and SaaS operators.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes used:\u003c\/strong\u003e \u003cem\u003eGmail Trigger\u003c\/em\u003e, \u003cem\u003eCode \/ Function\u003c\/em\u003e, and \u003cem\u003eGoogle Drive\u003c\/em\u003e\n\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCore concept:\u003c\/strong\u003e Extract multiple email attachments into binary files, returning them as an iterable output for downstream processing.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSetup:\u003c\/strong\u003e Add your \u003cstrong\u003eGmail Credentials\u003c\/strong\u003e and \u003cstrong\u003eGoogle Drive Credentials\u003c\/strong\u003e, then follow the official n8n credentials documentation for Google: \u003ca href=\"https:\/\/docs.n8n.io\/integrations\/builtin\/credentials\/google\/\" target=\"_blank\" rel=\"noopener\"\u003edocs.n8n.io\/integrations\/builtin\/credentials\/google\/\u003c\/a\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cp\u003eIf you have questions or feedback about this workflow, contact \u003ca href=\"mailto:ria@n8n.io\"\u003eria@n8n.io\u003c\/a\u003e.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45742840283315,"sku":"N8N-2348","price":23.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/4egZNirUcH5-U8oGBXlWG_T7AurO3J.png?v=1785403044","url":"https:\/\/buyflowscripts.com\/products\/n8n-template-gmail-trigger-to-upload-multiple-attachments-to-google-drive","provider":"N8N Commerce","version":"1.0","type":"link"}