jm18457
jm18457

Reputation: 463

How to add custom naming to Alexa Custom Skill?

I have intent CreateNewDogIntent.

The following is the dialog flow that I would like to implement.

U: Alexa, tell Dog Creator to create a new medium dog named Barky.
U: Alexa, tell Dog Creator to create a new large dog named Barky.

or

U: Alexa, tell Dog Creator to create a new dog.
A: What would you like your dog to be named?
U: Barky

I want the name to be any possible value. Is this possible to implement with Alexa custom skills kit? From what I understand, I would need to create a slot type for name value, but there is no option to create a "catch all" type, with exception of SearchQuery which can only be used without any other slot type.

Upvotes: 1

Views: 42

Answers (1)

MBlaya
MBlaya

Reputation: 36

There is no "catch all" slot type.
I faced a similar problem when implementing some word games, I needed a slot type where every word would be caught.
What I did is to put together a slot type with 20 thousands words.
If the user says one of them, all good.
If the word is not in the slot type but it is considered similar to those in the slot type, it will go to your backend with a flag ER_SUCCESS_NO_MATCH. You might want to keep those to enhance your slop type.
On top of that, the FallbackIntent will allow you to respond gracefully to "uncatchable" words.

Upvotes: 1

Related Questions