> For the complete documentation index, see [llms.txt](https://docs.maiagent.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maiagent.ai/maiagent-user-guide/en/build/agent/persistent-memory.md).

# Persistent Memory

Let your Agent extract and retain facts and preferences from conversations, and view, delete, or reactivate individual memories on the Agent settings page

Persistent memory lets your Agent extract facts worth remembering during conversations (such as a contact's preferences or information they previously provided), save them, and reuse them in later conversations with the same contact without asking again each time.

It differs from vector memory and cross-conversation retrieval in "Conversation Memory Settings": those features **search** past messages when answering, while persistent memory **organizes conversations into individual structured memories** for long-term retention. See [Agent Memory](https://docs.maiagent.ai/maiagent-user-guide/en/build/agent.md#memory) for a comparison of the three.

## How to Enable It <a href="#enable" id="enable"></a>

Persistent memory is controlled at the **organization level**. Individual Agents cannot enable or disable it themselves. To enable or disable it, contact your organization administrator or your MaiAgent contact.

You can see its current status on the Agent settings page:

1. Open "<mark style="color:blue;">AI Features</mark>" → "<mark style="color:blue;">AI Assistants</mark>" and select the Agent you want to view.
2. In the left navigation, click "<mark style="color:blue;">Management & Advanced</mark>" → "<mark style="color:blue;">Advanced Settings</mark>".
3. Scroll to the "<mark style="color:blue;">Persistent Memory</mark>" section. The label next to "<mark style="color:blue;">Cross-Conversation Memory</mark>" displays <mark style="color:blue;">Enabled</mark> or <mark style="color:blue;">Disabled</mark>.

{% hint style="info" %}
The "<mark style="color:blue;">Memory List</mark>" appears below the section only when the organization has enabled the feature and the Agent has already been created (outside the creation dialog).
{% endhint %}

## Member Personal Memory Switches <a href="#member-memory-switches" id="member-memory-switches"></a>

The "<mark style="color:blue;">Persistent Memory</mark>" section also has two Agent-level switches that determine how this Agent interacts with organization members' [AI Memory](https://docs.maiagent.ai/maiagent-user-guide/en/work/maigpt/ai-memory.md) (their personal memory). The two switches are independent of each other, and anyone with edit permission for this Agent can adjust them. They are grayed out and cannot be toggled when the organization has not enabled cross-conversation memory.

| Switch                                                           | When on                                                                                        | When off                                                                                                              |
| ---------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| <mark style="color:blue;">Write to Member Personal Memory</mark> | What a member says about themselves to this Agent is saved to that member's personal AI Memory | What a member says to this Agent is not saved to their personal AI Memory                                             |
| <mark style="color:blue;">Use Member Personal Memory</mark>      | When this Agent answers a member, it refers to that member's personal AI Memory                | When this Agent answers a member, it does not refer to their personal AI Memory, the same as when answering customers |

Both switches are on by default for MaiGPT; for other Agents they are off by default, and administrators can turn them on when needed.

For example, a customer service manager uses a customer service Agent in the admin console to role-play a customer and test replies, entering "I have high blood pressure. Can I take this supplement?" If the Agent has "<mark style="color:blue;">Write to Member Personal Memory</mark>" on, this customer scenario is recorded as the manager's own memory. Later, when the manager uses an Agent with "<mark style="color:blue;">Use Member Personal Memory</mark>" on (such as MaiGPT), that memory is also referenced. For Agents that members use to test customer service replies or to type on behalf of others, keep "<mark style="color:blue;">Write to Member Personal Memory</mark>" off.

## Memory List <a href="#memory-list" id="memory-list"></a>

The "<mark style="color:blue;">Memory List</mark>" shows all memories currently stored by this Agent. The number next to the title is the total count; click "<mark style="color:blue;">Refresh</mark>" on the right to reload it. Each memory includes:

| Item        | Description                                                                                                                                                                                                                                                      |
| ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Topic**   | A topic identifier for the memory, for easy categorization and reference                                                                                                                                                                                         |
| **Summary** | A one-sentence summary of the memory; the Agent primarily refers to this when answering                                                                                                                                                                          |
| **Details** | Additional details listed individually; displays "—" when there are no details                                                                                                                                                                                   |
| Scope label | The scope this memory applies to: <mark style="color:blue;">Organization</mark>, <mark style="color:blue;">Member</mark>, <mark style="color:blue;">Assistant</mark>, <mark style="color:blue;">Contact</mark>, or <mark style="color:blue;">Conversation</mark> |
| Type label  | The nature of the memory: <mark style="color:blue;">Fact</mark>, <mark style="color:blue;">Preference</mark>, <mark style="color:blue;">Summary</mark>, <mark style="color:blue;">Instruction</mark>, or <mark style="color:blue;">Profile</mark>                |
| Date        | The date this memory was created                                                                                                                                                                                                                                 |

When the list is empty, it displays "No memories recorded yet". Memories appear here once the Agent extracts facts from conversations.

### Delete a Memory <a href="#delete-memory" id="delete-memory"></a>

Each memory has a "<mark style="color:blue;">Delete</mark>" action on the right. After confirmation, it is permanently removed, and the Agent will no longer refer to it in later conversations. Use this when information was extracted incorrectly or a contact asks you to forget specific information.

### Expired Memories <a href="#expired-memories" id="expired-memories"></a>

Memories do not disappear immediately after they expire. Instead, they move to the "<mark style="color:blue;">Expired Memories</mark>" collapsible section below the list (with the count in parentheses), where they appear in gray with dashed borders. The Agent does not refer to these memories. Expand the section to access two actions for each memory:

* **Reactivate** (↶ icon): After confirming "Are you sure you want to reactivate this memory?", the memory becomes active again, and the Agent resumes referring to it.
* **Delete**: Permanently removes it.

{% hint style="warning" %}
Memory content comes from information contacts provide in conversations. Manage it according to your organization's data use and privacy policies. When a contact requests deletion of personal data, remember to remove the related memories as well.
{% endhint %}

## Manage via API <a href="#api" id="api"></a>

To read or maintain memories in your own system, use the [Member Memory API](https://docs.maiagent.ai/tech/api-integration/member-memory-api) in the Technical Manual.


---

# 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.maiagent.ai/maiagent-user-guide/en/build/agent/persistent-memory.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.
