This workflow automatically generates a branded PDF invoice from data in Google Sheets and saves it to Google Drive. No manual document editing required.
It's triggered when you update the status column of any row in your invoices sheet to Active. From there it:
invoice_number)Invoice-{invoice_number}.pdfSentThe workflow loops over invoices, so you can flip multiple rows to Active at once and each will be processed independently. Polling runs every minute (but you can change this to whatever frequency you want).
1. Copy the demo Google Sheet
Open the link and go to File → Make a copy. This gives you a Sheet with the correct structure:
invoice_number, invoice_date, due_date, status, customer_name, customer_email, customer_company, customer_address, pdf_urlinvoice_number, description, quantity, unit_price2. Install the DocuPotion community node
In n8n, go to Settings → Community Nodes → Install and enter 'DocuPotion'.
3. Create your DocuPotion invoice template
Log into DocuPotion and create a template for your invoice layout. The workflow passes these merge fields to the template:
invoice_number, invoice_date, due_date, customer_name, customer_company, customer_address, customer_email, total, and line_items[] (an array where each item has description, quantity, unit_price).
Note the template ID from DocuPotion — you'll need it in step 5.
4. Connect credentials
Import this workflow into n8n, then connect credentials for:
5. Point the workflow at your resources
Invoice Status Updated to Active, Get Invoice Items, Add Link to Google Sheet), replace the document ID with your copied Sheet's ID.Generate PDF node, replace the template ID with your DocuPotion template ID.Upload to Google Drive, change the destination folder from root to a subfolder like /Invoices.6. Activate and test
Turn on the workflow. Then in your invoices Sheet, change the status of a sample row to Active. Within a minute, you should see:
pdf_url column populatedstatus column updated to SentUpload to Google Drive to send the invoice to customer_email automatically.Approved or Ready to send.Upload to Google Drive to include company name or date.