alexa-app icon indicating copy to clipboard operation
alexa-app copied to clipboard

Can we have a wildcard intent handler?

Open OpenDog opened this issue 7 years ago • 3 comments

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..

OpenDog avatar Jul 16 '17 23:07 OpenDog

Not planned or worked on. Please do. It's not really possible with Alexa AFAIK.

dblock avatar Jul 17 '17 18:07 dblock

I'm interested on this too.

cesarvarela avatar Aug 19 '17 05:08 cesarvarela

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.

lazerwalker avatar Aug 19 '17 05:08 lazerwalker