Configure GoogleActions specific phrases


#1

Hey I’m currently facing the problem of wanting to add an intent only for google assistant/actions

therefor i edited the lang-model in ./models (global, not under plattforms) the following:

"dialogflow": {
	"intents": [
		{
			"name": "Default Fallback Intent",
			"auto": true,
			"webhookUsed": true,
			"fallbackIntent": true
		},
		{
			"name": "Default Welcome Intent",
			"auto": true,
			"webhookUsed": true,
			"events": [
				{
					"name": "WELCOME"
				}
			]
		},
		{
			"name": "Help Intent",
			"auto": true,
			"webhookUsed": true,
			"phrases":[
    	"hilfe",
				"regeln",
				"spielregeln"
			]
		}
	]
},

this gives me a new intent however it doesnt have any phrases trained. So how to i have to configure them? Didn’t found anything more than https://www.jovo.tech/docs/model however the stucture for the phrases seemed diffrent


#2

Ah yes, looking that up.

As a side note: You could also add a HelpIntent for both Alexa and Dialogflow, that is referencing AMAZON.HelpIntent for Alexa:

{
	"name": "HelpIntent",
	"alexa": {
		"name": "AMAZON.HelpIntent"
	},
	"phrases": [
		"hilfe",
		"regeln",
		"spielregeln"
	]
}

We collected a few ideas like this here:


#3

Thanks for the answer. I solved it by just doing exactly the same (apart from the alexa property) :smiley:

Just one question: Does your solution

“alexa”: {
“name”: “AMAZON.HelpIntent”
},

create the AMAZON.HelpIntent for the Alexa Language Model when building (and in the Skill when deploying)? Would be good to know for the future


#4

Yes!

You would still have to do the intent mapping yourself in the config.js though: 'AMAZON.HelpIntent': 'HelpIntent'