会話型アクションのサポートは 2023 年 6 月 13 日に終了しました。詳細については、
会話型アクションの廃止をご覧ください。
IntentEvent
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
インテントが一致したときにトリガーされるイベントを登録します。
YAML 表現 |
intent: string
transitionToScene: string
handler:
object (EventHandler ) |
フィールド |
intent |
string
必須。イベントをトリガーするインテント。
|
transitionToScene |
string
省略可。会話の移動先のシーン。現在のシーンの状態は、遷移時に破棄されます。
|
handler |
object (EventHandler )
省略可。インテントが一致したときにトリガーされるイベント ハンドラ。デスティネーション シーンに移行する前に実行する必要があります。イベントに応答してプロンプトを生成するのに便利です。
|
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 UTC。"],[[["\u003cp\u003eThe YAML representation is used to register events that are triggered when an intent is matched.\u003c/p\u003e\n"],["\u003cp\u003eIt includes fields like \u003ccode\u003eintent\u003c/code\u003e (required) for the triggering intent, \u003ccode\u003etransitionToScene\u003c/code\u003e (optional) for scene transition, and \u003ccode\u003ehandler\u003c/code\u003e (optional) for event handling before scene transition.\u003c/p\u003e\n"],["\u003cp\u003eEvent handlers can be used to execute actions, such as generating prompts, in response to the triggered intent.\u003c/p\u003e\n"]]],[],null,["# IntentEvent\n\n- [YAML representation](#SCHEMA_REPRESENTATION)\n\nRegisters Events which trigger as the result of an intent match.\n\n| YAML representation ||\n|-----------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` intent: string transitionToScene: string handler: object (/assistant/actionssdk/reference/rest/Shared.Types/EventHandler) ``` |\n\n| Fields ||\n|---------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `intent` | `string` Required. Intent triggering the event. |\n| `transitionToScene` | `string` Optional. Destination scene which the conversation should jump to. The state of the current scene is destroyed on the transition. |\n| `handler` | `object (`[EventHandler](/assistant/actionssdk/reference/rest/Shared.Types/EventHandler)`)` Optional. Event handler which is triggered when the intent is matched. Should execute before transitioning to the destination scene. Useful to generate prompts in response to events. |"]]