> For the complete documentation index, see [llms.txt](https://interfacing.gitbook.io/interfacing-help-files/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://interfacing.gitbook.io/interfacing-help-files/end-users/exploring-apps/working-with-forms/generating-templates.md).

# Generating Templates

Create and download documents using data from a form.

Some forms support **template generation**, allowing you to download or preview documents based on the form’s content.&#x20;

***

#### <i class="fa-circle-plus">:circle-plus:</i>  Generating a Template

1. Click the **Export** button in the top-right corner of the form.
2. From the dropdown menu, select one of the available options:
   * **Word** – Downloads a Word document (.docx).
   * **PDF** – Downloads a PDF file (.pdf).
   * **PDF (Preview)** – Opens a PDF preview in a new browser tab.

<figure><img src="https://1488562728-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTx7AmE0d2Q4ja20EYjF5%2Fuploads%2F7kL3pyYzFpTc2hocbwRh%2FIMS-V16-Apps-Sample-3.png?alt=media&amp;token=7c4cfe17-ac89-4d3a-9355-c2eabadf2a3e" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}

#### Template Availability

* Only template formats enabled for the form appear in the dropdown menu.
* If the **Export** button is not visible, template generation is **not available** for that form.
  {% endhint %}

{% hint style="success" %}
**Tip:** If a template does not download or display correctly, refresh the page and try again.
{% endhint %}

***


---

# 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://interfacing.gitbook.io/interfacing-help-files/end-users/exploring-apps/working-with-forms/generating-templates.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.
