Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Investigate play by number #41

Closed
tamarahills opened this issue May 23, 2018 · 1 comment
Closed

Investigate play by number #41

tamarahills opened this issue May 23, 2018 · 1 comment
Assignees

Comments

@tamarahills
Copy link
Contributor

Right now we support
"Play the one about"
"Play the article about"
And this maps to a Amazon.SearchQuery parameter.

See if we can support (in addition)
"Play the first article"
"Play article one"
"play one"

This may not work perfectly so we need to see what we can support.

@BScong
Copy link
Contributor

BScong commented May 25, 2018

So I think one way to do it is to create a Custom Slot Type with an enumeration detecting words like "first, second, number one, number two, one, two..." and linking them to ints (1, 2, ...) then set up samples as

  • "play the {ordinal} article"

  • "play the {ordinal}"

  • "play the article {ordinal}"

We would just have to check the slot type in the intent then fetch the int value and play the right article. If it is not in the enum then the classic AMAZON.SearchQuery will catch it.

What do you think? @tamarahills

Docs : https://developer.amazon.com/docs/custom-skills/create-and-edit-custom-slot-types.html

@BScong BScong self-assigned this May 25, 2018
@BScong BScong closed this as completed in #94 Aug 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants