Actions

代表專案中定義的動作清單。

YAML 表示法
custom: 
  string: object (CustomAction)
欄位
custom

map (key: string, value: object (CustomAction))

將意圖對應至自訂動作,為專案設定叫用。叫用意圖可以是「custom/intents/」套件中定義的系統或自訂意圖。在這裡定義的意圖 (系統意圖和自訂意圖) 在「custom/global/」套件中都必須有對應的意圖檔案。

這個物件中包含 "key": value 組合的清單,例如:{ "name": "wrench", "mass": "1.3kg", "count": "3" }.

CustomAction

自訂動作的詳細資料。

YAML 表示法
engagement: 
  object (Engagement)
欄位
engagement

object (Engagement)

與動作相關的參與機制,可協助使用者訂閱推播通知和每日更新。請注意,每日更新/推播通知版位設定中指定的意圖名稱必須與動作相對應的意圖相符,使用者才能訂閱這些更新內容。

參與度

定義與這項動作相關聯的參與機制。如此一來,使用者就能訂閱推播通知和每日更新。

YAML 表示法
title: string
pushNotification: 
  object (PushNotification)
actionLink: 
  object (ActionLink)
assistantLink: 
  object (AssistantLink)
dailyUpdate: 
  object (DailyUpdate)
欄位
title

string

向使用者顯示的參與名稱,用於要求他們允許接收更新。傳送給使用者的每日更新提示訊息看起來會像是「你想要我傳送每日「{title}」的時間,而推播通知看起來會像這樣:「我可以傳送「{title}」的推播通知嗎?這個欄位可以本地化。

pushNotification

object (PushNotification)

此參與作業支援的推播通知設定。

dailyUpdate

object (DailyUpdate)

此參與資料支援的每日更新設定。

PushNotification

定義這項參與作業支援的推播通知設定。

DailyUpdate

定義這項參與度支援的每日更新設定。