alexa-app
alexa-app copied to clipboard
Can we have a wildcard intent handler?
Can we have a single intent handler as an alternative to the the individual intent handler registrations?
Is this planed or worked on? I can do it if you are interested..
Not planned or worked on. Please do. It's not really possible with Alexa AFAIK.
I'm interested on this too.
I'm afraid this isn't really possible right now — it's a hard limitation of the Alexa Skills Kit API.
If there's a clever workaround as a client, I haven't figured it out (e.g. you can't just generate an inordinately large number of intents/utterances, as you'll pretty quickly hit a complexity inflection point where Amazon can't build your interaction model)
The best way I've found to mitigate not being able to have a wildcard intent is very robust state management, so if you receive an intent you're not expecting you can fallback as gracefully as possible.
Perhaps the most useful and pragmatic contribution here would be adding in support for state management and being able to model your intents in context of a state machine, much like the official Alexa node SDK lets you.