AMAZON.LastName not able to recognise last name given in Prompt in AWS LEX V2

0

I am using Prompt with built in slot type AMAZON.LastName to get last name , but given last names is not recognised by in AWS Lex v2, and it keep asking to enter it.How to handle this?

E.g.: "Khamooshi"

Apart from this, I am unable to find a type like AMAZON.STRING that takes any string without any validation.

demandé il y a 2 ans369 vues
1 réponse
0

If you already have a list of last names that you expect, you can create a custom slot type then use "Expand values (default)" in the custom slot to add all of the last names you expect. This will be used as a training data for the custom slot type.

As for the built-in slot type, there is no AMAZON.STRING slot type but you can use AMAZON.AlphaNumeric and specify regular expression to limit the field to only strings

AWS
Will_B
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions