# Chat History

The chat history allows you to view information about what Users are discussing with the neural network and what the neural network responds to them. For a User created in the Sherpa AI Server, access to this tool can be enabled using roles. The chat history table shows all dialogues of Users created within this account.

<figure><img src="https://3237142148-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FscP4BXwl9ufpJr5mfVln%2Fuploads%2Fgit-blob-3d771afcecf6a4fb0d69134a8d1e3058ff2a825b%2Fimage%20(20).png?alt=media" alt=""><figcaption></figcaption></figure>

<table data-header-hidden><thead><tr><th width="56"></th><th width="252"></th><th width="324"></th></tr></thead><tbody><tr><td><strong>No.</strong></td><td><strong>Interface Element</strong></td><td><strong>Description</strong></td></tr><tr><td>1.</td><td>field “Show ‹…› items”</td><td>Allows you to select the number of items displayed on one page (10, 25, 50).</td></tr><tr><td>2.</td><td>button “Delete old messages”</td><td>Allows you to delete old messages.<br>Pressing the button opens a window with a field to specify the date. After confirming the specified date, messages older than that will be deleted.</td></tr><tr><td>3.</td><td>button “Export to CSV”</td><td>Allows you to export selected items to a CSV file.</td></tr><tr><td>4.</td><td>button “Export to XLSX”</td><td>Allows you to export selected items to an XLSX file.</td></tr><tr><td>5.</td><td>button “Refresh”</td><td>Allows you to refresh the “Chat History” table.</td></tr><tr><td>6.</td><td>column “Created”</td><td>Date and time the message was sent.</td></tr><tr><td>7.</td><td>column “User”</td><td>Who wrote the message.</td></tr><tr><td>8.</td><td>column “Chat”</td><td>Within which chat the message was written.</td></tr><tr><td>9.</td><td>column “Role”</td><td><p>Role of the message author. Possible values:</p><ul><li>AI Server – neural network;</li><li>Admin – account administrator.</li></ul></td></tr><tr><td>10.</td><td>column “Message”</td><td>Text of the message. If the message is long, you can click the button  to view it.</td></tr><tr><td>11.</td><td></td><td>Page navigation.</td></tr></tbody></table>

The functionality of the “Chat History” table allows you to perform the following actions:

* change the order of columns;
* configure column display;
* filter;
* configure column visibility.

To change the order of columns, you need to hold down the left mouse button on the selected column and move it.

To access the column display settings, you need to click the button .

This option allows:

1. **Pin column** – pin the selected column:
   1. Pin Left – pin the selected column to the left;
   2. Pin Right – pin the selected column to the right;
   3. No Pin – do not pin the selected column.
2. **Autosize This Column** – set the automatic size for the selected column.
3. **Autosize All Column** – set the automatic size for all columns in the table.
4. **Reset Columns** – clear the display settings for the selected column.

<figure><img src="https://3237142148-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FscP4BXwl9ufpJr5mfVln%2Fuploads%2Fgit-blob-972415d372bc6f0caa8329a0a17b0740e445c624%2Fimage%20(271).png?alt=media" alt=""><figcaption></figcaption></figure>

To filter the contents of the "Chat History" table, you need to click the button  and in the opened window select the tab . For example, in the date column, the filter will display messages within the dates specified by the User.

<figure><img src="https://3237142148-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FscP4BXwl9ufpJr5mfVln%2Fuploads%2Fgit-blob-e4ad07c74a4d2f6f95fdffb400e0b2178f0af7e4%2Fimage%20(272).png?alt=media" alt=""><figcaption></figcaption></figure>

To configure column visibility, you need to click the button  and in the opened window select the tab , then check the boxes next to the names of the columns that will be displayed in the results.

<figure><img src="https://3237142148-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FscP4BXwl9ufpJr5mfVln%2Fuploads%2Fgit-blob-3945e6d6fb078747983044b1dcb25b79bdb141ba%2Fimage%20(273).png?alt=media" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://docs.sherparpa.ru/en/sherpa-ai/sherpa-ai-server/rabota-v-sherpa-ai-server/istoriya-chatov.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
