Skip to main content

Automate PDF invoice generation & delivery with Gmail and Google Drive storage

Workflow preview

Workflow preview
100%
Automate PDF invoice generation & delivery with Gmail and Google Drive storage preview
Open on n8n.io

Important notice

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

1. Workflow Overview

How it works Automatically generates professional PDF invoices from webhook data and delivers them via email while storing backups in Google Drive. Perfect for freelancers, small businesses, and se...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.webhook, n8n-nodes-base.code, n8n-nodes-base.httprequest, n8n-nodes-base.emailsend, n8n-nodes-base.googledrive, n8n-nodes-base.respondtowebhook

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Ibrahim Emre POLAT.

Original n8n.io source

1.1 Workflow description

Title
Automate PDF invoice generation & delivery with Gmail and Google Drive storage
Workflow name
Automate PDF invoice generation & delivery with Gmail and Google Drive storage

How it works

Automatically generates professional PDF invoices from webhook data and delivers them via email while storing backups in Google Drive. Perfect for freelancers, small businesses, and service providers who need automated billing workflows.

Set up steps

Configure environment variables for company information (name, address, email, phone). Set up your PDF generation API service account (PDFShift recommended). Configure SMTP email credentials for invoice delivery. Set up Google Drive OAuth2 for cloud storage. Deploy the workflow and test with sample invoice data.

Key features

  • Smart invoice number generation if not provided
  • Automatic tax calculations with configurable rates
  • Professional HTML templates with company branding
  • Parallel processing for email and storage
  • Comprehensive error handling and validation
  • Detailed success confirmation responses

Required environment variables

  • COMPANY_NAME - Your business name
  • COMPANY_ADDRESS - Business mailing address
  • COMPANY_EMAIL - Billing contact email
  • COMPANY_PHONE - Business phone number
  • PDF_API_URL - PDF generation service endpoint
  • PDF_API_KEY - API authentication key
  • GDRIVE_INVOICE_FOLDER_ID - Google Drive folder ID

API requirements

PDF generation service (PDFShift, HTML/CSS to PDF API, or similar), SMTP email service for delivery, Google Drive API access for storage.

Input format

{
  "customerName": "John Smith",
  "customerEmail": "[email protected]", 
  "items": [
    {"description": "Web Design", "quantity": 1, "price": 500}
  ],
  "dueDate": "2025-02-15"
}

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 - Sticky Note

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

Block 2 - Webhook Trigger

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 3 - Process Invoice Data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 4 - Generate HTML Template

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - Generate PDF

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

Block 6 - Send Email to Customer

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 2

Block 7 - Save to Google Drive

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

Block 8 - Success Response

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - Respond Webhook

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

Block 10 - Sticky Note1

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

Block 11 - Sticky Note2

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

Block 12 - Sticky Note3

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

Block 13 - Sticky Note4

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

3. Summary Table

Workflow Automate PDF invoice generation & delivery with Gmail and Google Drive storage
Complexity intermediate
Nodes 13
Categories Invoice Processing
Author Ibrahim Emre POLAT
Published 09 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8413/8413.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 Automate PDF invoice generation & delivery with Gmail and Google Drive storage do?

How it works Automatically generates professional PDF invoices from webhook data and delivers them via email while storing backups in Google Drive. Perfect for freelancers, small businesses, and se...

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.