Build for googleAction fails

dialogflow
google-assistant

#1

Hey guys,

I have a problem when I try to build the files for googleAction.

It always stops at “Validate Model-Files” and says "Data does not match any schemas from “anyOf”.

13

When I build it only for alexaSkill everything works fine.

Any ideas?

Thanks in advance!


#2

hey! mind pasting your language model here? this will help us find the cause :slight_smile: thanks!


#3

Hi Jan,

thank for your reply. :slight_smile:
Please find my language model below. I deleted some phrase for a better overview.

Summary
{
"invocation": "shop",
"alexa": {
	"interactionModel": {
		"prompts": [
			{
				"id": "Elicit.Slot.1307158421177.57854095694",
				"variations": [
					{
						"type": "PlainText",
						"value": "Bitte wiederhole deinen Suchbegriff"
					}
				]
			}
		],
		"dialog": {
			"intents": [
				{
					"name": "SearchArticleIntent",
					"confirmationRequired": false,
					"prompts": {},
					"slots": [
						{
							"name": "searchTerm",
							"type": "AMAZON.SearchQuery",
							"elicitationRequired": true,
							"confirmationRequired": false,
							"prompts": {
								"elicitation": "Elicit.Slot.1307158421177.57854095694"
							}
						}
					]
				}
			],
			"delegationStrategy": "ALWAYS"
		},
		"languageModel": {
			"intents": [
				{
					"name": "AMAZON.RepeatIntent",
					"phrases": [
						"wiederholung"
					]
				},
				{
					"name": "AMAZON.HelpIntent",
					"phrases": [
						"hilfe"
					],
					"inputs": []
				},
				{
					"name": "AMAZON.CancelIntent",
					"samples": []
				},
				{
					"name": "AMAZON.StopIntent",
					"samples": []
				},
				{
					"name": "AMAZON.NavigateHomeIntent",
					"samples": []
				},
				{
					"name": "AMAZON.FallbackIntent",
					"samples": []
				}
			]
		}
	}
},
"dialogflow": {
	"intents": [
		{
			"name": "Default Fallback Intent",
			"auto": true,
			"webhookUsed": true,
			"fallbackIntent": true
		},
		{
			"name": "Default Welcome Intent",
			"auto": true,
			"webhookUsed": true,
			"events": [
				{
					"name": "WELCOME"
				}
			]
		},
		{
			"id": "d8507c14-5818-4bbd-9d15-69b96cc14b90",
			"name": "SearchArticleIntent",
			"auto": true,
			"contexts": [],
			"responses": [
				{
					"resetContexts": false,
					"affectedContexts": [],
					"parameters": [
						{
							"id": "0423d78d-3e25-4bac-87fb-f9b366cdf208",
							"required": true,
							"dataType": "@sys.any",
							"name": "searchTerm",
							"value": "$searchTerm",
							"prompts": [
								{
									"lang": "de",
									"value": "Bitte wiederhole deinen Suchbegriff"
								},
								{
									"lang": "de",
									"value": "Bitte nenne einen Suchbegriff"
								},
								{
									"lang": "de",
									"value": "Nach was suchst du?"
								}
							],
							"isList": false
						}
					],
					"messages": [],
					"defaultResponsePlatforms": {},
					"speech": []
				}
			],
			"priority": 500000,
			"webhookUsed": true,
			"webhookForSlotFilling": false,
			"fallbackIntent": false,
			"events": []
		}
	]
},
"intents": [
	{
		"name": "DailyDealIntent",
		"phrases": [
			"was gibt es {time} für {deals}"
		],
		"inputs": [
			{
				"name": "deals",
				"type": "deal"
			},
			{
				"name": "time",
				"type": "todayTime"
			}
		]
	},
	{
		"name": "YesIntent",
		"phrases": [
			"jup",
			"yeah",
			"yes",
			"jep",
			"jo",
			"ja"
		],
		"inputs": []
	},
	{
		"name": "NoIntent",
		"phrases": [
			"nop",
			"no",
			"ne",
			"nein"
		],
		"inputs": []
	},
	{
		"name": "OrderIntent",
		"phrases": [
			"Nummer {articleNumber}",
			"Ja Nummer {articleNumber}",
			"{articleNumber}",
			"ich möchte {articleNumber} hinzufügen"
		],
		"inputs": [
			{
				"name": "articleNumber",
				"type": {
					"alexa": "AMAZON.NUMBER",
					"dialogflow": "@sys.number-integer"
				}
			}
		]
	},
	{
		"name": "SearchArticleIntent",
		"phrases": [
			"suche {searchTerm}"
		],
		"inputs": [
			{
				"name": "searchTerm",
				"type": {
					"alexa": "AMAZON.SearchQuery",
					"dialogflow": "@sys.any"
				},
				"alexa": {
					"samples": [
						"{searchTerm}"
					]
				}
			}
		]
	}
],
"inputTypes": [
	{
		"name": "deal",
		"values": [
			{
				"value": "deals"
			}					
		]
	},
	{
		"name": "todayTime",
		"values": [
			{
				"value": "heute"
			}
		]
	}		
]

}