Generate Invoices, Save to Drive and Send Email to Customer with JS + G Sheets — Workflow n8n
Aperçu
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
Nœuds utilisés
Aperçu du workflow
Comment ça fonctionne
- 1
Déclencheur
Le workflow démarre avec un déclencheur webhook.
- 2
Traitement
Les données transitent par 11 nœuds, connecting code, emailsend, googledrive.
- 3
Sortie
Le workflow termine son automatisation et livre le résultat à la destination configurée.
Détails des nœuds (11)
Send Email
emailSend
Google Sheets
googleSheets
HTTP Request
httpRequest
Google Drive
googleDrive
Code
code
Comment importer ce workflow
- 1Cliquez sur le bouton Télécharger JSON à droite pour enregistrer le fichier du workflow.
- 2Ouvrez votre instance n8n. Accédez à Workflows → Nouveau → Importer depuis un fichier.
- 3Sélectionnez le fichier
generate-invoices-save-to-drive-and-send-email-to-customer-with-js-g-sheetstéléchargé et cliquez sur Importer. - 4Configurez les identifiants pour chaque nœud de service (clés API, OAuth, etc.).
- 5Cliquez sur Tester le workflow pour vérifier que tout fonctionne, puis activez-le.
Ou collez directement dans n8n → Importer depuis JSON :
Intégrations
Créé par
Joseph
@mjomba
Tags
Nouveau sur n8n ?
n8n est un outil d'automatisation de workflows gratuit et open-source. Hébergez-le vous-même ou utilisez la version cloud.
Obtenir n8n gratuitement →