Skip to main content

Save n8n Cloud invoices received in Gmail in Google Drive

Workflow preview

Workflow preview
100%
Save n8n Cloud invoices received in Gmail in Google Drive preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Who this is for This template is for everyone that wants to download their n8n Cloud invoices automatically as a PDF instead of downloading them manually. How it works This workflow checks your Gma...

Best for

  • Invoice Processing automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.gmailtrigger, n8n-nodes-base.if, n8n-nodes-base.splitout, n8n-nodes-base.filter, n8n-nodes-base.noop, n8n-nodes-base.stickynote, n8n-nodes-base.set, n8n-nodes-base.httprequest

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Niklas Hatje.

Original n8n.io source

1.1 Workflow description

Title
Save n8n Cloud invoices received in Gmail in Google Drive
Workflow name
Save n8n Cloud invoices received in Gmail in Google Drive

Who this is for

This template is for everyone that wants to download their n8n Cloud invoices automatically as a PDF instead of downloading them manually.

How it works

This workflow checks your Gmail inbox for new n8n invoice emails from n8n's payment provider Paddle. Once it finds something, it converts the URL into a PDF using pdflayer and saves it in Google Drive.

Setup

  1. Setup your Gmail and Google Drive credentials
  2. Create a free account at https://pdflayer.com/
  3. Insert your pdflayer API key into the Setup node
  4. Insert the URL to the wanted drive folder into the setup node (make sure to remove everything after the ?)

How to adjust it to your need

Instead of saving the PDF in Google drive, you could also save it in your local system, any other storage provider or send the PDF automatically to the right person in your company.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Gmail Trigger

Type / Role
n8n-nodes-base.gmailTrigger - gmailTrigger
Config choices
Version 1.1

Block 2 - Only n8n Paddle invoice mails

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.1

Block 3 - Split Out

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 4 - Only keep invoice link

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.1

Block 5 - Do nothing on other emails

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 6 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Setup

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 8 - Download Invoice PDF from URL

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 9 - Rename file

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 10 - Move to the correct folder

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 11 - Upload PDF to Drive

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 12 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Extract "a-tags" from email

Type / Role
n8n-nodes-base.html - html
Config choices
Version 1.2

3. Summary Table

Workflow Save n8n Cloud invoices received in Gmail in Google Drive
Complexity intermediate
Nodes 13
Categories Invoice Processing
Author Niklas Hatje
Published 28 Aug 2024

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2393/2393.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Save n8n Cloud invoices received in Gmail in Google Drive do?

Who this is for This template is for everyone that wants to download their n8n Cloud invoices automatically as a PDF instead of downloading them manually. How it works This workflow checks your Gma...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Invoice Processing use case.