This workflow automates invoice creation using Google Sheets for structured input and Google Docs for templated output — all built inside n8n.
Manual TriggerStart the workflow manually for testing or development purposes.
Google Sheets — Load Invoice DataPulls invoice data from a Google Sheet.
Company FromCompany ToTermsInvoiceDescriptionAmount🔑 Credentials Required:
Connect to Google Sheets OAuth2 API in n8n.
Be sure your sheet is shared with the connected Google account.
Get Invoice Template — Load Google DocLoads a static Google Docs template containing placeholder values.
FromCompany#
ToCompany#
Terms#
Invoice#
Description#
Amount#
🔑 Credentials Required:
Connect to Google Docs OAuth2 API in n8n.
Create New Doc — Make Invoice FileCreates a new Google Doc by duplicating the invoice template.
Invoice: {{ $json.Invoice }}1TnDibwPPPUm3VbmETiqWDVhtaUTLJ6mn🔐 Make sure your Google Docs credential has write access to this folder.
Merge — Combine DataMerges the loaded document and spreadsheet row together for downstream updates.
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.
Input Invoice Details — Replace FieldsUses 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 |
Each row from the Google Sheet results in a completed, branded Google Doc invoice stored in your Drive.
Robert Breen
Automation Consultant
🌐 ynteractive.com
📧 [email protected]
🔗 LinkedIn
| 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!