简体   繁体   English

Android Google 助理呼叫操作

[英]Android Google Assistant call action

I'm working on an app that need to handle Call actions from the Google Assistant.我正在开发一个需要处理来自 Google 助理的呼叫操作的应用。

I've managed to implement the Call action (actions.intent.CREATE_CALL) and make it work.我已经设法实现了调用操作 (actions.intent.CREATE_CALL) 并使其工作。

Sentences that are working (My app is starting and I receive the right intent):有效的句子(我的应用程序正在启动并且我收到了正确的意图):

  • "Call {Name} on {App name}" “在 {App name} 上呼叫 {Name}”
  • " Audio Call {Name} on {App name}" “{App name} 上的音频呼叫 {Name}”
  • " Video Call {Name} on {App name}" “{App name} 上的视频通话 {Name}”

But, what I want to achieve is to add a new entity-set to handle different call formats.但是,我想要实现的是添加一个新的实体集来处理不同的调用格式。 For example:例如:

  • " Private Call {Name} on {App name}" “{App name} 上的私人呼叫 {Name}”

     <parameter name="call.callFormat"> <entity-set-reference entitySetId="entityCallFormat"/> </parameter> <entity-set entitySetId="entityCallFormat"> <entity identifier="PRIVATE_FORMAT" name="private"/> </entity-set>

Unfortunately is not working, when I pronounce the sentence " Private Call {Name} on {App name}", the action is handled by the default Contact/Phone app for calling that person.不幸的是,它不起作用,当我在 {App name} 上发出“私人呼叫 {Name}”这句话时,该操作由默认的联系人/电话应用程序处理以呼叫该人。

I'm doing something wrong?我做错了什么? Or what I want to achieve is not possible by using Built-in intents.或者我想通过使用内置意图来实现是不可能的。

Edit: After uninstalling and installing the app (without changes) the initial sentence "Call {Name} on {App name}" is not working anymore, (Only from Actions Tool).编辑:卸载并安装应用程序(无更改)后,初始句子“在{应用程序名称}上调用{名称}”不再有效(仅来自操作工具)。 Also "Open {App name}" not working anymore. “打开{应用名称}”也不再起作用。

The actions.intent.CREATE_CALL built-in intent is currently in beta and only supports invocation via a preview created from the App Actions test tool. actions.intent.CREATE_CALL内置意图目前处于测试阶段,仅支持通过从 App Actions 测试工具创建的预览进行调用。 Until it leaves beta, the built-in intent may behave unreliably when invoked directly from Google Assistant.在它离开测试版之前,当直接从 Google 助理调用时,内置意图可能会表现得不可靠。

Can you please clarify whether you were using Assistant or the test tool, when you attempted to use the inline entity-set ?当您尝试使用内联entity-set时,您能否澄清一下您使用的是 Assistant 还是测试工具?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Android应用程序中的Google Assistant命令触发操作 - Google Assistant command triggering action in Android application 如何从 android 手机谷歌助手控制 Android 应用程序操作 - How to control Android app action from android phone google assistant 当 Android 应用程序不存在时,来自 Google 助手中的操作的 DeepLink 链接? - DeepLink link from Action in Google Assistant when Android app is not present? 如何使用 android 深度链接和谷歌助手的自定义 DialogFlow 操作? - How to use android deeplink with custom DialogFlow action for google assistant? Android - Google 助理未提供 CREATE_CALL BII 的号码 - Android - Google Assistant not providing the number for CREATE_CALL BII Google 助理操作 - 隐式调用体验 - Google Assistant Action - Implicit Invocation Experience 添加Google Assistant自定义操作并对其进行检测 - Add google assistant custom action and detect it 从助手动作到安卓应用的深层链接 - deeplinking from assistant action to android app 如何在Android Things 1.0上使用Google Assistant使用不同的参数调用我的应用 - How to make Google Assistant on Android Things 1.0 call my app with different parameters 如何在 Google Assistant 中直接调用 map? - How to call the map in Google Assistant directly?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM