简体   繁体   中英

Google assistant notification

请向我介绍一些Google助手通知的现成示例,我是一个技术人员,我已经开发了具有dialogflow的应用程序(尚不支持通知),我同时拥有google home和移动助手,只想查看实际的google action通知。

There's this very detailed guide by Google with ready made code that you can easily adapt to your needs.

It offers code for Dialogflow as well as for the plain ActionsSDK.

Basically the steps are:

  • Ask for permission
  • React to it in your fulfillment code (confirming the user's decision)
  • Notifying Google's backend when it should send a notification to the user (you need a JSON web token). This last step has to be done on some backend which knows about when to send notifications

Those steps are outlined in more detail on the linked site and there's also described how to obtain the token.

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