> For the complete documentation index, see [llms.txt](https://support.docstudio.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.docstudio.com/user/template-builder/template/how-to-create-and-configure-a-template.md).

# How to Create and Configure a Template

{% hint style="info" %}
See the [Glossary](/glossary/glossary.md) for DocStudio term definitions.
{% endhint %}

### Create a template

1. In the left sidebar, open **Templates**.
2. Click the <img src="/files/2llIPKcd3sPlYr1bz7dQ" alt="" data-size="line"> button.

The template editor opens.

<figure><img src="/files/Eqv6khm2VjjQfsUCp3L4" alt=""><figcaption></figcaption></figure>

### Structured document

**Structured document** is the **default** document type for structured, data-driven templates. It lets you insert dynamic fields (text, number, date, choice, dictionary, lookup, etc.), build tables, apply formulas, and add signature elements.

<figure><img src="/files/aD2Cky5d9bjJHDJElQjO" alt="" width="563"><figcaption></figcaption></figure>

### Add external or PDF documents

{% columns %}
{% column %}
You can add external documents or PDFs to the template.

1. Click the <img src="/files/1fuvJeNxmM4UEvUWUAMq" alt="" data-size="line"> button.
2. Choose the document format:\
   — External\
   — PDF document
   {% endcolumn %}

{% column %}

<figure><img src="/files/W0bhi1AXHZNnz5EXf640" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}
You can configure:

* role (who uploads the file)
* file name (placeholder shown before upload)
* tooltip (optional helper text)
* optionality (required vs optional)
* allowed file type group
* advanced settings (access settings for the file)

{% hint style="info" %}
To learn more, read [External Documents in Templates](/user/template-builder/template-editor/how-to-add-external-documents-to-a-template.md) or [PDF documents](/user/template-builder/template-editor/how-to-add-pdf-documents-in-a-template.md).
{% endhint %}
{% endcolumn %}

{% column %}

<figure><img src="/files/EYF4G9fgIRobUMYWWJWj" alt="" width="235"><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

### Fields tab

Use **Dynamic Fields** to add fields to a structured document.

See [Template Dynamic Fields](/user/template-builder/template-dynamic-fields/template-dynamic-fields-overview.md) for the full list, including:

{% columns %}
{% column width="41.66666666666667%" %}

* [Text field](/user/template-builder/template-dynamic-fields/text-field.md)
* [Number field](/user/template-builder/template-dynamic-fields/number-field.md)
* [Currency field](/user/template-builder/template-dynamic-fields/currency-field.md)
* [Number to text Field](/user/template-builder/template-dynamic-fields/number-to-text-field.md)
* [Choice field](/user/template-builder/template-dynamic-fields/choice-field.md)
* [Checkbox field](/user/template-builder/template-dynamic-fields/checkbox-field.md)
* [Dropdown field](/user/template-builder/template-dynamic-fields/dropdown-field.md)
* [Dictionary field](/user/template-builder/template-dynamic-fields/dictionary-field.md)
  {% endcolumn %}

{% column width="58.33333333333333%" %}

* [Lookup field](/user/template-builder/template-dynamic-fields/lookup-field.md)
* [File field](/user/template-builder/template-dynamic-fields/file-upload-field.md)
* [Table field](/user/template-builder/template-dynamic-fields/dynamic-table-field.md)
* [Duplicate field](/user/template-builder/template-dynamic-fields/duplicate-field.md)
* [Formula field](/user/template-builder/template-dynamic-fields/formula-field.md)
* [Autonumber field](/user/template-builder/template-dynamic-fields/autonumber-field.md)
* [QR/barcode field](/user/template-builder/template-dynamic-fields/qr-barcode-field.md)
* [Signature field](/user/template-builder/template-dynamic-fields/signature-field.md)
  {% endcolumn %}
  {% endcolumns %}

### Template settings

{% columns %}
{% column %}
Template settings are available right after creation.

Use the **Template** and **Flow** tabs.
{% endcolumn %}

{% column %}

<figure><img src="/files/kvsGsc1A7eQlSfIxUS95" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

#### Template tab

Use **Template** for the main details and settings.

<figure><img src="/files/D4IPdTl1c3dsM6CLebD5" alt=""><figcaption></figcaption></figure>

Required fields are marked with a red asterisk (`*`). **Name** and **Description** are mandatory. By default, the template is created in **My Templates**, and access is restricted to the mailbox level. Use the **Edit** ![](/files/GSfrQsZmaUK4tES6hxZR) icon to change the template’s location and access level.

#### Set the template location

In the modal, create or select a folder.

<figure><img src="/files/syS9nMx4F0xONQobFL1F" alt=""><figcaption></figcaption></figure>

#### Set the template access level

{% hint style="info" %}
All templates are accessible at the mailbox level by default.
{% endhint %}

There are three access levels. Each one has a checkbox on the left and a pencil icon on the right:

{% columns %}
{% column width="50%" %}

1. **Selected mailboxes**\
   The template is accessible only to specific mailboxes that you choose.
2. **My account**\
   The template becomes available to all mailboxes within your account.
3. **Everyone**\
   The template is accessible to anyone who has the direct link or the UUID.
   {% endcolumn %}

{% column width="50%" %}

<figure><img src="/files/O5CmvAgLxlXRzEMatjlc" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Share with community**\
When enabled, the template can be shared with the community.
{% endhint %}
{% endcolumn %}
{% endcolumns %}

Once you add the template to **Favourites**, it appears in **Templates → Shared with You**.

{% hint style="info" %}
Please note that files with public access settings can be published on the Internet.
{% endhint %}

#### Envelope properties

{% columns %}
{% column width="58.333333333333336%" %}

* Subject\
  — Set up the subject format
* Message\
  — Envelope message. Visible to users in the inbox.
  {% endcolumn %}

{% column width="41.666666666666664%" %}

<figure><img src="/files/3hzIiGKAbLXqtQXJnHux" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

#### Recepient experience

{% columns %}
{% column %}
**Delegation is denied** — prevents recipients from delegating their assigned action to another user.

**Do not send files by email** — prevents DocStudio from sending envelope files by email.

**Restrict envelope archive downloading until envelope completion** — prevents users from downloading the envelope archive before the envelope is completed.

**Show metadata** — displays envelope metadata to recipients if metadata exists for the envelope.

Set expiration — set the envelope validity period.

* Non-expiring envelope: The envelope has no deadline and remains active until signed.
* **Sender will set expiration:** The sender manually sets the expiration date.
* **Set expiration:** The template creator sets the expiration period.
  {% endcolumn %}

{% column %}

<figure><img src="/files/ew2uRtDPjgwR0N6NUt7f" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

### Flow tab

The **Flow** tab contains participant roles.

{% columns %}
{% column %}
Role types:

* **Sender:**\
  — Creates an envelope from the template and sends it.
* **Assignee:**\
  — The main recipient responsible for completing the required action (e.g., signing or filling in fields).
* **Approver:**\
  — Reviews the document and either approves or rejects it before the process continues.
* **CC (Carbon Copy):**\
  — Receives a copy of the envelope for informational purposes only. No action is required.
  {% endcolumn %}

{% column %}

<figure><img src="/files/yROorEBG1qJlSjdfAzAY" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

To add a role, click the **Add participant** button.

{% columns %}
{% column %}
Fill in the role form:

* **Role name** — Enter a custom role name.
* **Let sender set** — Specify a mailbox, an email, or another role as a recipient. Leave it empty if the sender should choose later.
* **Role type** — Choose the role type.
  {% endcolumn %}

{% column %}

<figure><img src="/files/me7C9Gp6u7SOFrTc1q1g" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

{% hint style="info" %}
You can leave **Mailbox** empty. The sender selects the recipient when sending.

Use **Mailbox UUID** to pre-assign a specific mailbox.
{% endhint %}

### Finalise the template

{% columns %}
{% column %}
When you finish the setup:

1. Click the <img src="/files/swUyPgkMENxuDZyusiHl" alt="" data-size="line"> button to save the template without sending.
2. Click the <img src="/files/Vnr3wLrs5UCyXSAkclvN" alt="" data-size="line"> button to create and send an envelope.

When you click **Send**, the template is saved automatically.
{% endcolumn %}

{% column %}

<figure><img src="/files/K6u2kLJ4kpANHGwDDZep" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
You can send an envelope only when all required fields are filled in.
{% endhint %}
{% endcolumn %}
{% endcolumns %}
