# US 2025/0209259 A1 · System and method for automated recommendation of template layouts

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0209259 A1
- Document ID: US20250209259A1
- Status: Published application
- Kind: A1
- Application number: 18/394,969
- Filed: 2023-12-22
- Published: 2025-06-26
- Earliest claimed: 2023-12-22
- Assignees: Open Text Holdings, Inc.
- Applicants: Open Text Holdings, Inc.
- Inventors: Vaibhav Pradip Pande
- Web page: https://patentgrep.com/patent/US20250209259A1

## CPC

- G06F 40/186: Templates
- G06F 40/106: Display of layout of documents; Previewing
- G06F 3/0484: for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of the present disclosure provides systems and methods for automatically recommending layout information for templates and template elements during template design/editing. A computer-implemented method includes receiving, based on a user interaction with the graphical user interface, a request to add a template element to a template, determining a recommended layout for the template element based on a document event dataset and a layout information dataset, presenting the recommended layout for the template element in the graphical user interface as a first recommendation; adding the template element to the template formatted according to the recommended layout for the template element and storing the new template in a database of templates used to electronically generate documents. The document event dataset comprises data for user action events on electronic documents generated from template and the layout information dataset comprises layout information from the template.

## Claims

### Claim 1

A system for composing templates used for automatically generating communications, the system comprising:
a computer memory storing, in association with a plurality of templates of a template type, a first layout information dataset comprising layout information for a plurality of template elements contained in the plurality of templates and a first document event dataset comprising user action events captured on documents electronically generated from the plurality of templates;
a processor coupled to the computer memory;
a non-transitory, computer-readable medium storing thereon a set of computer-executable instructions that are executable by the processor, the set of computer-executable instructions comprising instructions for:
providing a graphical user interface for authoring a new template of the template type;
receiving, based on a user interaction with the graphical user interface, a request to add a first template element of a first template element type to the new template;
determining a recommended layout for the first template element based on a second document event dataset and a second layout information dataset, the second document event dataset comprising data, from the first document event dataset, for events captured on electronic documents generated from a first template from the plurality of templates, and the second layout information dataset comprising layout information for the first template from the first layout information dataset;
presenting the recommended layout for the first template element in the graphical user interface as a first recommendation;
adding the first template element to the new template formatted according to the recommended layout for the first template element; and
storing the new template in a database of templates used to electronically generate documents.

### Claim 2 (depends on 1)

The system of claim 1, wherein determining the recommended layout for the first template element comprises:
determining candidate templates from the plurality of templates based on a template selection criterion, wherein the first template is a candidate template and wherein the second document event dataset includes data for events captured on electronic documents generated from each of the candidate templates;
selecting the first template as layout source template from the candidate templates based on ranking the candidate templates using the second document event dataset; and
selecting a layout of a respective template element of the first template element type in the first template as the recommended layout for the first template element in the new template.

### Claim 3 (depends on 1)

The system of claim 1, wherein determining the recommended layout for the first template element comprises:
determining candidate templates from the plurality of templates based on a template selection criterion, wherein the first template is a candidate template and wherein the second document event dataset includes data for events captured on electronic documents generated from each of the candidate templates;
determining effective templates from the candidate templates based on the second document event dataset;
generating exemplar documents from the effective templates;
determining a similarity between the exemplar documents;
based on a determination of the similarity between the exemplar documents, selecting as the recommended layout for the first template element, a layout of a template element of the first template element type contained in one of the effective templates.

### Claim 4 (depends on 1)

The system of claim 1, wherein the set of computer-executable instructions comprises instructions for:
receiving a request to add a second template element of a second template element type to the new template; and
responsive to the request to add the second template element to the new template, determine a revised recommended layout for the first template element and a recommended layout for the second template element based on a third document event dataset and a third layout information dataset, the third document event dataset comprising data, from the first document event dataset, for events captured on electronic documents generated from a first set of templates from the plurality of templates, and the third layout information dataset comprising layout information, from the first layout information dataset, for template elements of the first template element type and template elements of the second template element type, each template in the first set of templates containing a respective template element of the first template element type and a respective template element of the second template element type.

