Generate Invoices, Save to Drive and Send Email to Customer with JS + G Sheets β n8n Workflow
Overview
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
Trigger (Webhook) Starts when an order form is submitted, capturing customer and order details.
Generate Random Order ID A Function node creates a unique alphanumeric invoice ID (e.g., INV-X92B7D).
Check for Duplicate Order ID Google Sheets looks up the generate
Nodes used
Workflow Preview
How it Works
- 1
Trigger
The workflow starts with a webhook trigger.
- 2
Process
Data flows through 11 nodes, connecting code, emailsend, googledrive.
- 3
Output
The workflow completes its automation and delivers the result to the configured destination.
Node Details (11)
Send Email
emailSend
Google Sheets
googleSheets
HTTP Request
httpRequest
Google Drive
googleDrive
Code
code
How to Import This Workflow
- 1Click Download JSON button on the right to save the workflow file.
- 2Open your n8n instance. Go to Workflows β New β Import from file.
- 3Select the downloaded
generate-invoices-save-to-drive-and-send-email-to-customer-with-js-g-sheetsfile and click Import. - 4Set up credentials for each service node (API keys, OAuth, etc.).
- 5Click Test Workflow to verify everything works, then activate it.
Or paste directly in n8n β Import from JSON:
Integrations
Created by
Joseph
@mjomba
Tags
New to n8n?
n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.
Get n8n Free β