Automate PDF invoice creation directly from Google Sheets data using this powerful n8n workflow. Perfect for small businesses needing reliable, automated PDF generation.
Download this n8n workflow template and start using it instantly.
This n8n workflow is ideal for:
Small business owners and freelancers who manage billing data in Google Sheets.
Users looking for reliable, automated document generation solutions using n8n.
This n8n workflow provides a robust solution for automating your invoicing process. Instead of manually copying data into a separate PDF tool, this n8n automation extracts raw line items from a designated Google Sheet, processes the data through a custom JavaScript n8n node for accurate calculations (tax, totals, unique invoice number generation), and uses the PDF.co API to render a beautifully formatted PDF document using a predefined HTML template.
This specific n8n template ensures standardization and speed. It significantly reduces manual effort and minimizes errors associated with repetitive data entry, allowing for instant, professional invoice creation whenever the n8n trigger is activated.
This comprehensive n8n workflow proceeds through the following steps:
templateId, it dynamically merges the invoice data into the PDF.co template, generating the final professional PDF invoice document. This completes the primary goal of the n8n workflow.To deploy this powerful n8n workflow, follow these setup instructions:
templateId in the 'Create PDF' n8n node with your specific ID.INVOICEPREFIX, TAXRATE, and company details (company object) to match your business needs.This n8n workflow utilizes several key n8n nodes:
When clicking ‘Execute workflow’ (Manual Trigger): The initiating n8n trigger for starting the process. Useful for testing or manual execution.
Get Invoice Rows (Google Sheets n8n node):
Function: Connects to Google Sheets to retrieve all rows containing invoice line item data.
Key Configuration: Requires specific Spreadsheet ID and Worksheet (Sheet1). Uses OAuth2 authentication.
Convert to html import (Code n8n node):
Function: Serves as the data manipulation and logic engine. It cleans, calculates totals (SubTotal, Tax, Grand Total), generates the invoice number, and transforms the relational data structure from Google Sheets into a single JSON object optimized for HTML templating.
Key Configuration: Contains custom JavaScript defining business rules (tax rate, prefixes, formatting).
Create PDF (PDF.co Api n8n node):
Function: Executes the PDF generation using the prepared JSON data and a specified PDF.co HTML template.
Key Configuration: Operation set to URL/HTML to PDF; Template Type set to htmlTemplateToPDF; requires a specific templateId and uses the JSON payload from the preceding n8n node as input data.
Use this comprehensive n8n workflow to automate content generation with the jfirma1/test_model on Replicate. This n8n template includes a custom polling loop for reliable results.

Automate content creation for social media posts using this n8n workflow. It generates images via Nano Banana, crafts tweet text with OpenAI, seeks Telegram approval, and posts to X.

Use this advanced n8n workflow to automatically source trending news, generate AI avatar videos using HeyGen, and seamlessly publish them to Instagram and TikTok using the Blotato integration.

Generate professional, custom PDF invoices instantly using a powerful n8n workflow triggered by a webhook. Learn how this n8n template uses custom code and PDF tools for billing automation.

Use this powerful n8n workflow to automatically convert Crisp support chat transcripts into sanitized, PII-safe help documentation using the OpenAI GPT model. Ideal for knowledge base management.

Use this powerful n8n workflow to automatically generate professional Product Requirements Documents (PRDs) and Gherkin-style test scenarios using GPT-4 and Claude via OpenRouter, then export the final output as a PDF.

Professional services consultant with over 10 years of experience solving complex business problems across industries. I specialize in n8n and process automation—designing custom workflows that integrate tools like Google Calendar, Airtable, GPT, and internal systems. Whether you need to automate scheduling, sync data, or streamline operations, I build solutions that save time and drive results.