# Managing the Structural Agent and Agent chats

## **How chats are stored**

Tonic Structural stores chats in browser storage.

## **Minimizing and displaying the chat**

To minimize the Agent chat, click the minimize icon.

<figure><img src="https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2F1NaPORqExnpO5erDNbhO%2FAgent_Minimize.png?alt=media&#x26;token=b267b63d-adef-4361-8cde-f3792a5f736f" alt=""><figcaption><p>Minimize option for the Structural Agent</p></figcaption></figure>

To restore a minimized chat, click the Agent icon.

<figure><img src="https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2FJXdYYA8wq8dJvAj39aiq%2FAgent_Restore.png?alt=media&#x26;token=04414a29-7234-4f34-bf47-304cc205d217" alt=""><figcaption><p>Minimized Agent</p></figcaption></figure>

## **Starting a new chat**

To clear the current chat and start a new one, click the delete icon in the Agent heading.

<figure><img src="https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2FvtzDJjmodEdAt8TMXJSt%2FAgent_ClearChat.png?alt=media&#x26;token=f9b9b806-b9aa-41e2-8936-ec780b594054" alt=""><figcaption><p>Delete icon to clear the Agent chat</p></figcaption></figure>

Clearing the chat also clears the browser storage for that chat.

## **Undoing an action**

Before it performs an action to modify the workspace, the Agent takes snapshots of the current workspace configuration.

To undo an action, or to revert to a previous point from the current conversation, prompt the Agent.

For example:

* `Undo that action.`
* `Revert the generator assignments for the datetime columns.`
* `Go back to before we assigned generators to the name columns.`

If needed, the Agent can ask you to select a snapshot to revert to.

## **Copying the most recent response from the Agent**

A response from the Agent might be useful elsewhere. For example, you can prompt the Agent to generate Structural API calls, or the Agent might return a useful summary of the data and its status.

To copy the most recent Agent response, click the copy icon.

<figure><img src="https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2FXvhtbfzWp8TT88XUzw0h%2FAgent_CopyResponse.png?alt=media&#x26;token=71e564e9-d4d1-4d82-af93-7a55e9fe9691" alt=""><figcaption><p>Copy response icon for the Structural Agent</p></figcaption></figure>

## **Providing feedback to the Agent**

You can provide basic positive or negative feedback to indicate the helpfulness of a response. The Agent then uses that feedback to adjust its future responses in the current chat.

To provide positive feedback, click the thumbs up icon.

To provide negative feedback, click the thumbs down icon.


---

# 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.tonic.ai/app/structural-agent/managing-the-structural-agent-and-agent-chats.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.
