I am building a cricket stats alexa skill which requires the playerName to filter out information. I cannot use AMAZON.US_FIRST_NAME because of the following reasons:
- It only detects the first name and not the whole name
- There are
playerNamefrom around the globe, soAMAZON.US_FIRST_NAMEisn't a good fit.
Even if I want to use AMAZON.LITERAL (which is not recommended by Amazon) I need to have slot values. But the slot values can be any player names, so the sample utterances will be huge.
One way to do this is to hard-code all playerName with slot values. But is it a best practice to do this since the slot values can be quite big in number?
Is there any workaround for this?
Use Custom slot https://developer.amazon.com/docs/custom-skills/custom-interaction-model-reference.html#custom-slot-type-values , currently you can have 50,000 custom slot values ( which i feel are sufficient for player names ). e.g.
Intent Schema
Custom_Slot_Value Type PLAYERS
Sachin,
Saurabh, ....