對話動作已於 2023 年 6 月 13 日淘汰。詳情請參閱「
對話動作已淘汰」。
GlobalIntentEvent
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
定義全域意圖處理常式。全域意圖事件的範圍涵蓋整個 Actions 專案,可能會遭到情境中的意圖處理常式覆寫。動作專案中的意圖名稱不得重複。
全域意圖可在工作階段期間隨時進行比對,讓使用者存取「取得說明」或「返回首頁」等常用流程。可用於在叫用動作時,將使用者深層連結至特定流程。
請注意,意圖名稱會在檔案名稱內指定。
YAML 表示法 |
transitionToScene: string
handler:
object (EventHandler ) |
欄位 |
transitionToScene |
string
選用設定。對話應跳至的目的地。目前的場景狀態會在轉場時刪除。
|
handler |
object (EventHandler )
選用設定。相符意圖時觸發的事件處理常式。應在轉換至目的地環境之前執行。用於產生提示以回應事件。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-05-16 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]