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
Automate Paddle invoice downloads with n8n and Gmail

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

Learn how to Build this Workflow with AI:

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

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.


Automate Paddle invoice downloads with n8n and Gmail

Visit through Desktop to Interact with the Workflow.

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 Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.