> ## 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.

# Uploading templates to Doc Gen

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](https://docs.box.com/en/box-doc-gen/box-doc-gen-templates/managing-box-doc-gen-templates.md).
* Uploading a template.

This article covers uploading templates. When uploading a template, you can either create a new template from scratch or upload an existing file that you've already authored with template tags.

## Creating a new Doc Gen Template from scratch

To create a new Doc Gen template in Box:

1. Navigate to **Automate** > **Doc Gen** tab.
2. Select **New** > **Doc Gen Template**.
3. In the new window, select **New file**.
4. Provide a name for your template.
5. Specify the destination folder where you want to store the template.
6. Select **Create**.

A new Box Doc Gen template is created in the provided folder and automatically marked as a Box Doc Gen template. It is also visible under the **Doc Gen** tab in **Automate**.

After that, you need to add Box Doc Gen template tags to your template. Use one of the following approaches:

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.

## Creating a Doc Gen Template from an existing file

To upload an authored Box Doc Gen template to Box:

1. Navigate to **Automate** > **Doc Gen** > **New** > **Doc Gen Template**.
2. In the new window, select **Existing file**.
3. Select either **Choose from Box** or **Upload File**.
4. Specify the destination folder where you want to store the template.
5. Select **Create**.

After that, the template is added to the provided folder and automatically marked as a Doc Gen template. It is also visible under the **Doc Gen** tab in **Automate**.
