> For the complete documentation index, see [llms.txt](https://docs.agilecase.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.agilecase.com/administrator-documentation/templates/reusing-a-document-template-for-an-email.md).

# Reusing a Document Template for an Email

This lesson will show you how to reuse a document template as an email template in AgileCase. To see the basic steps of creating an email template, follow [this](/administrator-documentation/templates/creating-an-email-template.md) lesson.

{% stepper %}
{% step %}

### Select "Document Template"

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

When creating an email template in AgileCase, you will notice the "Type" drop down menu at the top of the page.

As a default this will be set to "Standard Template" which allows you to create your own email templates as shown previously. However, by selecting "Document Template", you can reuse one of your document templates as the content of your email.
{% endstep %}

{% step %}

### Choose the template you want to reuse

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

First of all, fill out the addressee details as you normally would—you can still use Mustache mergefields in this section to pull address details from a case.

Once this is done select the document template you wish to use from the new "Template" dropdown menu.

{% hint style="info" %}
It is important to note that selectable mergefields cannot be used in an email template so only those that are hard coded to pick out a specific element will translate in to the new template.
{% endhint %}
{% endstep %}

{% step %}

### Select the template in a case to generate an email

<figure><img src="/files/6BtKOiQNpLXC6pVOOfi8" alt=""><figcaption></figcaption></figure>

With your new template saved you can now generate an email with it as you would any other template, however you will notice that the body of text is now that of the document template that you selected previously.
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.agilecase.com/administrator-documentation/templates/reusing-a-document-template-for-an-email.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
