[英]How to show my “app action” in google assistant, after user requesting by voice like “Ok Google, make me online”?
Am working on a android project, where user wants to change his status online/offline through voice command. 我正在开发一个Android项目,用户希望通过语音命令在线/离线更改其状态。 Whenever user says "Ok Google, make me online"
每当用户说“ Ok Google,让我在线”
1.My action should be routed to my application context from google assistant, there I can change user status online/offline, is it possible?. 1.我的操作应从Google助手路由到我的应用程序上下文,在那里我可以在线/离线更改用户状态,这可能吗?
If not possible, can I do like this. 如果不可能,我可以这样做吗?
2.Whenever user says "Ok Google, make me online" can google assistant show button with my application icon like this,(but that should be specific for my app) 2.只要用户说“ Ok Google,让我在线”,Google助手就会显示带有我的应用程序图标的按钮,如下所示(但该按钮应特定于我的应用程序)
If above is possible, from the google assistant, I can click on the button and route user to my app, there I can do my task. 如果可以,请在Google助手中单击该按钮,然后将用户路由到我的应用,然后在其中执行任务。
can you tell me how can I achieve this? 你能告诉我如何实现吗?
It seems you would want to achieve the described usecase using App Actions It not currently available for developer preview, but it will come soon. 似乎您想使用App Actions实现所描述的用例。它目前尚不能用于开发人员预览,但很快就会出现。
You may also want to see this Google IO 2018 Talk HERE describing the same flow you want to achieve. 您可能还希望在此处看到此Google IO 2018 Talk,其中描述了您想要实现的相同流程。
Hope it helps. 希望能帮助到你。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.