🧾 Automatic invoice generation and email with Airtable and CustomJS PDF generator

271 views · 🧾 Invoice Processing

Description

> ⚠️ Notice:
> This workflow uses the CustomJS Invoice Generator node from customjs.space, which requires a self-hosted n8n instance and a CustomJS API key.


Google Spreadsheet → Invoice Generation → Email Workflow

This workflow demonstrates how to:

  1. Pull invoices ready to be sent from Airtable.
  2. Retrieve client details and invoice items from Airtable.
  3. Generate a professional invoice PDF using CustomJS Invoice Generator.
  4. Send the completed invoice via email to the client.
  5. Update the invoice status in Airtable automatically.

InvoiceGeneratorWorkflow.png Public Airtable Example


Workflow Overview

1. Trigger Workflow

2. Get Ready Invoices

3. Loop Over Items

4. Get Clients

5. Get Invoice Items

6. Map Fields

7. Aggregate

8. Set Company Details

9. Generate Invoice

10. Send Email With Attachment

11. Update Record


Requirements


🔗 Nodes Used

Airtable, Send Email

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup