How to call LAUNCH for Google actions.intent.PLAY_GAME


#1

There is a built-in event for actions.intent.PLAY_GAME which should allow you to say “Hey Google, play APP”

How do I set that up and add it to the models.json file?


#2

Good point. Do you have the JSON for such a request?


#3

https://developers.google.com/assistant/conversational/df-asdk/discovery/built-in-intents

Probably you just need to set Dialogflow intent with event object.


#4

@Mistic92 I used this in my model.json:
{
“name”: “PLAY_GAME-Intent”,
“auto”: true,
“webhookUsed”: true,
“events”: [
{
“name”:“actions_intent_PLAY_GAME”
}
]
},

and mapped this intent to the launch intent for the moment in the config.js:
intentMap: {
// …
‘PLAY_GAME-Intent’: ‘LAUNCH’,
// …
},