Templates
The Templates module provides a library of reusable document templates with variable substitution, version management, and usage analytics. Templates streamline document creation by providing pre-approved formats that can be filled with context-specific data.
What You Can Do
Section titled “What You Can Do”- Browse templates — Search and filter templates by category
- Fill variables — Enter values for template variables or auto-fill from existing documents
- Preview content — See a live preview of the generated document with your variable values
- Generate and download — Create the final document and download it
- Compare versions — View differences between template versions
- Create templates from documents — Convert existing documents into reusable templates
- View usage analytics — Track template usage with charts and statistics
Browsing Templates
Section titled “Browsing Templates”Finding a Template
Section titled “Finding a Template”- Navigate to Templates from the main menu.
- Use the Search field to find templates by name.
- Use the Category filter dropdown to narrow by template category.
- Templates are displayed as cards showing the template name, category, and version.
Selecting a Template
Section titled “Selecting a Template”- Click on a template card to select it.
- The template details panel opens, showing:
- Template name and category
- Current version
- Available variables
- Version history
Filling Templates
Section titled “Filling Templates”Entering Variable Values
Section titled “Entering Variable Values”- After selecting a template, the Variables section lists all placeholders.
- Enter a value for each variable in the corresponding input field.
- Required variables are marked and must be filled before generating.
Auto-Fill from Documents
Section titled “Auto-Fill from Documents”- Click the Auto-fill button in the variables section.
- Select a source document from the dropdown.
- The system extracts metadata and uses AI to populate matching variables.
- Review the auto-filled values and adjust as needed.
Selecting a Template Version
Section titled “Selecting a Template Version”- In the version dropdown, select the specific template version to use.
- Variables and preview update to reflect the selected version.
- The latest version is selected by default.
Previewing and Generating
Section titled “Previewing and Generating”Live Preview
Section titled “Live Preview”- As you fill in variables, the Preview panel updates in real time.
- Variable placeholders are replaced with your entered values.
- Unfilled variables remain visible as placeholders so you can identify missing values.
Generating Content
Section titled “Generating Content”- Fill in all required variables.
- Review the live preview to confirm the content is correct.
- Click the Generate button.
- The generated document is prepared for download.
Downloading
Section titled “Downloading”- After generation, click the Download button.
- The document is saved to your local machine.
Version Management
Section titled “Version Management”Viewing Version History
Section titled “Viewing Version History”- Select a template to view its details.
- The Version History section lists all available versions.
- Each version shows its version number and creation date.
Comparing Versions
Section titled “Comparing Versions”- In the version history, select two versions to compare.
- The comparison view highlights differences between the versions.
- Added content is shown in green; removed content is shown in red.
Creating Templates from Documents
Section titled “Creating Templates from Documents”Converting a Document to a Template
Section titled “Converting a Document to a Template”- On the Templates page, click Create from Document.
- Select the source document from the document list.
- The system analyzes the document and identifies potential variables.
- Review and confirm the suggested variable placeholders.
- Enter a name and category for the new template.
- Save the template to the library.
Usage Analytics
Section titled “Usage Analytics”Viewing Template Analytics
Section titled “Viewing Template Analytics”- On the Templates page, navigate to the Analytics section.
- View a doughnut chart showing template usage distribution by category.
- View a bar chart showing usage frequency over time.
- The Recent Usage table lists recent template uses with:
- Template name
- User who used the template
- Date and time of use
- Output format
Permissions
Section titled “Permissions”| Action | Required Role |
|---|---|
| Browse and view templates | Any authenticated user |
| Fill and generate from templates | Any authenticated user |
| Create templates from documents | QA_Team, Admin |
| Manage template versions | QA_Team, Admin |