Generate Invoices, Save to Drive & Email via G Sheets

Automates invoice generation from form submissions with unique IDs, PDF creation, Drive storage, customer emailing, and Google Sheets logging for seamless order processing.

n8n
Generate Invoices, Save to Drive & Email via G Sheets

This n8n workflow streamlines invoice automation starting with a webhook trigger that captures order form data including customer details, items, and totals. It generates a unique alphanumeric order ID (e.g., INV-X92B7D) using a JavaScript Function node, then checks for duplicates in a Google Sheets log via lookup. An IF node ensures uniqueness by looping back to regenerate if needed, preventing errors in high-volume scenarios.

Next, it prepares formatted invoice data with a Set node, converts HTML templates to PDF using a RapidAPI HTTP request, and uploads the PDF to Google Drive or Dropbox with a descriptive filename. The workflow then sends a personalized email to the customer attaching the PDF invoice, including the order ID in the subject and body for easy reference. Finally, it appends all details—customer info, ID, total, and PDF link—to Google Sheets for comprehensive tracking.

Benefits include time savings by eliminating manual invoicing, reduced errors via duplicate checks and automation, and centralized data logging for CRM integration. Ideal for e-commerce stores, freelancers, SaaS businesses, or any operation handling orders, it scales effortlessly with n8n's no-code power, supporting thousands of invoices monthly while integrating natively with Google services and email providers.

$24.99
Last updated October 3, 2026
30-day money-back guarantee
Instant download
Lifetime updates included

New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.

Secure checkout powered by Stripe

Support

How to import this workflow into n8n

  1. 1Purchase or download the workflow to get the n8n workflow JSON file.
  2. 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
  3. 3Open each node marked with a credential warning and connect your own accounts and API keys.
  4. 4Run the workflow once manually to verify the data flow, then toggle it to Active.

Related CRM - Sales workflows

More from Fred Garcia

Need this deployed? We'll set it up for you.

Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.