Documentation Index
Fetch the complete documentation index at: https://docs.affzero.com/llms.txt
Use this file to discover all available pages before exploring further.
What are Google Doc Templates?
Google Doc invoice templates let you design and manage your invoice layout directly in Google Docs. You add variable placeholders like{affiliate_name_1_stats_1} directly into the document, connect it to AffZero, and the system substitutes real values and exports the document as a PDF.
This is a good choice if your team is already comfortable in Google Docs, or if you want a non-technical person to maintain the invoice design.
Prerequisites
You need a Google account connected in AffZero:- Go to Providers → Gmail & Drive
- Click Connect Google Account
- Sign in and grant AffZero permission to access your Google Drive
Creating a Google Doc Template
Step 1 — Design the document in Google Docs
Open Google Docs and create your invoice layout. You can use tables, headers, images, and all standard Google Docs formatting.Step 2 — Add variable placeholders
In the document, type your variable names exactly where you want the data to appear:Step 3 — Connect the document to AffZero
- Go to Invoices → Templates
- Click New Template
- Select Google Doc Template
- Enter a template name
- Paste the Google Doc URL (or the Document ID from the URL)
- Click Connect — AffZero will verify it can access the document
- Click Save
How Variable Substitution Works
When the Create Invoice step runs:- AffZero makes a copy of your Google Doc
- Every instance of
{variable_name}in the copy is replaced with the actual value - The filled-in copy is exported as a PDF
- The original template document is not modified
Saving to Google Drive
In the Create Invoice step, you can enable Save to Google Drive to store the generated PDF in a specific folder in your Drive. This is useful for keeping an organized archive of all generated invoices.Limitations
Tips
- Keep the design simple — clean table-based layouts convert best to PDF
- Make a template copy for testing — keep your “production” template clean and test changes on a copy first
- Share the template doc appropriately — if multiple team members need to edit the template, share the Google Doc with them directly; no need to reconnect in AffZero

