> ## Documentation Index
> Fetch the complete documentation index at: https://docs.box.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Marking a document as a Doc Gen template

Before generating documents, you must add your template to Box Doc Gen. You can do this by:

* Marking an existing file already stored in your Box account as a Doc Gen template.
* [Uploading a template](https://docs.box.com/en/box-doc-gen/box-doc-gen-templates/uploading-templates-to-doc-gen.md).

This article covers marking existing documents as templates.

## Prerequisites

To generate documents automatically, the template must already contain Box Doc Gen template tags. Use one of the following approaches to add the tags:

1. Use the [Box Doc Gen Template Creator add-in for Microsoft Word](https://docs.box.com/en/box-doc-gen/box-doc-gen-installation/installing-the-box-doc-gen-template-creator-add-in-for-microsoft-word.md) to create a Box Doc Gen template without any code.
2. Use the [Box Doc Gen tagging script](https://docs.box.com/en/box-doc-gen/box-doc-gen-templates/template-tags-reference-guide-and-examples.md) to manually author the template.

## Marking an existing document in Box as a Doc Gen template

You can leverage an existing .docx file within your Box account as a Box Doc Gen template by marking it as a Box Doc Gen template.

To mark an existing document as a Doc Gen template:

1. Right-click the file to open the menu.
2. Select **Mark as Doc Gen Template**.

![Box file menu for Contract Template.docx with Mark as Doc Gen Template option highlighted.](https://mintcdn.com/product-docs/SQsI2NgHXG0tSLSJ/images/box-doc-gen/box-menu-contract-template-docx.png?fit=max\&auto=format\&n=SQsI2NgHXG0tSLSJ\&q=85\&s=e631e5fc7efbc5af67ad85ab76450e0a)

After that, the file is marked as a Doc Gen template and is ready to be used to dynamically generate custom documents.

> [!NOTE]
>
> You can access the template from the folder where it is stored, and the **Doc Gen** tab in **Automate**.

## Unmarking Box Doc Gen templates

To unmark the template:

1. Go to **Automate** > **Doc Gen**.
2. Hover over the template you wish to unmark and select the ellipsis (![More options ellipsis icon with three horizontal dots.](https://docs.box.com/images/box-doc-gen/more-options-ellipsis-three.png)).
3. Select **Unmark Template**.

![Doc Gen tab template list with context menu showing Download and Unmark Template for Contract Template.docx.](https://mintcdn.com/product-docs/SQsI2NgHXG0tSLSJ/images/box-doc-gen/doc-gen-tab-template-list.png?fit=max\&auto=format\&n=SQsI2NgHXG0tSLSJ\&q=85\&s=c7439232c227a1e5634aa518158b6585)

After that, the template is removed from the Box Doc Gen template list. It is available as a regular file in the designated save location folder.
