AffZero is in beta — sign up and use the app for free while we're in beta. Learn more
AffZeroAffZero

Free to use during beta. No credit card required.

07

Invoice Templates

Rich Text (HTML) or Google Doc layouts—with variables merged at PDF generation and delivered by your automations.

**PDFs** come from **Rich Text** (in-app) or **Google Doc** templates, then a **Create Invoice** step. Tabs: **Templates** · **Generated Invoices** · **Invoice Numbering** (`{global_invoice_number}`). Variables you write inside an invoice template (e.g. `{revenue_1}`, `{invoice_number}`) are **design-time placeholders only**. They won’t resolve automatically — they must exactly match the variable names that the automation’s Pull Stats and other steps produce at runtime. When you attach a template to a **Create Invoice** step, confirm every placeholder against the **Variables Available** panel for that specific automation. **Google Doc** paths additionally need **Gmail + GDrive** linked.

1. Invoice Templates hub

Use **Create in Google Docs** for Workspace-friendly layouts, **Presets** for starters, or **+ Create Template** for Rich Text from scratch. The usage badge shows how many templates your plan allows.

Invoice Templates page with Templates, Generated Invoices, Invoice Numbering tabs
Generated Invoices lists every PDF; Invoice Numbering drives `{global_invoice_number}`.

2. Rich Text template basics

Set name, optional logo URL, and description. Toggle **Rich Text** vs **Google Docs** in the content area—here Rich Text gives the built-in editor. Paste HTML-style content or type directly; switch to Google Docs only when you intend to bind an external document later.

Create Invoice Template with Template Information and Rich Text editor
Prefer inline `<style>` or safe system fonts for predictable PDFs—see the HTML templates doc for tips.

3. Draft with AI

**Generate with AI** opens a prompt (e.g. “Monthly invoice—one line item, no tax”). Describe layout, fields, and tone; accept or iterate before wiring real variables from Pull Stats.

Generate with AI popup describing an invoice to Apex Media LLC
AI output is a shortcut—always replace sample tokens with live variable names.

4. Apply and tune

Review the draft in the side preview, **Regenerate** if needed, then **Use This** to drop the layout into the editor. Adjust headings, tables, and braces so every `{…}` token exists upstream of Create Invoice.

AI preview with Regenerate and Use This for invoice template
Edits apply to the next PDF only—archived invoices stay unchanged.

5. Save a Rich Text template

When the body matches your workflow, **Save & Close**. The card exposes **Edit**, **Duplicate**, and **Delete**—duplicate before risky experiments on production layouts.

Invoice template card Monthly Invoice to Apex Media with Edit Duplicate Delete
Pick this template inside a Create Invoice step when you are ready to automate.

6. Create a Google Doc template

**Create in Google Docs** opens a modal: template name, Drive file name, optional **Browse & Select Folder** (otherwise files land in Drive root on the connected account). Finish with **Create Template** after OAuth is configured under Providers.

Create Google Docs Template modal with folder browse and Create Template
The live document lives in your Drive; AffZero stores only a reference + permissions.

7. Design placeholders in Docs

Open the Doc yourself (or **Open in Google Docs** from the template card). Insert `{invoice_number}`, `{invoice_date}`, address lines, `{revenue_1}`, etc.—must match automation variables exactly, case-sensitive.

Google Doc invoice with variable placeholders in body and table
On run, AffZero copies the Doc, substitutes values, exports PDF—the master file is not modified.

8. Manage the link in AffZero

The editor shows privacy copy: we render via API, not inline embedding. Use **Open in Google Docs** / **Open folder** while testing; **Save & Close** when metadata is correct. Limitations: only docs the connected account can access; complex text boxes may PDF oddly—test with Run Now.

Edit Invoice Template for Google Doc with Open in Google Docs and Save & Close
Troubleshooting variable typos? Compare against the Create Invoice step’s Variables panel.

9. Both types in your library

Cards distinguish **Google Doc** vs Rich Text invoices. Reuse either template across automations; enable **Save to Google Drive** on Create Invoice when you want PDFs archived next to the template. Next: add Create Invoice + Send Email, confirm numbering under Invoice Numbering, then schedule or Run Now.

Invoice Templates list showing Google Doc and HTML-style cards
Need more depth on styling, previews, or substitution? Use the docs linked below.