简体   繁体   中英

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. Whenever user says "Ok Google, make me online"

1.My action should be routed to my application context from google assistant, there I can change user status online/offline, is it possible?.

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)

在此处输入图片说明

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.

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.

You may also want to see this Google IO 2018 Talk HERE describing the same flow you want to achieve.

Hope it helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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