### Claim 5 (depends on 1)

The system of claim 1, wherein the computer memory stores a machine learning model that represents the first layout information dataset, the first document event dataset, the second layout information dataset, the second document event dataset, wherein the request to add the first template element comprises editing event data, and wherein determining the recommended layout for the first template element comprises:
extracting editing event features from the editing event data, the editing event features comprising a template metadata feature and a template element metadata feature;
generating a feature vector using the editing event features; and
processing the feature vector with the machine learning model to output the recommended layout.

### Claim 6 (depends on 5)

The system of claim 5, wherein the layout information represented by the machine learning model includes a parameter indicating whether a user accepted a prior layout recommendation for the first template element.

### Claim 7 (depends on 1)

The system of claim 1, wherein the recommended layout comprises at least one of a recommended element location, a recommended element size, a recommended font, a recommended background, or a recommended color.

### Claim 8

A computer program product comprising a non-transitory, computer-readable medium storing thereon a set of computer-executable instructions that are executable by a processor, the set of computer-executable instructions comprising instructions for:
storing, in a computer memory, in association with a plurality of templates of a template type, a first layout information dataset for a plurality of template elements contained in the plurality of templates and a first document event dataset for events captured on documents electronically generated from the plurality of templates;
providing a graphical user interface for authoring a new template of the template type;
receiving, based on a user interaction with the graphical user interface, a request to add a first template element of a first template element type to the new template;
determining a recommended layout for the first template element based on a second document event dataset and a second layout information dataset, the second document event dataset comprising data, from the first document event dataset, for events captured on electronic documents generated from a first template from the plurality of templates, and the second layout information dataset comprising layout information for the first template from the first layout information dataset;
presenting the recommended layout for the first template element in the graphical user interface as a first recommendation;
adding the first template element to the new template formatted according to the recommended layout for the first template element; and
storing the new template in a database of templates used to electronically generate documents.

### Claim 9 (depends on 8)

The computer program product of claim 8, wherein determining the recommended layout for the first template element comprises:
determining candidate templates from the plurality of templates based on a template selection criterion, wherein the first template is a candidate template and wherein the second document event dataset includes data for events captured on electronic documents generated from each of the candidate templates;
selecting the first template as layout source template from the candidate templates based on ranking the candidate templates using the second document event dataset; and
selecting a layout of a respective template element of the first template element type in the first template as the recommended layout for the first template element in the new template.

### Claim 10 (depends on 8)

The computer program product of claim 8, wherein determining the recommended layout for the first template element comprises:
determining candidate templates from the plurality of templates based on a template selection criterion, wherein the first template is a candidate template and wherein the second document event dataset includes data for events captured on electronic documents generated from each of the candidate templates;
determining effective templates from the candidate templates based on the second document event dataset;
generating exemplar documents from the effective templates;
determining a similarity between the exemplar documents;
based on a determination of the similarity between the exemplar documents, selecting as the recommended layout for the first template element, a layout of a template element of the first template element type contained in one of the effective templates.

### Claim 11 (depends on 8)

The computer program product of claim 8, wherein the set of computer-executable instructions comprises instructions for:
receiving a request to add a second template element of a second template element type to the new template; and
responsive to the request to add the second template element to the new template, determine a revised recommended layout for the first template element and a recommended layout for the second template element based on a third document event dataset and a third layout information dataset, the third document event dataset comprising data, from the first document event dataset, for events captured on electronic documents generated from a first set of templates from the plurality of templates, and the third layout information dataset comprising layout information, from the first layout information dataset, for template elements of the first template element type and template elements of the second template element type, each template in the first set of templates containing a respective template element of the first template element type and a respective template element of the second template element type.

### Claim 12 (depends on 8)

The computer program product of claim 8, wherein storing the first layout information dataset and the first document event dataset comprises storing a machine learning model that represents the first layout information dataset and the first document event dataset, wherein the request to add the first template element to the new template comprises editing event data, and wherein determining the recommended layout for the first template element further comprises:
extracting editing event features from the editing event data, the editing event features comprising a template metadata feature and a template element metadata feature;
generating a feature vector using the editing event features; and
processing the feature vector with the machine learning model to output the recommended layout.

