> 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/ja/work/maigpt/ai-memory.md).

# AI メモリ

AI アシスタントが会話から学習した好みや事実を確認・管理する

AI メモリーのページでは、アカウントに現在保存されている好みや事実を確認・管理できます。メモリーの追加、編集、削除、再有効化ができます。

{% hint style="info" %}
この項目は、組織で AI メモリーが有効になっている場合にのみ、アカウントのページに表示されます。
{% endhint %}

## 利用する場面 <a href="#use-case" id="use-case"></a>

たとえば、プロジェクトマネージャーがアカウントに保存されたコミュニケーション上の好みを整理したい場合を考えます。<mark style="color:blue;">AI メモリー</mark>で既存の内容を確認し、「日本語で回答する」という好みを手動で追加できます。必要が変わったときは、いつでも編集または削除できます。

## メモリー一覧を開く <a href="#open-memory-list" id="open-memory-list"></a>

右上のアカウントメニューから <mark style="color:blue;">プロフィール</mark>を開き、組織セクションで <mark style="color:blue;">AI メモリー</mark>を選択します。ページにメモリーが一覧表示されます。まだデータがない場合は「メモリーはまだありません」と表示されます。

<figure><img src="https://2584873290-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTvHx8hgwYGDTLD3A7xoW%2Fuploads%2Fgit-blob-abad881f3ab1ac20097bc14dacc629a5ff640bf4%2Fai-memory-list.png?alt=media" alt="AI メモリー画面の空の状態。右上に追加ボタンがある"><figcaption><p>AI メモリー一覧の空の状態</p></figcaption></figure>

## メモリーを手動で追加する <a href="#add-memory" id="add-memory"></a>

{% stepper %}
{% step %} <mark style="color:blue;">AI メモリー</mark>画面の右上にある <mark style="color:blue;">追加</mark>を選択します。
{% endstep %}

{% step %}
種類を選び、トピック、要約、詳細を入力します。トピックには `communication_style` のような英語の `snake_case` を使用します。詳細は項目ごとに改行して入力できます。

<figure><img src="https://2584873290-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTvHx8hgwYGDTLD3A7xoW%2Fuploads%2Fgit-blob-89edbfeec742e3fab67138f346e8bb7c09d254dd%2Fai-memory-add.png?alt=media" alt="種類、トピック、要約、詳細の欄がある AI メモリー追加フォーム"><figcaption><p>メモリーを手動で追加するときに入力する項目</p></figcaption></figure>
{% endstep %}

{% step %} <mark style="color:blue;">保存</mark>を選択します。新しいメモリーが一覧に表示されます。
{% endstep %}
{% endstepper %}

## 会話中にアシスタントに覚えてもらう <a href="#save-in-chat" id="save-in-chat"></a>

<mark style="color:blue;">AI メモリー</mark>画面で手動追加するほか、会話中にアシスタントへ「覚えておいて……」と伝えることもできます。アシスタントはその内容を一件のメモリーにまとめて一覧に保存し、以後の会話で参照できます。

また、役職、回答言語の好み、よく使うスキルなど、長期的に役立つと判断した事実をアシスタントが自発的に記録することもあります。

### 利用条件 <a href="#save-in-chat-requirements" id="save-in-chat-requirements"></a>

会話中にアシスタントがメモリーを書き込むには、次の条件をすべて満たす必要があります。

* 組織で AI メモリーが有効になっている。
* 対象の AI アシスタントの設定で <mark style="color:blue;">ベクトルメモリー</mark>が有効になっている。
* 会話の利用者が組織のメンバーである。匿名の訪問者との会話からはメモリーは作成されません。

{% hint style="warning" %}
アシスタントは、クレジットカード番号、本人確認書類の番号、パスポート番号、銀行口座番号、携帯電話番号、メールアドレス、パスワード、API キーなどの機密性の高い個人情報を保存しません。こうした情報が含まれる場合はメモリーに保存せず、保存できないことを伝えます。
{% endhint %}

### 利用例 <a href="#save-in-chat-scenario" id="save-in-chat-scenario"></a>

たとえば、マーケティング担当者が MaiGPT で新製品のプレゼンテーションを準備しており、毎回製品のコードネームを伝え直したくない場合を考えます。会話で「覚えておいてください。デモ製品のコードネームは Aurora です。今後、製品紹介を書くときはこのコードネームを使ってください」と入力します。アシスタントは <mark style="color:blue;">Save Memory</mark> を実行して、覚えたことを返信します。担当者が <mark style="color:blue;">AI メモリー</mark>画面を開くと、このメモリーに <mark style="color:blue;">ユーザーの依頼</mark>というラベルが付いています。その後、新しい会話で製品紹介を依頼すると、アシスタントは Aurora というコードネームを使用します。

<figure><img src="https://2584873290-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTvHx8hgwYGDTLD3A7xoW%2Fuploads%2Fgit-blob-a97fd05d5498ebff8adf57d180d7d53c0e8603dd%2Fmaigpt-memory-save-in-chat.png?alt=media" alt="MaiGPT の会話でユーザーがデモ製品のコードネーム Aurora を覚えるよう依頼し、手順に Save Memory の実行とアシスタントの確認が表示される"><figcaption><p>会話中にアシスタントへ記憶を依頼すると、手順に Save Memory の実行が表示されます</p></figcaption></figure>

{% hint style="info" %}
アシスタントが書き込むメモリーのトピックが既存のメモリーと同じ場合は、新しく重複して追加せず、そのメモリーを更新します。
{% endhint %}

## メモリーの保存元ラベル <a href="#source-tags" id="source-tags"></a>

一覧の各メモリーには保存元が表示されます。会話中にアシスタントが書き込んだメモリーには、次のいずれかのラベルが付きます。

| ラベル                                             | 意味                         |
| ----------------------------------------------- | -------------------------- |
| <mark style="color:blue;">ユーザーの依頼</mark>（緑）     | 会話中にアシスタントへ明示的に覚えるよう依頼した内容 |
| <mark style="color:blue;">アシスタントによる記録</mark>（紫） | アシスタントが会話中に自発的に判断して保存した内容  |

一覧には、このページから自分で追加したメモリーの <mark style="color:blue;">手動追加</mark>や、システムが会話から自動的にまとめた <mark style="color:blue;">AI 抽出</mark>など、ほかの保存元ラベルも表示される場合があります。残しておきたくないメモリーは、以下の手順で編集または削除してください。

<figure><img src="https://2584873290-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTvHx8hgwYGDTLD3A7xoW%2Fuploads%2Fgit-blob-1d67cfaf5ece4c4e3090598fce4d82f9d1d12ba6%2Fmaigpt-memory-source-tags.png?alt=media" alt="AI メモリー一覧の二件。一件は事実と AI 抽出、もう一件はトピック demo_product_code に指示とユーザーの依頼のラベルが付いている"><figcaption><p>メモリー一覧の保存元ラベル：AI 抽出とユーザーの依頼</p></figcaption></figure>

## 既存のメモリーを管理する <a href="#manage" id="manage"></a>

メモリー一覧では、次の操作ができます。

* トピック、要約、詳細を編集する。
* 正確でなくなったメモリーや AI に使用してほしくないメモリーを削除する。削除後は復元できません。
* 「期限切れのメモリー」セクションで、期限切れの項目を再有効化する。
* 更新ボタンを選択し、一覧を最新の状態にする。

{% hint style="warning" %}
メモリーは今後の会話の回答に影響する場合があります。内容が古い、不正確、または長期保存すべきでない場合は、速やかに修正または削除してください。
{% endhint %}


---

# 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/ja/work/maigpt/ai-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.
