Template Mapper icon

Template Mapper

Apprend d'un template DOCX taggue pour taguer automatiquement un document similaire. Tags et checkboxes sont analyses en un seul appel IA.

Template Mapper

AI-generated

Summary

Applies tags from a reference template to a target document using a Large Language Model.

Inputs

  • targetDocumentProperty (required) — Name of the binary field containing the target DOCX document to be tagged.
  • referenceTemplateProperty (required) — Name of the binary field containing the reference DOCX template with {{TAG}} placeholders.
  • options — Optional settings: 'outputFilename' (custom name for the saved file, defaults to original_tagged.docx) and 'debug' (boolean flag to enable detailed console logging).

Output shape

A single item with a modified binary file.

The operation returns a single output item. The node uses a unified Large Language Model (LLM) call to perform semantic matching for both tags and checkboxes in one pass, applying the results to the target XML.

Examples

Example 1: Tagging a financial report

Input: Binary fields 'report.docx' (target) and 'financial_template.docx' (reference with {{TOTAL_REVENUE}}). Output: 'report_tagged.docx' with the tag inserted in the correct section.

Example 2: Applying a template with checkboxes

Input: 'application.docx' (target) and 'form_template.docx' (reference with {{OUI}} and {{NON}} checkboxes). Output: 'application_tagged.docx' with checkboxes checked/unchecked according to the template.

Links

Discussion