### Claim 13 (depends on 12)

The computer program product of claim 12, wherein the first layout information dataset represented by the machine learning model includes a parameter indicating whether a user accepted a prior layout recommendation for the first template element.

### Claim 14 (depends on 8)

The computer program product of claim 8, wherein the recommended layout comprises at least one of a recommended element position, a recommended element size, a recommended font, a recommended background, or a recommended color.

### Claim 15

A computer-implemented method for composing templates used for automated generation of communications:
storing, in a computer memory, in association with a plurality of templates of a template type, a first layout information dataset for a plurality of template elements contained in the plurality of templates and a first document event dataset for events captured on documents electronically generated from the plurality of templates;
providing a graphical user interface for authoring a new template of the template type;
receiving, based on a user interaction with the graphical user interface, a request to add a first template element of a first template element type to the new template;
determining a recommended layout for the first template element based on a second document event dataset and a second layout information dataset, the second document event dataset comprising data, from the first document event dataset, for events captured from electronic documents generated from a first template from the plurality of templates, and the second layout information dataset comprising layout information for the first template from the first layout information dataset;
presenting the recommended layout for the first template element in the graphical user interface as a first recommendation;
adding the first template element to the new template formatted according to the recommended layout for the first template element; and
storing the new template in a database of templates used to electronically generate documents.

### Claim 16 (depends on 15)

The method of claim 15, wherein determining the recommended layout for the first template element comprises:
determining candidate templates from the plurality of templates based on a template selection criterion, wherein the first template is a candidate template and wherein the second document event dataset includes data for events captured on electronic documents generated from each of the candidate templates;
selecting the first template as layout source template from the candidate templates based on ranking the candidate templates using the second document event dataset; and
selecting a layout of a respective template element of the first template element type in the first template as the recommended layout for the first template element in the new template.

### Claim 17 (depends on 15)

The method of claim 15, wherein determining the recommended layout for the first template element comprises:
determining candidate templates from the plurality of templates based on a template selection criterion, wherein the first template is a candidate template and wherein the second document event dataset includes data for events captured on electronic documents generated from each of the candidate templates;
determining effective templates from the candidate templates based on the second document event dataset;
generating exemplar documents from the effective templates;
determining a similarity between the exemplar documents;
based on a determination of the similarity between the exemplar documents, selecting as the recommended layout for the first template element, a layout of a template element of the first template element type contained in one of the effective templates.

### Claim 18 (depends on 15)

The method of claim 15, further comprising:
receiving, via the graphical user interface, a request to add a second template element of a second template element type to the new template; and
responsive to the request to add the second template element to the new template, determine a revised recommended layout for the first template element and a recommended layout for the second template element based on a third document event dataset and a third layout information dataset, the third document event dataset comprising data, from the first document event dataset, for events captured on electronic documents generated from a first set of templates from the plurality of templates, and the third layout information dataset comprising layout information, from the first layout information dataset, for template elements of the first template element type and template elements of the second template element type, each template in the first set of templates containing a respective template element of the first template element type and a respective template element of the second template element type.

### Claim 19 (depends on 15)

The method of claim 15, wherein storing the first layout information dataset and the first document event dataset comprises storing a machine learning model that represents the first layout information dataset and the first document event dataset, wherein the request to add the first template element to the new template comprises editing event data, and wherein determining the recommended layout for the first template element further comprises:
extracting editing event features from the editing event data, the editing event features comprising a template metadata feature and a template element metadata feature;
generating a feature vector using the editing event features; and
processing the feature vector with the machine learning model to output the recommended layout.

### Claim 20 (depends on 19)

The method of claim 19, wherein the first layout information dataset represented by the machine learning model includes a parameter indicating whether a user accepted a prior layout recommendation for the first template element.

### Claim 21 (depends on 15)

The method of claim 15, wherein the recommended layout comprises at least one of a recommended element position, a recommended element size, a recommended font, a recommended background, or a recommended color.
