> For the complete documentation index, see [llms.txt](https://docs.empowergpt.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.empowergpt.ai/apps/doc-analyst/using-doc-analysis.md).

# Using Doc Analysis

{% stepper %}
{% step %}

### Initiating a New Analysis

To start a new analysis:

1. Click on **'Start Analysis'**
2. Enter a unique Analysis Title
3. The recommended and optimal model for document analysis is preselected.
4. Enter the questions you need to extract from each upload document.
5. Choose a Dataset
   * Select an existing dataset or import a new one from the EmpowerGPT app
6. Once all required fields are complete, the Run Analysis button becomes active
7. Click Run Analysis to begin

<figure><img src="/files/Zt83oqqajV3gKfkY2pIy" alt=""><figcaption><p>Analysis Detail</p></figcaption></figure>

<figure><img src="/files/smR64P8hOutdl5MlQ61h" alt=""><figcaption><p>Create Questionnaire</p></figcaption></figure>

<figure><img src="/files/svy79szzPl32YAWWD16q" alt=""><figcaption><p>Create Dataset</p></figcaption></figure>
{% endstep %}

{% step %}

### Analysis Execution

* Responses are generated **sequentially**, one question at a time
* Users can click on any generated response to open the **Detailed Response View**
* The detailed response includes:
  * Full answer text
  * Document references
  * Page numbers
  * Clickable links to open the source document
* Users may navigate to **Next** or **Previous** questions
* The detailed view closes when clicking outside the window
  {% endstep %}

{% step %}

### Editing Questions After Completion

When the analysis is completed:

* Users can edit individual questions directly
* After editing a question, click the ✔️ button to save
* A new response is automatically regenerated for the edited question
* Edited questions display an **"Edited"** tag

#### **Updating a Questionnaire**

If an analysis uses a questionnaire, the system handles updates depending on whether the questionnaire is used elsewhere:

* If NOT used in any other analysis → An Update button appears
  * Clicking Update saves the edited questions to the original questionnaire
* If used in other analyses → Updating is restricted
  * A Save As New Copy option appears
  * The new questionnaire is automatically linked to the current analysis
    {% endstep %}
    {% endstepper %}

***

### Analysis Status

<table><thead><tr><th width="187.26953125">Status</th><th>Description</th></tr></thead><tbody><tr><td><strong>In Progress</strong></td><td>Responses are currently being generated. Editing is disabled. Users may view details and references.</td></tr><tr><td><strong>Completed</strong></td><td>All responses are generated. Users may edit questions and regenerate answers.</td></tr><tr><td><strong>Regenerating</strong></td><td>Occurs when a question or full analysis is being regenerated. Editing remains disabled.</td></tr><tr><td><strong>Cancelled</strong></td><td>Analysis was manually cancelled before completion. No remaining questions are answered.</td></tr><tr><td><strong>Partially Completed</strong></td><td>Some answers were generated; others failed due to communication issues. Users may regenerate only the unanswered ones.</td></tr><tr><td><strong>Failed</strong></td><td>No answers were generated due to system or source issues.</td></tr></tbody></table>


---

# 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.empowergpt.ai/apps/doc-analyst/using-doc-analysis.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.
