> For the complete documentation index, see [llms.txt](https://docs.uptiq.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uptiq.ai/document-ai/guides/document-generation.md).

# Document Generation

Document Generation turns structured section data into a finished DOCX report — for example, a credit memo or financial summary built from extraction and classification results.

This page covers the end-user surface: submitting a generation job, tracking its status, and reviewing or downloading the result. Report templates and section authoring are configured separately and are not covered here.

In the UI, Document Generation lives under **Capabilities > Generation** and is also reachable from the Home dashboard's **Start Something** card.

| Capability           | Description                                                                                       | Limit                                                            |
| -------------------- | ------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| Generate a report    | Submit section data to produce a DOCX report                                                      | At least 1 section; section keys must be unique within a request |
| Track job status     | Poll or view a generation job's progress                                                          | No additional limit                                              |
| Download             | Download the finished DOCX                                                                        | 15 MB maximum download size                                      |
| Signed URL retrieval | Get a time-limited link to the generated document                                                 | 1–168 hours, with 24 hours as the default                        |
| List generations     | Browse past generations for the account; search by title, ID, or request ID, and filter by status | 100 results maximum per page, with 20 as the default             |
| Webhook notification | Get notified when a job completes                                                                 | Optional, via `webhookUrl` on the request                        |


---

# 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.uptiq.ai/document-ai/guides/document-generation.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.
