Skip to content

Choosing a Generator

Verified against source (11)

  • docs/merge-use-cases.md
  • qbo4.Document/MergeService.cs
  • qbo4.Document.Bridge/BridgeGenerator.cs
  • qbo4.Document.Bridge/ZipGeneratorCore.cs
  • qbo4.Document.AsposeWords/WordMerge.cs
  • Extensions/WorkbookExtensions.cs
  • Extensions/PdfDocumentExtensions.cs
  • qbo4.Document.Archive/ZipMerge.cs
  • qbo4.Document.AI/AiMerge.cs
  • qbo4.Document.Parquet.Bridge/ParquetGenerator.cs
  • qbo4.Document.Aspose.Bridge/PdfImageGenerator.cs

A document template names a generator: the plugin that turns QBO data into a document. QBO offers generators for Word letters, fillable PDF forms, Excel workbooks, ZIP packages, data exports, and AI-drafted documents. They solve different problems, and choosing the wrong one is the usual reason a template is hard to maintain or a document can’t be trusted.

This page helps you choose. To set up a template for each generator, choose Power user under the page title; for how generators work underneath, choose Developer.

Start here: should the document be the same every time?

Section titled “Start here: should the document be the same every time?”

Ask whether two people given the same data should produce the same document, word for word.

  • Yes. The wording is fixed and only the facts change. Use a template merge (a Word template, a fillable PDF form, or an Excel workbook). For the same data the output is the same every time, every value traces back to a field, and the template is the record of what was sent. Most regulated correspondence belongs here.
  • No. Someone has to read source material and decide what to write. An AI draft can produce a first version. Plan for a person to review every draft before it goes anywhere, and for the cost and time of a model call per document.

If the only variation is which paragraph or disclosure applies (by state, by product, by the age of an account), the document is still the same every time for the same data. Model it as rules: separate templates chosen by the workflow, or conditional content in the template. That is not a reason to use AI.

You need Use Starts from Produces
A letter or form with fixed wording Word template A Word document with merge fields PDF, Word, HTML, text, or TIFF
A published form that must be used as is PDF form A fillable PDF PDF (or Word, HTML, text, TIFF)
Calculations the business keeps in Excel Excel workbook A workbook with named ranges Excel, CSV, or PDF
One package of existing documents ZIP package A query or list of documents A ZIP, split into parts when large
A draft that needs reading and judgment AI draft A prompt, plus the record and its documents PDF, Word, or Excel
A data feed for analytics or a data lake Parquet or Avro export A query Parquet files and a manifest, or an Avro file
A file in a layout a vendor dictates Delimited or fixed-width file A query One file per result set
Photos pulled out of PDF reports PDF image extraction One or more PDFs One document per image

Word template: letters and forms with fixed wording

Section titled “Word template: letters and forms with fixed wording”

The template is a Word document whose merge fields name values in the record’s data. QBO fills them in and saves the result, usually as a PDF.

Good fits

  • Regulated correspondence with prescribed wording: validation and collection notices, breach letters, payoff and reinstatement quote letters, escrow notices.
  • Legal forms whose text is set by statute or a court: notices of sale, assignments, affidavits whose facts come from the record.
  • Any high-volume letter that runs thousands of times from one template.
  • Documents with a signature or logo image, loaded from a document on the record.
  • Lists of any length, such as a payment history or a list of parties: a repeating section in the template repeats once per item, so no fixed row count is needed.

Watch out for

  • Test a template with repeating sections on records with zero, one, and several items.
  • Values arrive as text, so Word’s number and date formatting switches don’t reformat them. Format the value in the data instead.
  • One invalid field name fails the whole document. That’s the right failure: you find it when you test the template, not in a letter that was sent.

Each field of a fillable PDF is set from the data value with the same name.

Good fits

  • Forms that are published as fillable PDFs and must be used as published: government, investor, and court forms, where re-creating the form in Word would be a compliance risk in itself.
  • Third-party forms you receive as PDFs and can’t edit.

Watch out for

  • Field names must match data names exactly, so the mapping lives in the data: a query that returns columns named after the form’s fields.
  • Text fields are filled; radio buttons and push buttons are not. A form that depends on them needs another approach.
  • A field with no matching value is cleared.

Excel workbook: let the spreadsheet calculate

Section titled “Excel workbook: let the spreadsheet calculate”

Named ranges in the workbook say which data to load. QBO fills them, from the record or from QBO queries, and the workbook recalculates before it’s saved.

Good fits

  • Calculations the business already maintains in Excel: payoff and reinstatement figures, escrow analyses, fee schedules, loss-mitigation waterfalls, bid calculations. The formulas stay where the business can read and audit them, and QBO supplies the inputs.
  • Formatted reports and exports built from queries.
  • Workbooks people go on working in: a worklist with lookup lists and data validation already set up.

Watch out for

  • The workbook is the logic. Version it and test it like code, because a changed formula changes every figure it produces.
  • A formula with a missing input calculates to an error or a zero rather than failing. Test with incomplete records and check the figures.

Not a template merge: QBO collects existing documents and writes them into one ZIP, stored as a new document. Packages are written one entry at a time, so very large packages don’t strain the server, and a package that outgrows the maximum size is split into parts.

Good fits

  • Delivering a file’s documents in one package: a referral to an attorney, a file for an investor, auditor, or new servicer, a due-diligence document set.
  • Exports where the receiver wants a single download.

Watch out for

  • Entries are named after each document’s file name, so two documents with the same name collide.
  • ZIP passwords use traditional ZIP encryption, which keeps casual readers out but isn’t strong. Send sensitive packages over an encrypted channel as well.
  • Decide whether one unreadable document should stop the whole package or only be logged.

The template is a prompt, written in the template’s description. QBO sends the prompt to a language model with the record and, if the template asks for them, its parent record and related documents. Documents attached to the template itself are sent as examples of the expected output. The model writes the document. See AI for how QBO connects to models.

Good fits

  • Documents that need reading and judgment: drafting a complaint, notice set, or demand from a file and its title report, payoff, and note, following a firm’s written procedure.
  • Summaries of long or varied material: a file review memo, a hand-off summary, a timeline from notes.
  • Replies that must respond to what someone wrote, such as a customer’s letter or dispute, drafted for a person to edit and send.
  • First drafts of Word templates, which then run without AI.

Not a fit

  • Letters with prescribed wording or exact figures. A model can paraphrase required language, transpose or invent a figure, and won’t write the same letter twice from the same data.
  • High-volume runs of a uniform document: a model call per document adds cost and time for no benefit.
  • Anything sent without review.

Watch out for

  • The output is a draft. Keep a review step in the workflow, and keep what the model was given (the record, the documents, the prompt) so a reviewer can check its work.
  • Example documents steer format strongly; say in the prompt how to use them.
  • Each document takes seconds to minutes, not milliseconds, and costs a model call.

Not documents for people: these write a query’s results in a columnar (Parquet) or row-based (Avro) data format. A Parquet export writes one file per result set, plus a manifest that names each file and its row count, so the receiver can check that it got everything.

Good fits: feeds to a data lake or warehouse, extracts for analytics and BI tools, and large exports where CSV’s lack of data types and its size get in the way.

Watch out for: column types come from the query, so changing the query changes the schema the receiver loads.

Each result set a query returns becomes one file, delimited or fixed-width, laid out by the template’s settings (row terminator, column headers, header and trailer records, file name).

Good fits: file feeds whose layout a vendor, investor, or agency dictates, such as referrals, status and remittance files, and older interfaces that read fixed columns.

Watch out for: the layout is your contract with the receiver. Test against their specification and a sample they accept, and treat any change to the query’s columns as a change to that contract.

Creates one document per image in a PDF report, from the PDF the template runs against or from every PDF a query returns.

Good fits: property photos from inspection, valuation, and broker price opinion reports, so they can be reviewed, classified, or attached to the property on their own.

Watch out for: every image is extracted, logos and decorations included. Plan a filtering or review step if only photos matter.

Generators compose in a workflow:

  • An Excel workbook lays out the payoff calculation for the file, and a Word letter quoting the payoff goes out alongside it.
  • An AI draft answers a dispute for review, and the approved response goes out on a Word template carrying the required disclosures.
  • A ZIP package bundles the generated letters, the calculation workbook, and the source documents into one package for the file.

Collection and validation letters are the same every time for the same data, so use a Word template.

  • The wording. Regulation F’s validation notice has a published model form. A template built from it keeps the prescribed language exactly, and the merge fills in the account’s facts.
  • The figures. The itemization date, amounts, and validation period come from the record through merge fields, so every figure in the letter traces to a field. A repeating section lists the transactions since the itemization date, however many there are.
  • State disclosures and languages. Choose them by rule (the customer’s state, the age of the debt, language preference): a template per variant chosen by the workflow, or conditional content tested against each case.
  • Where AI helps. Reviewing the template against the model form and state requirements before it goes live, and checking a sample of generated letters against a checklist. Neither puts a model between the data and the letter.

This is a technical recommendation, not legal advice. Your compliance counsel should approve the templates and the disclosures they contain.