简体   繁体   English

如何通过 Button 调用 Google Assistant

[英]How to invoke Google Assistant via Button

all: We want to enable Google Assistant with custom actions via the button, not the voice input (keyword). all:我们希望通过按钮而不是语音输入(关键字)启用具有自定义操作的 Google Assistant。 For example, usually, we enable Google Assistant with word "Hello, Google, show me the weather.".例如,通常,我们使用“Hello, Google, show me the weather.”来启用 Google Assistant。 But within our production, we want to press one specific button, and then it could send the sentence above out to Google Assistant directly.但是在我们的制作中,我们想按下一个特定的按钮,然后它可以将上面的句子直接发送给 Google Assistant。

But we can't find any APIs to support this requirement.但是我们找不到任何 API 来支持这个要求。 And we heard that Google plan to support hard-key method since Samsung make good experiences on S8 Do anyone help us to fix this gap?我们听说谷歌计划支持硬键方法,因为三星在 S8 上取得了良好的体验。有人帮助我们解决这个问题吗?

Thank you!谢谢!

You could use an Action link without any additional parameters specified to trigger the MAIN intent, or specify the custom intent you'd like to trigger.您可以使用不指定任何附加参数的操作链接来触发 MAIN 意图,或指定您想要触发的自定义意图。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM