> For the complete documentation index, see [llms.txt](https://docs.satisfilabs.com/resource-center/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.satisfilabs.com/resource-center/ai-agent-engine/enhance-the-chat-experience/pages/maintain-state.md).

# Maintain State

## Overview

When you enable "Maintain State" within your chat, you allow your end users to continue conversations from previous chat sessions. Instead of starting a new conversation each time an end user jumps to a different page or refreshes the browser, your system will carry over past messages to improve the conversation flow.

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsxN9AGLZMIc5C8dx3zU7%2Fuploads%2F0xopk8m8qmsRF1F2oRbZ%2Fmaintain%20state%20v2%20-%20Made%20with%20Clipchamp.mp4?alt=media&token=3a0d89b5-a2a0-419c-9666-fce4fe184337>" %}
Video Showcasing the Difference Between Maintain State Enabled and Disabled
{% endembed %}

## Enable Maintain State

To add "Maintain State" to your chat, submit a ticket to our support team. Be sure to indicate which page(s) you'd like this applied.&#x20;

{% hint style="warning" %}
**Don't Know How to See Your Chat Pages?**

Click the link to learn more: [Add/View Chat Pages](/resource-center/ai-agent-engine/enhance-the-chat-experience/pages/add-view-chat-pages.md)
{% endhint %}

## FAQs

<details>

<summary>Will "Maintain State" remember end user preferences or conversation context?</summary>

No, the chat won't remember specific user preferences or remember context from a past message.&#x20;

</details>

<details>

<summary>Will the conversation carry over if the end user jumps between two devices?</summary>

No, the conversation will not carry between devices. Previous messages will only carry over if the device is recognized.&#x20;

</details>

<details>

<summary>Why do I need to designate pages where I want "Maintain State" enabled?</summary>

In certain scenarios, you may want "Maintain State" enabled so end users can reference that information at a later date. For example, if an end-user was chatting with an agent about memberships, that user may want to revert back to that conversation in the future if they decided to go through with the purchase.

On the other hand, your chat living on a dynamic webpage like schedules or FAQs, you may not want the chat to reference older messages that are now outdated.

</details>


---

# 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.satisfilabs.com/resource-center/ai-agent-engine/enhance-the-chat-experience/pages/maintain-state.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.
