Actions

表示项目中定义的 Action 列表。

YAML 表示法
custom: 
  string: object (CustomAction)
字段
custom

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

从 intent 映射到自定义 Action,以便为项目配置调用。调用 intent 可以是“custom/intents/”软件包中定义的系统 intent,或自定义 intent。此处定义的所有 intent(系统 intent 和自定义 intent)都必须在“custom/global/”软件包中有对应的 intent 文件。

包含一系列 "key": value 对的对象。示例:{ "name": "wrench", "mass": "1.3kg", "count": "3" }

CustomAction

有关自定义操作的详细信息。

YAML 表示法
engagement: 
  object (Engagement)
字段
engagement

object (Engagement)

与操作相关的互动机制,用于帮助最终用户订阅推送通知和每日更新。请注意,每日更新/推送通知槽配置中指定的 intent 名称需要与此操作对应的 intent 匹配,这样最终用户才能订阅这些更新。

互动

定义与此操作相关联的互动机制。这样,最终用户就可以订阅推送通知和每日更新。

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

定义此互动支持的每日更新设置。