> 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). Agents can also search and read this documentation through its [MCP server](https://docs.empowergpt.ai/~gitbook/mcp).

# 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="https://2192711725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fc2KRGWrkyRO0iZN5Lyeg%2Fuploads%2F9b3Ya9MqHlGPGYbrRepn%2FPage_111%20(1).png?alt=media&amp;token=05890325-18a6-46c5-93cc-c180aa585439" alt=""><figcaption><p>Analysis Detail</p></figcaption></figure>

<figure><img src="https://2192711725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fc2KRGWrkyRO0iZN5Lyeg%2Fuploads%2FOqUesj1ExK2wLAnhQVqs%2FPage_111%20(2).png?alt=media&amp;token=1b63c110-d4a7-494e-b6f7-be3cc9f93fff" alt=""><figcaption><p>Create Questionnaire</p></figcaption></figure>

<figure><img src="https://2192711725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fc2KRGWrkyRO0iZN5Lyeg%2Fuploads%2F4vEELgdJLzF4fIJ3OdMV%2FPage_111%20(3).png?alt=media&amp;token=e3aac800-ecb9-4cb9-b392-db00dbe813da" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.empowergpt.ai/apps/doc-analyst/using-doc-analysis.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
