---
schema_version: "1"
id: 772115feb595d27f799a4d374868b1a89ce9b557ca11245010dcc4cefff7271b
title: Einstein AI Connector 1.0 のチャット操作の設定
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/einstein-ai-connector/1.0/configuring-chat-operations.md
canonical_url: https://docs.mulesoft.com/jp/einstein-ai-connector/1.0/configuring-chat-operations
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 68f8df806071f6ee99aeac5f278a8828ad115db12d6f607407a76674b2073db6
description: MuleSoft Documentation Site
release: "1.0"
latest: false
---
# Einstein AI Connector 1.0 のチャット操作の設定

## [](#chat-answer-prompt-操作の設定)Chat Answer Prompt 操作の設定

**Chat answer prompt**​ 操作では、設定済み LLM に要求を送信します。この操作ではプレーンテキストプロンプトを入力として使用し、その応答にはプレーンテキストの回答が含まれます。

1. Anypoint Code Builder または Studio キャンバスで操作を選択します。
2. 操作の ​**\[General (一般)\]**​ プロパティタブで、​**\[Prompt (プロンプト)\]**​ にプレーンテキストを入力します。 Unresolved include directive in modules/ROOT/pages/configuring-chat-operations.adoc - include::connectors::partial$einstein-ai-chat-config-properties-partial.adoc\[\]

この操作の XML 設定を次に示します。

```xml
<ms-einstein-ai:chat-answer-prompt
  doc:name="Chat answer prompt"
  doc:id="66426c0e-5626-4dfa-88ef-b09f77577261"
  config-ref="Einstein_AI"
  prompt="#[payload.prompt]"
/>
```

## [](#chat-generate-from-messages-操作の設定)Chat Generate from Messages 操作の設定

**Chat generate from messages**​ 操作は、指定されたメッセージを使用する、設定済み LLM へのプロンプト要求操作です。この操作では、複数のメッセージを受け入れて、プレーンテキストプロンプトを入力として使用します。操作の応答にはプレーンテキストの回答が含まれます。

1. Anypoint Code Builder または Studio キャンバスで操作を選択します。
2. 操作の ​**\[General (一般)\]**​ プロパティタブで、​**\[Messages (メッセージ)\]**​ にプレーンテキストを入力します。 Unresolved include directive in modules/ROOT/pages/configuring-chat-operations.adoc - include::connectors::partial$einstein-ai-chat-config-properties-partial.adoc\[\]

この操作の設定 XML を次に示します。

```xml
<ms-einstein-ai:chat-generate-from-messages
  doc:name="Chat generate from messages"
  doc:id="94fa27f3-18ce-436c-8a5f-10b8dbfa4ea3"
  config-ref="Einstein_AI"
  messages="#[payload.messages]"
/>
```

## [](#chat-answer-prompt-with-memory-操作の設定)Chat Answer Prompt With Memory 操作の設定

この操作は非推奨です。​**Chat answer prompt with memory**​ 操作では、マルチユーザーチャット操作の会話履歴を保持します。

Unresolved include directive in modules/ROOT/pages/configuring-chat-operations.adoc - include::connectors::partial$t-configure-operations.adoc\[\] \* **Prompt (プロンプト)**

\+ 操作のプロンプトを含めます。 \* **Memory Path (メモリパス)**​

\+ 会話履歴を保存するメモリ内データベースへのパス。

\+ この項目では DataWeave 式を使用することもできます。次に例を示します。

\+ `#["/Users/john.wick/Desktop/mac-demo/db/" ++ payload.memoryName].` \* **Memory name (メモリ名)**

\+ 会話の名前。マルチユーザーサポートの場合、一意のユーザー ID を入力します。 \* **Keep last messages (最後のメッセージを保持)**

\+ **\[Memory Name (メモリ名)\]**​ で定義された会話で記憶するメッセージの最大数。 Unresolved include directive in modules/ROOT/pages/configuring-chat-operations.adoc - include::connectors::partial$einstein-ai-chat-config-properties-partial.adoc\[\]

この操作の XML 設定を次に示します。

```xml
<ms-einstein-ai:chat-answer-prompt-with-memory
  doc:name="Chat answer prompt with memory"
  doc:id="a1d7d0e0-a568-4824-9849-6f1ff03d6dee"
  config-ref="Einstein_AI"
  prompt="#[payload.prompt]"
  memoryPath="#[payload.memoryPath]"
  memoryName="#[payload.memoryName]"
  keepLastMessages="#[payload.lastMessages]"
/>
```

## [](#関連情報)関連情報

- [Using Anypoint Code Builder to Configure a Connector](https://docs.mulesoft.com/connectors/introduction/intro-config-use-acb)
- [Einstein AI Connector の概要](https://docs.mulesoft.com/jp/einstein-ai-connector/1.0/)
- [Einstein AI Connector リファレンス](https://docs.mulesoft.com/jp/einstein-ai-connector/1.0/einstein-ai-connector-reference)
- [MuleSoft ヘルプセンター](https://help.mulesoft.com)