Generate Invoices, Save to Drive and Send Email to Customer with JS + G Sheets — n8n ワークフロー
概要
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
使用ノード
Send EmailGoogle SheetsHTTP RequestGoogle DriveCode
ワークフロープレビュー
⚡
W
Webhook Simulator
Generate Invoice ID
Check if ID Already Exists
I
If Does not Exist
S
Set Fields
Create Invoice HTML
HTML to PDF
Upload PDF to GDrive
Email Invoice to Customer
Append Details to Invoic…
Download PDF from API
11 nodes11 edges
仕組み
- 1
トリガー
このワークフローは webhook トリガーで開始します。
- 2
処理
データは 11 個のノードを流れます, connecting code, emailsend, googledrive。
- 3
出力
ワークフローは自動化を完了し、設定された宛先に結果を配信します。
ノード詳細 (11)
SE#1
Send Email
emailSend
GO#2
Google Sheets
googleSheets
HT#3
HTTP Request
httpRequest
GO#4
Google Drive
googleDrive
CO#5
Code
code
このワークフローのインポート方法
- 1右側の JSONをダウンロード ボタンをクリックしてワークフローファイルを保存します。
- 2n8nインスタンスを開き、ワークフロー → 新規 → ファイルからインポート に進みます。
- 3ダウンロードした
generate-invoices-save-to-drive-and-send-email-to-customer-with-js-g-sheetsファイルを選択し、インポートをクリックします。 - 4各サービスノードの 認証情報(APIキー、OAuthなど)を設定します。
- 5ワークフローをテスト をクリックして動作確認し、有効化します。
またはn8nの JSONからインポート に直接貼り付け:
{ "name": "Generate Invoices, Save to Drive and Send Email to Customer with JS + G Sheets", "nodes": [...], ...}
インテグレーション
codeemailsendgoogledrivegooglesheetshttprequestifsetwebhook
作成者
Joseph
@mjomba
タグ
codeemailsendgoogledrivegooglesheetshttprequestifsetwebhook