Receive orders, generate branded invoice PDFs with pdfmill, email via Gmail, and archive to Google Drive
UnknownWhat this workflow does
This workflow has 8 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Gmail, Google Drive and Pdfmill (community).
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Build & total the invoice (Code): runs custom JavaScript code
- Is the order valid? (If): checks a condition and branches into true / false
- Generate the invoice PDF (Pdfmill): template
- Return a 400 error (Respond to Webhook): sends the response back to the webhook caller
- Email the invoice to the customer (Gmail): uses Gmail
- Archive the invoice to Google Drive (Google Drive): upload (file)
- Return success (Respond to Webhook): sends the response back to the webhook caller
Services it uses
Other Gmail + Google Drive templates (465)
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-pdfmill is verified or supports 3.0 (used in Generate the invoice PDF).
Nodes used (7)
- Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Pdfmill
n8n-nodes-pdfmill.pdfmill - Gmail
n8n-nodes-base.gmail - Google Drive
n8n-nodes-base.googleDrive - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
Quick overview Receives an order over a webhook, builds a real invoice from the line items, renders a branded PDF with pdfmill, emails it to the customer via Gmail, and archives a copy to Google Drive. How it works 1. A Webhook node receives the order payload…