Skip to main content

Automated invoice generator from Google Sheets to Google Docs

Workflow preview

Workflow preview
100%
Automated invoice generator from Google Sheets to Google Docs preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow automates invoice creation using Google Sheets for structured input and Google Docs for templated output — all built inside n8n. ️ Step by Step Instructions Step 1: Start the workfl...

Best for

  • Document Extraction automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.googlesheets, n8n-nodes-base.merge, n8n-nodes-base.googledocs, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Robert Breen.

Original n8n.io source

1.1 Workflow description

Title
Automated invoice generator from Google Sheets to Google Docs
Workflow name
Automated invoice generator from Google Sheets to Google Docs

This workflow automates invoice creation using Google Sheets for structured input and Google Docs for templated output — all built inside n8n.


🛠️ Step-by-Step Instructions

### Step 1: Manual Trigger

Start the workflow manually for testing or development purposes.


### Step 2: Google Sheets — Load Invoice Data

Pulls invoice data from a Google Sheet.

  • 📄 Sheet URL: Copy This Sheet
  • Expected Columns:
    • Company From
    • Company To
    • Terms
    • Invoice
    • Description
    • Amount

> 🔑 Credentials Required:
> Connect to Google Sheets OAuth2 API in n8n.
> Be sure your sheet is shared with the connected Google account.


### Step 3: Get Invoice Template — Load Google Doc

Loads a static Google Docs template containing placeholder values.

  • 🧾 Template URL: Copy This Template
  • Required Placeholders in the document:
    FromCompany#
    ToCompany#
    Terms#
    Invoice#
    Description#
    Amount#
    

> 🔑 Credentials Required:
> Connect to Google Docs OAuth2 API in n8n.


### Step 4: Create New Doc — Make Invoice File

Creates a new Google Doc by duplicating the invoice template.

  • Title Format: Invoice: {{ $json.Invoice }}
  • Destination Folder ID: 1TnDibwPPPUm3VbmETiqWDVhtaUTLJ6mn
    (You can change this to your own Google Drive folder)

> 🔐 Make sure your Google Docs credential has write access to this folder.


### Step 5: Merge — Combine Data

Merges the loaded document and spreadsheet row together for downstream updates.


### Step 6: Insert Content into Doc (Optional)

You can insert additional content here if needed.
For example, a note, header, or footer pulled from your database or a custom field.


### Step 7: Input Invoice Details — Replace Fields

Uses Google Docs API to replace all placeholders from the original template with the actual values.

Replacements:

Placeholder Replaced With
FromCompany# Company From from sheet
ToCompany# Company To from sheet
Terms# Terms from sheet
Invoice# Invoice number
Description# Description of service
Amount# Amount of invoice

📤 Final Output

Each row from the Google Sheet results in a completed, branded Google Doc invoice stored in your Drive.


🙋 Need Help?

Robert Breen
Automation Consultant
🌐 ynteractive.com
📧 [email protected]
🔗 LinkedIn


🔒 Required APIs

Service Purpose
Google Sheets API Pull structured invoice data
Google Docs API Load & modify invoice documents
n8n OAuth2 Connect both services securely

Let me know if you'd like a follow-up step to export invoices as PDFs or auto-email them to clients!

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking ‘Execute workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Google Sheets

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 3 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 4 - Get Invoice Template

Type / Role
n8n-nodes-base.googleDocs - googleDocs
Config choices
Version 2

Block 5 - Create New Doc

Type / Role
n8n-nodes-base.googleDocs - googleDocs
Config choices
Version 2

Block 6 - Insert Content into Doc

Type / Role
n8n-nodes-base.googleDocs - googleDocs
Config choices
Version 2

Block 7 - Input Invoice Details

Type / Role
n8n-nodes-base.googleDocs - googleDocs
Config choices
Version 2

Block 8 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Automated invoice generator from Google Sheets to Google Docs
Complexity intermediate
Nodes 11
Categories Document Extraction
Author Robert Breen
Published 07 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7138/7138.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automated invoice generator from Google Sheets to Google Docs do?

This workflow automates invoice creation using Google Sheets for structured input and Google Docs for templated output — all built inside n8n. ️ Step by Step Instructions Step 1: Start the workfl...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction use case.