Document Templates
The Document Template tab (under System Configuration) is where you define reusable document templates that automations generate documents from. You give Nexa a title, a prompt, and a source file; Nexa converts the file into a typesetting template you can then configure, publish, and promote across environments. Authoring happens in the dev environment.
Create a template
Section titled “Create a template”-
Open System Configuration → Document Template and select ADD.
-
In the Add Document Template panel, enter a Title and a Prompt describing what the document should produce.
-
Upload a source document under Upload Document — only PDF, DOC, and DOCX files are accepted.
-
Select Save. Nexa saves the template and starts generating its Typst content (the internal typesetting representation of your document).
Template fields
Section titled “Template fields”| Field | Required | Notes |
|---|---|---|
| Title | Yes | Display name for the template. |
| Prompt | Yes | Instructions describing the document to generate. |
| Upload Document | Yes | Source file; PDF, DOC, or DOCX only. |
Status and lifecycle
Section titled “Status and lifecycle”Each template carries a status:
- Draft — created, not yet published. Editable.
- Active — published; its content is locked.
Row actions
Section titled “Row actions”Which actions appear depends on the template’s status and whether generated Typst content exists.
| Action | When available | What it does |
|---|---|---|
| Edit Title | Draft | Rename the template. |
| Configure Template | Content generated | Opens the template configuration screen to map and adjust the layout. |
| Workflow Log | Always | Streams the generation workflow log for the template. |
| Publish | Draft with content | Locks the content and marks the template Active. This is irreversible. |
| Promote to next env | Published (has a published slug) | Opens a pull request that copies the template to the next environment. |
| Clone | Active | Creates an editable copy of the template. |
| Delete | Draft | Removes the template. Cannot be undone. |
Promotion between environments
Section titled “Promotion between environments”Promoting a published template opens a pull request in the nexa-workflow-automations repository that copies templates/<slug>/ from the current environment’s branch to the next environment’s branch. Nothing is overwritten until you review and merge that PR on GitHub. See Environments for the dev → test → prod flow and GitHub Integration for the underlying connection.