如何使用Google Assistant触发我的申请 [英] How do I use Google assistant to trigger my application

查看:208
本文介绍了如何使用Google Assistant触发我的申请的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试构建一个可由Google助手触发的简单应用. 就像用户说嘿Google,打开TestApp"或嘿Google,从TestApp执行xyz"一样. 最好的方法是什么?对话流?

I am trying to build a simple app which can be triggered by google assistant. Like if the users say, "Hey Google, Open TestApp" or "Hey Google, perform xyz from TestApp". What would be the best approach? Dialogflow?

推荐答案

说好吧,Google-对[您的应用]进行[某些操作]"以打开您的应用来执行查询,这称为"Google语音操作",您可以轻松地将它们添加到您的应用中.有关完整的详细信息,请参见文档此处.请记住-为使这些功能正常工作,您的应用程序确实需要在Play商店中,并且至少要以beta版本上传.

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. 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.

Google助手有点不同-它更具对话性,不会直接将用户带到您的应用中.取而代之的是,它需要用户输入,寻找合适的应用程序来处理查询,将查询提供给您的应用程序,然后在Google Assistant自身中返回响应.这就是在不实际打开您的应用程序的情况下,通过Google助手与应用程序进行对话的全部过程.

The Google Assistant is a little bit different - it's more conversational and doesn't take the user directly to your app. 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. This is all about having a conversation with an app, from the Google Assistant, without actually opening up your app.

这篇关于如何使用Google Assistant触发我的申请的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