This workflow follows the Emailsend → HTTP Request recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "Facturation Automatique",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "cronExpression",
"expression": "0 18 * * *"
}
]
}
},
"name": "Schedule Trigger - 18h quotidien",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1,
"position": [
250,
300
]
},
{
"parameters": {
"url": "={{$env.VITE_API_BASE_URL}}/api/auto-invoice/projects-needing-invoice",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"options": {}
},
"name": "API - R\u00e9cup\u00e9rer Projets",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 3,
"position": [
450,
300
]
},
{
"parameters": {
"batchSize": 1,
"options": {}
},
"name": "Split In Batches",
"type": "n8n-nodes-base.splitInBatches",
"typeVersion": 1,
"position": [
650,
300
]
},
{
"parameters": {
"url": "={{$env.VITE_API_BASE_URL}}/api/auto-invoice/generate",
"method": "POST",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "projectId",
"value": "={{$json.id}}"
}
]
},
"options": {}
},
"name": "API - G\u00e9n\u00e9rer Facture",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 3,
"position": [
850,
300
]
},
{
"parameters": {
"jsCode": "const invoice = $input.item.json;\n\nreturn {\n json: {\n invoiceNumber: invoice.invoiceNumber,\n clientName: invoice.clientName,\n totalAmount: invoice.totalAmount,\n pdfHtml: invoice.pdfHtml\n }\n};"
},
"name": "Code - Pr\u00e9parer PDF",
"type": "n8n-nodes-base.code",
"typeVersion": 1,
"position": [
1050,
300
]
},
{
"parameters": {
"fromEmail": "factures@intuitionconcept.com",
"toEmail": "={{$json.clientEmail}}",
"subject": "Facture {{$json.invoiceNumber}} - {{$json.projectName}}",
"emailType": "html",
"message": "={{$json.emailBody}}",
"attachments": "pdfHtml",
"options": {
"ccEmail": "comptabilite@intuitionconcept.com"
}
},
"name": "Email - Envoyer Facture",
"type": "n8n-nodes-base.emailSend",
"typeVersion": 2,
"position": [
1250,
300
],
"credentials": {
"smtp": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"url": "={{$env.VITE_API_BASE_URL}}/api/invoices/{{$json.invoiceId}}",
"method": "PATCH",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "status",
"value": "sent"
},
{
"name": "sentAt",
"value": "={{new Date().toISOString()}}"
}
]
},
"options": {}
},
"name": "Firebase - Mettre \u00e0 Jour Statut",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 3,
"position": [
1450,
300
]
},
{
"parameters": {
"amount": 7,
"unit": "days"
},
"name": "Wait 7 Days",
"type": "n8n-nodes-base.wait",
"typeVersion": 1,
"position": [
1650,
200
]
},
{
"parameters": {
"fromEmail": "factures@intuitionconcept.com",
"toEmail": "={{$json.clientEmail}}",
"subject": "Rappel - Facture {{$json.invoiceNumber}}",
"emailType": "html",
"message": "<p>Bonjour {{$json.clientName}},</p><p>Nous vous rappelons que la facture {{$json.invoiceNumber}} d'un montant de {{$json.totalAmount}} FCFA est en attente de paiement.</p><p>\u00c9ch\u00e9ance : {{$json.dueDate}}</p>",
"options": {}
},
"name": "Email - Relance J+7",
"type": "n8n-nodes-base.emailSend",
"typeVersion": 2,
"position": [
1850,
200
],
"credentials": {
"smtp": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"operation": "create",
"collection": "audit_logs",
"fieldsUi": {
"fieldValues": [
{
"fieldId": "action",
"fieldValue": "invoice_workflow_executed"
},
{
"fieldId": "invoiceId",
"fieldValue": "={{$json.invoiceId}}"
},
{
"fieldId": "timestamp",
"fieldValue": "={{new Date().toISOString()}}"
}
]
}
},
"name": "Logger - Enregistrer Ex\u00e9cution",
"type": "n8n-nodes-base.firestore",
"typeVersion": 1,
"position": [
1650,
400
],
"credentials": {
"firestoreApi": {
"name": "<your credential>"
}
}
}
],
"connections": {
"Schedule Trigger - 18h quotidien": {
"main": [
[
{
"node": "API - R\u00e9cup\u00e9rer Projets",
"type": "main",
"index": 0
}
]
]
},
"API - R\u00e9cup\u00e9rer Projets": {
"main": [
[
{
"node": "Split In Batches",
"type": "main",
"index": 0
}
]
]
},
"Split In Batches": {
"main": [
[
{
"node": "API - G\u00e9n\u00e9rer Facture",
"type": "main",
"index": 0
}
]
]
},
"API - G\u00e9n\u00e9rer Facture": {
"main": [
[
{
"node": "Code - Pr\u00e9parer PDF",
"type": "main",
"index": 0
}
]
]
},
"Code - Pr\u00e9parer PDF": {
"main": [
[
{
"node": "Email - Envoyer Facture",
"type": "main",
"index": 0
}
]
]
},
"Email - Envoyer Facture": {
"main": [
[
{
"node": "Firebase - Mettre \u00e0 Jour Statut",
"type": "main",
"index": 0
}
]
]
},
"Firebase - Mettre \u00e0 Jour Statut": {
"main": [
[
{
"node": "Wait 7 Days",
"type": "main",
"index": 0
},
{
"node": "Logger - Enregistrer Ex\u00e9cution",
"type": "main",
"index": 0
}
]
]
},
"Wait 7 Days": {
"main": [
[
{
"node": "Email - Relance J+7",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1"
},
"staticData": null,
"tags": [
{
"name": "Facturation",
"id": "1"
},
{
"name": "Automatisation",
"id": "2"
}
],
"versionId": "1"
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
firestoreApismtp
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Facturation Automatique. Uses httpRequest, emailSend, firestore. Scheduled trigger; 10 nodes.
Source: https://github.com/HerbertGourout/IntuitionConcept/blob/15241abcd70bd6996f3d7dc9cf09cf45fe68c21f/n8n-workflows/auto-invoice-workflow.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Communication Client Automatisée. Uses httpRequest, emailSend, twilio, firestore. Scheduled trigger; 11 nodes.
This workflow is an improvement of this workflow by Greg Brzezinka.
N8N-Self-Updater. Uses ssh, emailSend, httpRequest. Scheduled trigger; 27 nodes.
> An automated n8n workflow originally built for DigitalOcean-based n8n deployments, but fully compatible with any VPS or cloud hosting (e.g., AWS, Google Cloud, Hetzner, Linode, etc.) where n8n ru
What if you could spot a major sales problem—or a winning campaign—the very next morning, instead of weeks later? Imagine receiving a beautiful, data-rich alert directly in your inbox the moment your