[英]How do I use Google assistant to trigger my application
I am trying to build a simple app which can be triggered by google assistant. 我正在尝试构建一个可以由Google Assistant触发的简单应用。 Like if the users say, "Hey Google, Open TestApp" or "Hey Google, perform xyz from TestApp".
就像用户说“嘿Google,打开TestApp”或“嘿Google,从TestApp执行xyz”一样。 What would be the best approach?
最好的方法是什么? Dialogflow?
Dialogflow?
Saying "Okay, Google - do [something] with [your app]" in order to open your app to fulfill a query is called a Google Voice Action and you can add these to your app quite easily. 说“好吧,Google-使用[您的应用]进行某些操作”以打开您的应用来执行查询,这称为Google语音操作,您可以轻松地将它们添加到您的应用中。 See the documentation here for full details.
有关完整的详细信息,请参见此处的文档。 Keep in mind - for these to work, your app does need to be in the Play Store, uploaded as a beta at the very least.
请记住-为使这些功能正常工作,您的应用程序确实需要在Play商店中,至少要以Beta版本上传。
The Google Assistant is a little bit different - it's more conversational and doesn't take the user directly to your app. Google助理有点不同-它更具对话性,不会直接将用户带到您的应用程序。 Instead, it takes the user's input, looks for the appropriate app to handle the query, feeds the query to your app, and then returns the response, within Google Assistant itself.
相反,它需要用户输入,寻找合适的应用程序来处理查询,将查询输入到您的应用程序中,然后在Google Assistant自身中返回响应。 This is all about having a conversation with an app, from the Google Assistant, without actually opening up your app.
这就是在不实际打开应用程序的情况下通过Google Assistant与应用程序进行对话的全部过程。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.