On Monday I attended an Alexa skills workshop in Cambridge to start learning how to write skills. I'm really interested in it and I'm relishing getting to learn a bit of code at the same time. However, my lack of experience with Alexa, and my lack of code knowledge (I've dabbled, but never learned anything in depth - I am researching node.js though to get familiar with it) is causing me to stumble.
In class we were set to making our own skills, and as I want to do a particular thing - act as an info point for a small festival - Andrea suggested I use the minecraft helper example to learn from. This has worked brilliantly for the single intent 'LineUpIntent' wherein I have put a small selection of the acts and a short description of them and for the limited range of utterances and bands the intent works very well.
BTW, for the purposes of saving time in class I left the values and responses file named as recipes.js and just changed the info provided within to match a handful of the bands.
With all this working I decided rather than have a really long file in recipes.js (as this will eventually contain a lot of bands, and area info) I'd prefer to have a location intent, and an audio intent separately. I created the second one 'locationfinderIntent', made a slot 'location', set values of address, directions, postcode, and location.
I created location.js changed some obvious stuff, and then went to index.js and copied the relevant band list/line up code and changed obvious parts of names. This took a while as I kept getting errors so I had to really think logically about aspects that need changing in the new handler etc. and make those changes.
Now, no errors show in the code. It compiles and deploys ok (earlier, with errors, it wouldn't save), but when I try to use the limited utterances I wrote to invoke the locationfinderIntent Alexa both on my echo dot 3 and in the test console revert to the default not found response in the handler (same response as the line up handler as I've not changed error messages yet) -'Sorry, I can't understand the command. Please say again.'.
To my untrained eye it all seems ok, but the second intent doesn't work because I've clearly missed something simple, or made a common error.
As I say, I am not scared of code, but I am unfamiliar with both Alexa and js, and in these first steps I need a little help. I've gotten as far as I can myself trying to debug so I look forward to being told what a simple/stupid error I have made and how to avoid it in the future :)
BTW, I'm Jay, and I'm pleased to be here. I have a lot of ideas for future skills, and this particular skill I later want to add audio clips to etc. I'll be sticking around for quite a while!
I'm not sure which bits of code you'll want so please ask and I shall deliver. I have the files index.js, package.json, recipes.js, location.js, and util.js