question

zyfang avatar image
zyfang asked

Where to specify intents? (in en-US.json for example or InteractionModel.json)

I've downloaded some examples from github.com/alexa and I'm trying to insert custom intents without using the GUI - just change the file and push using ASK CLI. The content of models/en-US.json are almost identical to InteractionModel.json though - both specifying intents. Which one should I change or do I have to manually make them identical each time?

Example:

https://github.com/alexa/skill-sample-nodejs-quiz-game/blob/master/models/en-US.json

compared to

https://github.com/alexa/skill-sample-nodejs-quiz-game/blob/master/InteractionModel.json

alexa skills kitintentsask cli
10 |5000

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

KAIYIN@AMAZON.COM avatar image
KAIYIN@AMAZON.COM answered

https://github.com/alexa/skill-sample-nodejs-quiz-game/blob/master/models/en-US.json - is for using in CLI, https://github.com/alexa/skill-sample-nodejs-quiz-game/blob/master/InteractionModel.json is for using it in GUI.

10 |5000

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

bobinrinder avatar image
bobinrinder answered

@KAIYIN@AMAZON.COM

Can you elaborate a little more, please? If I create a new Alexa App, should I maintain both? Can I auto-generate one from the other? Are they pretty much the same besides the fact that the en-US.json has the the one or two more lines with the interactionModel and languageModel?

1 comment
10 |5000

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

KAIYIN@AMAZON.COM avatar image KAIYIN@AMAZON.COM commented ·

It's pretty much the same like what you said. You shouldn't need to maintain both. Just add the extra 3 fields like the example did when you create/update skill in CLI.

0 Likes 0 ·