Templates / Generate invoices, save to Drive and send email to customer with JS + G Sheets

Generate invoices, save to Drive and send email to customer with JS + G Sheets

Ready for 3.0

by Joseph ✓ · 8,684 views · created 2025-05-16 · Invoice Processing

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 11 nodes and runs when an HTTP GET request hits its webhook URL. Along the way it connects Google Sheets and Google Drive. It also calls html2pdf2.p.rapidapi.com and rhodium-tecnologia-html2pdf.s3.amazonaws.com over HTTP.

How it runs

Trigger: When an HTTP GET request hits its webhook URL.

  1. Generate Invoice ID (Code): runs custom JavaScript code
  2. Check if ID Already Exists (Google Sheets): uses Google Sheets
  3. If: checks a condition and branches into true / false
  4. Set Fields (Edit Fields (Set)): sets 5 fields: order_id, customer_name, customer_email…
  5. Create Invoice HTML (Code): runs custom JavaScript code
  6. HTML to PDF (HTTP Request): calls html2pdf2.p.rapidapi.com (POST)
  7. Download PDF from API (HTTP Request): calls rhodium-tecnologia-html2pdf.s3.amazonaws.com
  8. Upload PDF to GDrive (Google Drive): uses Google Drive
  9. Email Invoice to Customer (Send Email): sends an email over SMTP
  10. Append Details to Invoices Sheet (Google Sheets): append or update

Services it uses

Google SheetsGoogle Drive

HTTP calls to: html2pdf2.p.rapidapi.com, rhodium-tecnologia-html2pdf.s3.amazonaws.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (8)

From the author

This workflow automates invoice generation from form submissions, ensuring unique order IDs, creating PDF invoices, storing files, emailing customers, and logging invoice data — all seamlessly integrated. --- 🔹 Workflow Overview 1. Trigger (Webhook) Starts…

Excerpt from Joseph's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.