[英]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):有效的句子(我的应用程序正在启动并且我收到了正确的意图):
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.