Skip to content

Customize your PDF templates with AI

You don’t need to know HTML or CSS to change how your invoices, quotes, POs and packing slips look.

  1. Copy your template into an AI assistant (Claude, ChatGPT or Copilot).
  2. Describe the change in plain words.
  3. Paste the result back into Volant and preview it.

It takes about 10 minutes. You copy the template’s code out, the AI changes it, and you paste it back.

  1. Go to Document Templates in the main menu and open the template you want to change, for example System Invoice.
  2. System templates can’t be edited. Click Duplicate as Custom to make your own copy, then open the copy.
  3. In the HTML Editor tab, choose Code. Click in the code, press Ctrl+A (Cmd+A on a Mac) to select everything, and copy it.
  4. Open your AI assistant and paste the starter prompt below.
  5. In the starter prompt, paste your template code where it says to, then write the change you want in plain words.
  6. Copy the whole template the AI gives back. In Volant, select everything in the Code view and paste over it.
  7. Switch to Split or Preview to check the result, then click Save.
  8. When you’re happy with it, open the Configuration tab and click Set as Default. New documents of that type will then use your template.

Copy this whole block into your AI assistant at the start of every conversation about a template. It tells the AI the rules Volant needs, so the template keeps working.

You are helping me edit a document template for Volant ERP. The template is an HTML page that Volant turns into a PDF (an invoice, quote, purchase order, packing slip or similar).
Rules you must follow:
1. Keep every placeholder in double curly braces exactly as written, for example {{order.OrderNumber}} or {{billingAddress.City}}. Don't rename, translate, fix the spelling of, or remove them. Volant replaces them with real data.
2. Keep every {{#each line_items}} ... {{/each}} block and every {{#if ...}} ... {{/if}} block. The content inside {{#each line_items}} repeats once per line on the order.
3. Only use placeholders that are already in my template or that I give you. Don't invent new ones; they will print as blank or as raw code.
4. Use plain HTML and CSS only, with all CSS inside one <style> tag in the <head>. No JavaScript, no external stylesheets, no web fonts. Use common fonts such as Arial, Helvetica or Georgia.
5. It will print on US Letter paper. Keep the layout simple and printable: tables for line items, no animations, no fixed or sticky positioning.
6. Return the COMPLETE template from <!DOCTYPE html> to </html> in one code block, so I can paste it straight back in. Don't return only the changed part.
7. After the code, list in one or two lines what you changed.
Here is my current template:
[PASTE YOUR TEMPLATE CODE HERE]
Here is what I want to change:
[DESCRIBE THE CHANGE IN PLAIN WORDS]

To make another change, ask in the same conversation (“now make the totals bold”). Paste the new result into Volant each time.

To add information the template doesn’t show yet:

  1. Open the Field Reference tab in the template editor. It lists every field for that document type, with an example value.
  2. Copy the placeholder from there.
  3. Tell the AI where to put it, for example: “Add {{order.CustomerNote}} under the Ship To address.”

Copy placeholders exactly; their spelling matters.

The most useful fields on sales documents (quotes, invoices, packing slips):

Group Placeholder Prints
Order {{order.OrderNumber}} Order or invoice number
Order {{order.OrderDate}}, {{order.DueDate}}, {{order.ShipDate}} Dates
Order {{order.CustomerPONumber}} The customer’s PO number
Order {{order.CustomerNote}} Note from the customer
Order {{order.PaymentTerm_Name}}, {{order.ShipVia_Name}} Payment terms, ship method
Customer {{customer.DisplayName}}, {{customer.CustomerNumber}} Customer name and number
Bill To / Ship To {{billingAddress.ContactName}}, {{shippingAddress.City}} and the rest Address lines and contact (see Field Reference)
Company {{company.Name}}, {{company.Phone}}, {{company.Email}}, {{company.Website}} Your company details
Company {{company.LogoUrl}} Your logo, used as <img src="{{company.LogoUrl}}">
Line items {{Identifier}}, {{Name}}, {{Quantity}}, {{UnitPrice}}, {{DiscountAmount}}, {{SoldUnitOfMeasurement}} One row per line. Only works inside {{#each line_items}}
Totals {{_subtotal}}, {{_discountTotal}}, {{_taxTotal}}, {{_grandTotal}} Calculated totals
Totals {{_amountPaid}}, {{_balanceDue}} Payments (invoices)
Other {{_today}}, {{_lineItemCount}}, {{_validityDays}} Today’s date, line count, days a quote is valid

Purchase orders, requests for quote and putaway lists use vendor fields instead, such as {{vendor.Name}}, {{vendor.AccountNumber}}, {{Sku}}, {{VendorSku}} and {{UnitCost}}. Check the Field Reference tab on those templates.

Write the change the way you’d tell a person. One change per message works best. Examples you can copy:

  • Colors: “Change the red accent color to our brand navy, #1F3A5F.”
  • Logo: “Move the logo to the top left and make it about twice as tall.”
  • Totals: “Make the Grand Total row bold and give it a light gray background.”
  • Terms: “Add a Terms and Conditions section at the bottom with this text: [paste your terms].”
  • Signature: “Add a signature line and a date line at the bottom for the customer to sign.”
  • Fewer columns: “Remove the Tax column from the line items table.”
  • New field: “Show {{order.CustomerNote}} under the Ship To address, labeled Delivery Notes. Hide it when it’s empty using {{#if order.CustomerNote}}.”
  • Font: “Use Georgia for headings and Arial for everything else, and make the body text slightly larger.”
  • Match a sample: paste a screenshot or describe your current paper invoice, and ask: “Make the layout match this as closely as you can.”
What you see Fix
A field prints as code, like {{order.CustomerNote}} In the preview this can be normal, since sample data doesn’t fill every field. On a real document, the placeholder is misspelled: copy it again from Field Reference.
A field is blank on a real document The order has no value for it, or the placeholder was changed. Compare it with Field Reference.
The state is missing from an address on a real document For now, use {{billingAddress.StateOrProvidence}} or {{shippingAddress.StateOrProvidence}}, as the system templates do. See the known issue under Data fields.
Only one line item shows, or none The {{#each line_items}} or {{/each}} line was removed or moved. Ask the AI: “Make sure the line items table repeats with {{#each line_items}} … {{/each}} around the row.”
The layout breaks across pages Ask: “Keep each line item row on one page and don’t split the totals block across pages.”
The AI only returned part of the template Ask: “Send the complete template from <!DOCTYPE html> to </html>.”
You want to start over Duplicate the system template again and start from the fresh copy. Archive the copy you don’t want. The system templates themselves can’t be changed, so they’re always there to go back to.