【发布时间】:2021-06-14 10:23:20
【问题描述】:
我想使用自定义词从谷歌助理打开我安装的应用程序。
说“OK Google,打开 MYAPP” -> 我们不需要代表您执行任何操作。Google 助理会打开该应用。
说“OK Google, Some word (Hey MyAppName) -> 现在我想打开我安装的应用程序。可以使用 App Action / dialogflow 吗?
我尝试了下面的代码,但不适合我
<action intentName="custom.actions.intent.HEY_PRINTER" queryPatterns="@arrays/ExampleQueries1">
<!-- Define parameters -->
<!-- Define fulfillment -->
<fulfillment
fulfillmentMode="actions.fulfillment.DEEPLINK"
urlTemplate="https://fit-actions.firebaseapp.com/stats" />
</action>
<string-array name="ExampleQueries">
<item>Hey printer</item>
</string-array>
预期: 说“OK Google,Hey Printer -> 我想触发“custom.actions.intent.HEY_PRINTER”,这样我的应用就会打开。
谁能推荐这个
【问题讨论】:
-
您的字符串数组名为“ExampleQueries”,但您的 actions.xml 引用了不同的名称“ExampleQueries1”。
-
你能做到吗,我也在为这样的解决方案而苦苦挣扎,如果你能做到,请发布你的完整解决方案
-
@ZubairAkber 我们无法使用自定义词启动应用
标签: android deep-linking google-assistant-sdk app-actions google-assistant