> 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/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/long-term-memory.md).

# 长期记忆

查找在 Unreal Engine 中启用长期记忆、识别玩家、恢复会话和排查回忆问题的指南。

长期记忆（LTM）可让 Convai 角色在不同会话之间保留有关特定玩家的信息。在 Convai Unreal Engine 插件中，角色启用 LTM 后，聊天机器人在连接时发送稳定的 `EndUserID` ，记忆功能便会生效。

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>长期记忆的工作原理</strong><br>了解 LTM 会存储哪些内容、玩家身份如何限定记忆范围，以及项目必须在会话之间持久化哪些数据。</td><td><a href="https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/long-term-memory/how-long-term-memory-works.md">长期记忆的工作原理</a></td></tr><tr><td><strong>长期记忆快速入门</strong><br>为一个角色启用记忆、分配稳定的玩家身份，并在“在编辑器中运行”模式下验证跨会话回忆。</td><td><a href="https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/long-term-memory/long-term-memory-quick-start.md">长期记忆快速开始</a></td></tr><tr><td><strong>为角色配置记忆</strong><br>启用或检查角色的 LTM 设置，并在需要时重置本地对话关联。</td><td><a href="https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/long-term-memory/configure-memory-for-a-character.md">为角色配置记忆</a></td></tr><tr><td><strong>最终用户身份</strong><br>在 `StartSession` 之前选择并分配稳定的 `EndUserID`，以确保记忆关联到正确的玩家。</td><td><a href="https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/long-term-memory/end-user-identity.md">终端用户身份</a></td></tr><tr><td><strong>Speaker ID 管理</strong><br>如果项目使用 Speaker ID 工作流，可通过 Blueprint 节点创建、列出和删除 Speaker ID 记录。</td><td><a href="https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/long-term-memory/speaker-id-management.md">说话者 ID 管理</a></td></tr><tr><td><strong>LTM Blueprint 参考</strong><br>运行时 `Convai|LTM` Blueprint 节点、`FConvaiSpeakerInfo` 以及两个 Convai 组件上记忆属性的参考。</td><td><a href="https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/long-term-memory/ltm-blueprint-reference.md">LTM Blueprint 参考</a></td></tr><tr><td><strong>长期记忆用法示例</strong><br>以 Blueprint 为主的实现模式，涵盖回访玩家、共享设备、基于账户的身份以及重置为全新状态。</td><td><a href="https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/long-term-memory/long-term-memory-usage-examples.md">长期记忆使用示例</a></td></tr><tr><td><strong>排查长期记忆问题</strong><br>诊断记忆功能未启用、身份不匹配、Speaker ID 失败以及会话从头开始等问题。</td><td><a href="https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/long-term-memory/troubleshoot-long-term-memory.md">排查长期记忆问题</a></td></tr></tbody></table>

### 后续步骤

先阅读 [长期记忆的工作原理](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/long-term-memory/how-long-term-memory-works.md) 了解基本概念，然后按照 [长期记忆快速入门](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/long-term-memory/long-term-memory-quick-start.md) 在你的关卡中启用记忆功能。

{% content-ref url="/pages/9df4cda7b4a29ebef0a84953231ee1b61e2d4c9f" %}
[长期记忆的工作原理](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/long-term-memory/how-long-term-memory-works.md)
{% endcontent-ref %}

{% content-ref url="/pages/ce3e385378b893a9b53a3930b98101901dc9d6d8" %}
[长期记忆快速开始](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/long-term-memory/long-term-memory-quick-start.md)
{% endcontent-ref %}


---

# 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/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/features/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.
