You can use the Download Validation step to perform advanced validations of Word files such as content.

Example code:

var zip = new JSZip(fileBuffer);
var doc = new Docxtemplater();

var docxText = doc.getFullText();
console.log("text:", docxText);

return docxText.includes(expectedText);
  1. name: Docxtemplater, type: Package, value: docxtemplater@3.9.5
  2. name: JSZip, type: Package, value: jszip@2.*
  3. name: expectedText, type: JavaScript, value: 'DOCX test file'

see screenshot:

Did this answer your question?