> For the complete documentation index, see [llms.txt](https://docs.convai.com/api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.convai.com/api-docs/plugins-and-integrations/unreal-engine/guides/long-term-memory.md).

# Long Term Memory | Unreal Engine

This guide explains how to enable long term memory in Convai Character

#### Steps to enable long term memory

1. Select your character in the playground on the Convai website.
2. Go to the **Memories Tab**, and then to **Memory Settings**. Enable **Long Term Memory** for the character there.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdi0A9NklIgt-d5Ftz4NWdHNXuSgCWNqofBPo6bpu50EC2AcLXiC_BnV8m1-FTQzk2Ob9_peusElQJlNaezDucB4y0gLnq5G4a2SVR9WOqmOngvAxw7_9GK4KtTmiaXxmI_rQ9y?key=E4IGNaHrJaNNjEd9PTsNBzqR" alt=""><figcaption></figcaption></figure>

#### Steps to setup LTM in Unreal Engine

1. Go to, **Project Settings -> Plugins -> Convai**. where you have set the API key.
2. There, click on the **Manage Speaker ID**. button under **Long Term Memory.** This will spawn an editor utility to create, delete, and list speaker ids.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfVOObpWqcg0mMr5Rmp0Z-ZIgF4iHBIDE_MVR6SvrVroOd18JM3Y4hjhZ752jQXYV-dRRcAyzY9Vrulh1SfRMD1umwv8CseBgc8THwoBz2o7XReIgitWENsSmiLcy2UT4YhpWS6?key=E4IGNaHrJaNNjEd9PTsNBzqR" alt=""><figcaption></figcaption></figure>

3. If you have already created a Speaker ID, you can click **List All Speaker IDs**. Then, go to **Project Settings -> Plugins -> Convai**, and under **Long Term Memory**, you will find the Speaker IDs array. Copy the desired Speaker ID.
4. Now, go to the Player Blueprint and select the ConvaiPlayer component. In the details panel, you will find a Speaker ID field under the Convai category. Past the desired Speaker ID there.

<figure><img src="https://413558230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEtUJA212Zc1S9ACc8T4l%2Fuploads%2F5Gd0EsAwejqBwIqrb0cr%2Fimage.png?alt=media&amp;token=05472c37-97be-49e8-bb31-016a40bbb2c2" alt=""><figcaption></figcaption></figure>


---

# 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.convai.com/api-docs/plugins-and-integrations/unreal-engine/guides/long-term-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.
