Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update intent and slot name validation #45

Open
Glogo opened this issue Dec 20, 2016 · 0 comments
Open

Update intent and slot name validation #45

Glogo opened this issue Dec 20, 2016 · 0 comments

Comments

@Glogo
Copy link
Contributor

Glogo commented Dec 20, 2016

The new built-in intent library brings some additions to intent and slot names.

See: https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/built-in-intent-ref/built-in-intent-library

For instance, this is valid intent name: AMAZON.SearchAction<object@WeatherForecast[temperature]> (one of many)
And this is valid slot name: object.location.addressLocality.name

TODO intents:

  • extend the intent name validation to support all old built-in intents like AMAZON.YesIntent, ... and all others
  • extend the intent name validation to support new built-in intents library (see docs) - it will be probably necessary to list all of them in some json - but hopefully there is better solution. For sure AMAZON.MyMadeUpIntent is not supported - and yields error when adding to intent schema in developer portal so some kind of mapping is probably required
  • deprecate app.builtInIntent() - will be removed from 3.0.0 and show warning message on use
  • document and mention also in warning that an alternative to f.e. app.builtInIntent('yes', ...) is `app.intent('AMAZON.YesIntent', ...)
  • Note: it would be much easier to just remove intent name validation completely and just rely on the developer portal validation - needs discussion

TODO slots:

  • enable the use of f.e.: slots.object.location.addressLocality.name when slot name is (string) object.location.addressLocality.name
  • research possible forms of slot names and fix how they are accessed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant