Getting started with document merge in Zoho Writer

Getting started with document merge in Zoho Writer

Overview

Zoho Writer’s template-based document generation lets you automatically create personalized documents by merging pre-designed templates with data from spreadsheets, forms, CRMs, or APIs. Merge fields pull in real data to generate contracts, invoices, proposals, and other documents at scale. With support for conditional logic, tables, and image merging, Zoho Writer streamlines accurate and efficient document automation.

When your document automation involves multiple templates or multi-step automation and distribution, Writer lets you build sophisticated Power Automate–style document workflows. Learn more about Writer’s Automation Builder

Steps

Step 1: Create or open a merge template

Design or open the merge template in Zoho Writer to generate personalize documents.
To create a merge template:
  1. Click File > New Automation Template > Merge Template
    1. Design from scratch: If you wish to create a template from scratch.
    2. Design over PDF: If you wish to convert an existing PDF file as a template.

You can also convert an existing document to a merge template by clicking Automate > Convert to merge template.

Step 2: Select your data source

  1. Click Automate > Configure.

  2. Choose your preferred data source.


Step 3: Setup template with fields 

To render merge fields as specific elements (like checkboxes, images, links, etc.) in Zoho Writer, you need to set the merge field types correctly while inserting them.

1. Insert merge fields

Add merge fields to personalize a document with information from the data source. Set the appropriate merge field type to determine how data is displayed or behaves in the final merged document. 

Common Type Merge Fields | Special Merge Field Types for Zoho Forms

2. Insert advanced merge fields   

Advanced fields in Zoho Writer involves Formula Fields, Conditional Fields, Repeat Fields, Chart Fields, Conditional Blocks, and Nested Merge Fields. These are what make Zoho Writer powerful for dynamic templates like invoices, proposals, contracts, or data-driven reports.

  1. Formula Fields 
    1. Perform calculations directly inside the document (e.g., =SUM(Quantity * Price)).
    2. Useful for invoices, quotes, and order forms.
      Learn how to configure formula fields in templates
  2. Conditional Fields 
    1. Display content based on conditions (IF/ELSE logic).
    2. Example: Show “Paid” if status = Paid, else show “Pending.”
      Learn how to use conditional fields in templates
  3.  Repeat Field
    1. Lets you automatically duplicate a block of content (like a table row or section) for each record in a dataset.
    2. Instead of manually copying and pasting rows, Zoho Writer will expand the block dynamically based on the incoming data.
      Learn how to repeat blocks
  4. Chart Field
    1. Lets you insert dynamic charts (bar, line, pie, etc.) into your document.
    2. The chart is linked to data sources like Sheets or CRM
      Learn how to configure chart fields in templates

3. Insert AutoFields

AutoFields are dynamic fields that automatically populate standard information in your document—like dates, page numbers, document metadata, or user details—without needing to manually enter them.

Dates | Page number & count | Document sequence fields 

 4. Insert Main Form Fields

A main form represents the primary record or entity in your data source. Each main form field corresponds to a unique entry (like a single person, invoice, or application). These fields pull in one-to-one data—meaning one record equals one document.


Example:  If you're sending invoices, each customer name and address would come from main form fields.



5. Insert Subform Fields As Repeat Blocks 

A subform is a set of fields linked to the main form, designed to handle repeating data—that is, multiple entries related to a single main record. Subforms help create one-to-many relationships in your document. Subforms automatically belong to a main form and will repeat for each associated entry during the merge.

Repeat blocks usually a table row, paragraph, or group of fields — to repeat once per item in a list or subform from your data source.


Step 4: Configure when to run merge

  1. Manually / On Trigger

Choose this option to run the merge manually by clicking Run Merge or set up triggers in connected apps to automate the merge using a button, Deluge script, or API when specific app events occur.

  1. How to run merge from Zoho CRM
  2. How to run merge from Zoho Creator
  3. How to run merge from Zoho Projects
  4. How to run merge from Zoho Sprints
  5. How to run merge from Zoho Books
  6. How to run merge with Zoho Flow
  1. On Form Submission
Automatically run the merge whenever someone submits a connected Zoho Form. You can email the generated document, let users download it, or send the data to Zoho Sheet. Learn more.
  1. Scheduled / Date & Time  

Set a specific time and date for the merge to run automatically, ideal for schedule tasks like sending reports or letters on specific date or time.

  1. External trigger (via a webhook)

Trigger merges when an event happens in an external app such as a field's value updation or a new entry created using a webhook.

Step 5: Configure merge output options

Select one of the available output options to proceed with the merge. Each option lets you control how the generated document is delivered, stored, or shared based on your workflow requirements.

  1. Set up simple merge

Simple document automation is a set of prebuilt automation flows that allow you to generate documents using one template and then, store, email, send for signing, or send as fillable form. Simple merge output options include:
  1. Merge and store
  2. Merge and email as link or as attachment 
  3. Merge and send for sign 
  4. Merge and send for approval 
  5. Merge and share as fillable form   
  6. Merge and invoke custom function

  1. Setup advanced merge

Advanced Automation Flow Builder lets you to design dynamic document workflows for complex requirements like generating (merge) documents, combining them into one, and then emailing or storing them, conditionally choosing one or multiple templates for document generation, dynamically distributing the generated documents through email, sending for signature collection, or performing post document generation actions like:
  1. Combining multiple generated documents into a single file before being sent for signing.
  2. Creating dynamic folders and storing the generated documents in them, and much more.

Step 6: Preview the merge  

  1. Click Preview Merge to see how the document looks with actual data.
  2. Navigate through records to check formatting and correctness.

Step 7: Run the merge 

  1. Click Run Merge
  2. How to Track Merge Progress and Handle Errors in Zoho Writer

Troubleshooting

Problem : In CRM Email merge template to send to a contact that includes the details of a Deal and I'd like to include the Product that's been added to the deal, but Product doesn't seem to be an option in the list of Merge Fields.
Cause : It is not possible to fetch the fields from products within contacts and you must have a custom lookup field added.
Solution:  Creating a subform in the Deals module and list down the Products. You can also write a custom function to pull the details of the Product to fields within the Contacts/Deals module to include it in the email template.

Merge limits and credits

 Merge field setup

  1. How to shorten field names
  2. How to add dynamic links in merge document 
  3. How to format date fields or or subtract days/months/year from date field  in merge
  4. How to add dynamic barcode or QR code in Merge
  5. How to add dynamic text watermarks in Merge
  6. How to aggregate data in Merge  (GroupBy & Aggregate Functions)
  7. How to merge documents with Uploaded Files on Form Submission
  8. How use Work Drive Image URLs in Merge Fields

 Merge Sub-form data 

 Merge output 

  1. How to sequentially number generated documents from merge
  2. How to protect PDF generated from Merge
  3. How to setup merge for Zoho Form Submissions
  4. How to Merge Labels with CRM Data
  5. How to use CRM Templates in Email body and Merge Document as Attachment

Post merge actions

  1. How to run Custom Workflows Post Merge 
  2. How to Setup CRM Actions Post Merge

Merge customization

Merge status and control

 API guide 

  1. Zoho Writer Rest API to Merge Document
  2. What are the throttling limits for each API
  3. How to setup postman for Writer Merge API
  4. Handling Field Ids and SubForm Data in API

Related Videos