Amazon Lex "slots" for alphanumeric values

Viewed 1669

I have simple ask, how do I create a Amazon Lex slot for Alphanumeric values.

So far I have tried -

  • AMAZON.Number: only takes decimal numbers
  • AMAZON.PostalAdress: takes everything except numbers
  • Custom Slot with no values: Only numbers

Is there any way to create a slot which takes alphanumeric values?

Thanks

2 Answers

There is no particular datatype to take alphanumberic values.

AMAZON.NUMBER: accepts only numbers

AMAZON.US_FIRST_NAME: accepts only letters

As part of creating a chatbot in Amazon Lex, I have used AMAZON.Movie to accept both letters and numbers(alphanumberic values) it worked for me. As movie name can have alphanumberic values (Ex: The Incredibles2). I hope it works for you too.

Related