会話の概要にカスタム コンテキストを表示する

Important

Power Virtual Agents 機能は、生成 AI への多大な投資と Microsoft Copilot 全体の統合の強化により、現在 Microsoft Copilot Studio の一部となっています

ドキュメントやトレーニング コンテンツが更新される際、一部の記事やスクリーンショットで Power Virtual Agents に言及することがあります。

コンテキスト変数のデータ型はJSONオブジェクトで、 isDisplayableValueの2つのプロパティがあります。

JSONオブジェクトは以下のスキーマを持っています。

{
            "type": "object",
             "properties": {
                    "isDisplayable": {
                        " description": " Context variable should display in agent UI or not",
                        "type": "boolean"
                    },
                    "Value": {
                         " description": " Context variable value pass through bot , this can be string Boolean or number",
                        "type": "string or Boolean or Number"
                    }
                },
                "required": [ "isDisplayable", "Value" ]            
        }

isDisplayableの入力値は以下の通りです:

  • ブール値 (true または false)

Valueの入力値は次のようになります:

  • Boolean
  • ストリング
  • 数値

Copilot Studio と Azure ボットの会話の会話の概要コントロールにコンテキスト変数を表示するには、isDisplayable メソッドの本文で プロパティを使用します。

例: {\"isDisplayable\":\"true\"," +"\"Value\":\"context variable value as string\"}

isDisplayableの入力値はブール値(真または偽)です。 Valueの入力値は文字列、ブール値、または数値のいずれかです。

コンテキスト変数を表示するために.../use/oc-customer-summary.md#view-conversation-summary Microsoft Copilot StudioまたはAzureボットを使用する会話には、reference/methods/setContextProvider.mdメソッドの本文に isDisplayable プロパティを含めてください。

以下の例は文字列コンテキスト変数を示しています:

{ "isDisplayable": true, "Value": "コンテキスト変数値" }

isDisplayableがtrueに設定されていると、コンテキスト変数は会話要約コントロールの3番目のタブに表示されます。 Valueプロパティには、ユーザーの応答やその他の情報が文字列、ブール、または数字の形式で表示されます。

カスタムコンテキスト変数を表示する会話要約コントロール。

カスタム コンテキストを送信する
setContextProvider