question

Garman avatar image
Garman asked

Help with "Error: There was an unknown failure building the intent schema"

I am having problems saving my app. below is my intents file and my utterances file, for the life of me I cannot find an error. { "intents": [{ "intent": "Dim", "slots": [{ "name": "Device", "type": "LITERAL" }, { "name": "Level", "type": "NUMBER" }] }, { "intent": "TurnOff", "slots": { "name": "Device", "type": "LITERAL" } }, { "intent": "TurnOn", "slots": { "name": "Device", "type": "LITERAL" } }, { "intent": "SendCommand", "slots": { "name": "CommandText", "type": "LITERAL" } }, { "intent": "Check", "slots": { "name": "Where", "type": "LITERAL" } }, { "intent": "GetTemperature", "slots": { "name": "Where", "type": "LITERAL" } }, { "intent": "SetComfortMode", "slots": { "name": "Where", "type": "LITERAL" } }, { "intent": "SetEconMode", "slots": { "name": "Where", "type": "LITERAL" } }, { "intent": "SetTemperature", "slots": [{ "name": "Where", "type": "LITERAL" }, { "name": "Temperature", "type": "NUMBER" }] }] } and utterances: TurnOn {porch light|Device} TurnOn the {porch light|Device} TurnOff {porch light|Device} TurnOff the {porch light|Device} TurnOn {porch light|Device} TurnOn the {porch|Device} TurnOff {porch|Device} TurnOff the {porch|Device} TurnOn {landscape lights|Device} TurnOff {landscape lights|Device} TurnOn the {landscape lights|Device} TurnOff the {landscape lights|Device} TurnOn {landscape light|Device} TurnOff {landscape light|Device} TurnOn the {landscape light|Device} TurnOff the {landscape light|Device} TurnOn {landscape|Device} TurnOff {landscape|Device} TurnOn the {driveway|Device} TurnOff the {driveway|Device} TurnOn {driveway lights|Device} TurnOff {driveway lights|Device} TurnOn the {driveway lights|Device} TurnOff the {driveway lights|Device} TurnOn {driveway light|Device} TurnOff {driveway light|Device} TurnOn the {driveway light|Device} TurnOff the {driveway light|Device} TurnOn {driveway|Device} TurnOff {driveway|Device} TurnOn the {driveway|Device} TurnOff the {driveway|Device} TurnOn {butler's pantry lights|Device} TurnOff {butler's pantry lights|Device} TurnOn the {butler's pantry lights|Device} TurnOff the {butler's pantry lights|Device} TurnOn {butler's pantry light|Device} TurnOff {butler's pantry light|Device} TurnOn the {butler's pantry light|Device} TurnOff the {butler's pantry light|Device} TurnOn {butler's pantry|Device} TurnOff {butler's pantry|Device} TurnOn the {butler's pantry|Device} TurnOff the {butler's pantry|Device} Check {Bathroom|Where} sensor Check {Utility room|Where} sensor Check {both|Where} sensors GetTemperature {Upstairs|Where} GetTemperature what is the temperature {Upstairs|Where} GetTemperature what is the temperature {Downstairs|Where} GetTemperature what is the temperature like {Upstairs|Where} GetTemperature what is the temperature like {Downstairs|Where} GetTemperature is it hot {Upstairs|Where} GetTemperature is it hot {Downstairs|Where} GetTemperature is it cold {Upstairs|Where} GetTemperature is it cold {Downstairs|Where} GetTemperature tell me the temperature {Upstairs|Where} GetTemperature tell me the temperature {Downstairs|Where} SetComfortMode {Upstairs|Where} SetEconMode {Upstairs|Where} SetTemperature {Upstairs|Where} to {eighty|Temperature} degrees SetTemperature {Downstairs|Where} to {eighty|Temperature} degrees SetTemperature {Upstairs|Where} to {seventy five|Temperature} degrees SetTemperature {Downstairs|Where} to {seventy five|Temperature} degrees SetTemperature {Upstairs|Where} to {eighty two|Temperature} degrees SetTemperature {Downstairs|Where} to {eighty two|Temperature} degrees SendCommand tell rosie to {set comfort mode upstairs|CommandText} SendCommand tell rosie to {set econ mode upstairs|CommandText} SendCommand tell rosie to {set comfort mode downstairs|CommandText} SendCommand tell rosie to {set econ mode downstairs|CommandText} SendCommand tell rosie to {turn on the porch light|CommandText} SendCommand tell rosie to {turn off the porch light|CommandText} SendCommand tell rosie to {turn on the butler's pantry light|CommandText} SendCommand tell rosie to {turn off the butler's pantry light|CommandText} SendCommand tell rosie to {turn on the landscape light|CommandText} SendCommand tell rosie to {turn off the landscape light|CommandText} SendCommand tell rosie to {turn on the landscape lights|CommandText} SendCommand tell rosie to {turn off the landscape lights|CommandText} SendCommand tell rosie to {turn on the driveway lights|CommandText} SendCommand tell rosie to {turn off the driveway lights|CommandText}
alexa skills kitvoice-user interface
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Greg Crawford avatar image
Greg Crawford answered
I think you need the square brackets '[' ']' for all of your slots definitions.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jjaquinta avatar image
jjaquinta answered
Yep, my simulator caught it as a JSON error, but the error message wasn't helpful. I've updated the error messages so that you could use the simulator to catch problems like this. I'll re-post it later today. Here's an edit to your JSON file that works in the simulator: { "intents":[ { "intent":"Dim", "slots":[ { "name":"Device", "type":"LITERAL" }, { "name":"Level", "type":"NUMBER" } ] }, { "intent":"TurnOff", "slots":[{ "name":"Device", "type":"LITERAL" }] }, { "intent":"TurnOn", "slots":[{ "name":"Device", "type":"LITERAL" }] }, { "intent":"SendCommand", "slots":[{ "name":"CommandText", "type":"LITERAL" }] }, { "intent":"Check", "slots":[{ "name":"Where", "type":"LITERAL" }] }, { "intent":"GetTemperature", "slots":[{ "name":"Where", "type":"LITERAL" }] }, { "intent":"SetComfortMode", "slots":[{ "name":"Where", "type":"LITERAL" }] }, { "intent":"SetEconMode", "slots":[{ "name":"Where", "type":"LITERAL" }] }, { "intent":"SetTemperature", "slots":[ { "name":"Where", "type":"LITERAL" }, { "name":"Temperature", "type":"NUMBER" } ] } ] }
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.