Automate Paddle Invoice PDF Downloads with n8n Gmail & Drive

This n8n workflow automates downloading Paddle invoice PDFs from specific Gmail emails and stores them in Google Drive, saving time and eliminating manual errors in invoice management.
gmailTrigger
if
httpRequest
+7
Workflow Identifier: 2080
NODES in Use: Gmail Trigger, If, HTML Extract, Split Out, Filter, HTTP Request, Google Drive, NoOp, Set, Sticky Note

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What This Automation Does

This workflow watches your Gmail inbox for emails from [email protected] with “Your invoice” in the subject.

It looks inside each email to find links leading to Paddle invoice receipts.

It picks only links containing “/receipt/” to get the exact invoice page URLs.

Then, it asks the pdflayer API to turn each invoice URL into a PDF file.

After that, it uploads the PDF file to Google Drive, renames it with a date pattern like n8n_cloud_invoice_YYYY-MM-DD.pdf, and moves it into the set folder.

This saves time and avoids errors by doing all invoice capture and storage automatically.


Tools and Services Needed

  • Gmail with OAuth2 credentials in n8n: To watch for invoice emails.
  • Google Drive with OAuth2 credentials in n8n: To save, rename, and move the invoice PDFs.
  • API key from pdflayer.com: To convert invoice receipt URLs into PDF documents.
  • n8n platform account: To run the automation workflow.

Inputs, Processing, and Outputs

Inputs

  • New emails arriving in the Gmail inbox.
  • Incoming emails must be from [email protected] and contain “Your invoice” in the subject.

Processing Steps

  • Extract all hyperlinks from the email HTML body.
  • Split the extracted links to check each one individually.
  • Filter links to keep only those with “/receipt/” for Paddle invoice pages.
  • Call pdflayer API to convert each invoice URL to a PDF file.
  • Upload the PDF file to Google Drive.
  • Rename the PDF file with the current date in the format n8n_cloud_invoice_YYYY-MM-DD.pdf.
  • Move the renamed PDF file to the target Google Drive folder set in the configuration.

Outputs

  • New invoice PDF files saved and organized in the Google Drive folder.
  • Each file is named with the date to make record-keeping easy.

Beginner step-by-step: How to use this workflow in n8n

1. Importing the Workflow

  1. Click the Download button for this workflow on this page.
  2. In the n8n editor, choose the menu and select “Import from File”.
  3. Upload the downloaded workflow file.

2. Configuring Credentials and Settings

  1. Set up Gmail OAuth2 credentials in the Gmail Trigger node.
  2. Provide Google Drive OAuth2 credentials in the relevant Google Drive nodes.
  3. In the Setup node, enter the pdflayer API key as api_key.
  4. Also enter the Google Drive folder URL in the url_to_drive_folder variable, making sure to omit any query parameters.
  5. Change any folder IDs, emails, or channel names if the workflow includes those for your setup.

3. Testing and Activation

  1. Send a test Paddle invoice email to your Gmail inbox or wait for a new invoice email to arrive.
  2. Run the workflow manually in n8n once to check for errors.
  3. Look at logs and output results to assure files are created and uploaded correctly.
  4. When fully tested, turn on the workflow toggle to run it automatically every minute.

Following these steps will let the user run this automation safely in production without building the flow from scratch.

Also, self hosting n8n is helpful to fully control the workflow operation and credentials. Consider self-host n8n if more control is needed.


Customizations

  • Change email sender and subject filters to detect invoices from different providers.
  • Replace Google Drive nodes with Dropbox or local Filesystem nodes for saving PDFs.
  • Add a Gmail or SMTP node after upload to auto-forward invoice PDFs to accounting.
  • Swap pdflayer API with other PDF converters by adjusting HTTP request properties.
  • Add Slack notifications after upload to alert the team about new invoices.

Common Problems and Fixes

  • No emails trigger the workflow: Check Gmail OAuth2 credentials and scopes.
  • Invoice PDF download fails: Verify pdflayer API key and invoice URL correctness.
  • PDF not found in Google Drive: Confirm Google Drive credentials and folder permissions.
  • Incorrect file renaming or moving: Check date format and folder URL input.

Summary

✓ Extracts Paddle invoice emails automatically from Gmail inbox.

✓ Converts invoice web pages to PDFs using pdflayer API.

✓ Saves PDFs to Google Drive with correct names and folders.

→ Saves hours of manual work and reduces errors.

→ Keeps financial records neat and timely updated.


Frequently Asked Questions

This workflow uses the Gmail Trigger node with Gmail OAuth2 credentials. To use other email providers, the trigger node must be changed or adapted.
Yes, pdflayer API has a free tier and paid plans. Usage should be monitored to avoid extra charges.
OAuth2 credentials and HTTPS connection protect data transfer. Users should manage credentials carefully.
Download the workflow file, import it in the n8n editor, add required credentials and API keys, update folder URLs if needed, test the flow, then activate it.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free