Reputation: 498
I'm struggling through the official Documentation of how to setup push notifications in Actions on Google. I did find this Github project here.
However I'm still unclear on the exact steps of setting up an intent in dialogflow to acheive this. I am using webhooks for all of my intents currently.
Question #1:
On the official documentation it talks about referencing the event actions_intent_PERMISSION
. However, I have an intent set up for this event already when i ask to get the users location. Do I set up a separate intent to handle the user permission for push notifications, or do I somehow handle both permission grants in a single intent?
Question #2:
How many intents do I need to properly execute this user flow?
What I'm hoping to find is a more concrete example of how to set up a push notification on google actions using dialogflow.
Upvotes: 1
Views: 522
Reputation: 498
Nick Felker had a good link, I'm not sure how I missed this example, but it is a much more clear example of how to build out push notifications in dialogflow with Nodejs fulfillment.
Thank you for the link: https://github.com/actions-on-google/dialogflow-updates-nodejs/blob/master/functions/index.js
Upvotes: 2