Skip to main content

Auto-send PDF invoices with Stripe payment triggers and Gmail

Workflow preview

Workflow preview
100%
Auto-send PDF invoices with Stripe payment triggers and Gmail preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Auto Send PDF Invoice When Stripe Payment is Received This workflow automatically generates a PDF invoice every time a successful payment is received in Stripe , then emails the invoice to the c...

Best for

  • Invoice Processing automation workflows
  • Multimodal AI 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.gmail

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Auto-send PDF invoices with Stripe payment triggers and Gmail
Workflow name
Auto-send PDF invoices with Stripe payment triggers and Gmail

đź’° Auto-Send PDF Invoice When Stripe Payment is Received

This workflow automatically generates a PDF invoice every time a successful payment is received in Stripe, then emails the invoice to the customer via Gmail. Perfect for freelancers, SaaS businesses, and service providers who want to automate billing without manual effort.


⚙️ How It Works

  1. Stripe Payment Webhook

    • Listens for successful payment events (payment_intent.succeeded).
    • Triggers the workflow whenever a new payment is made.
  2. Normalize Payment Data

    • A Code node extracts and formats details like:
      • Payment ID
      • Amount & currency
      • Customer name & email
      • Payment date
      • Description
    • Generates a unique invoice number.
  3. Generate Invoice HTML

    • A Code node builds a professional invoice template in HTML.
    • Data is dynamically inserted (amount, customer info, invoice number).
    • Output prepared for PDF generation.
  4. Send Invoice Email

    • The Gmail node sends an email to the customer.
    • Invoice is attached as a PDF file.
    • Includes a confirmation message with payment details.

🛠️ Setup Steps

1. Stripe Webhook

  • In your Stripe Dashboard:
    • Navigate to Developers → Webhooks
    • Add a new endpoint with your Webhook URL from the n8n Webhook node.
    • Select event:
      • payment_intent.succeeded

2. Gmail Setup

  • In n8n, connect your Gmail OAuth2 credentials.
  • Emails will be sent directly from your Gmail account.

3. Customize Invoice

  • Open the Generate Invoice HTML node.
  • Replace "Your Company Name" with your actual business name.
  • Adjust invoice branding, colors, and layout as needed.

đź“§ Example Email Sent

Subject: Invoice INV-123456789 - Payment Confirmation

Body:
Dear John Doe, Thank you for your payment! Please find your invoice attached. Payment Details: Amount: USD 99.00 Payment ID: pi_3JXXXXXXXX Date: 2025-08-29 Best regards, Your Company Name

(Attached: invoice_INV-123456789.pdf)


⚡ With this workflow, every Stripe payment automatically creates and delivers a polished PDF invoice — no manual work required.

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 - Setup Instructions

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

Block 2 - Stripe Payment Webhook

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

Block 3 - Normalize Payment Data

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

Block 4 - Generate Invoice HTML

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

Block 5 - Send Invoice Email

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

3. Summary Table

Workflow Auto-send PDF invoices with Stripe payment triggers and Gmail
Complexity intermediate
Nodes 5
Categories Invoice Processing, Multimodal AI
Author David Olusola
Published 29 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8030/8030.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 Auto-send PDF invoices with Stripe payment triggers and Gmail do?

Auto Send PDF Invoice When Stripe Payment is Received This workflow automatically generates a PDF invoice every time a successful payment is received in Stripe , then emails the invoice to the c...

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, Multimodal AI use case.