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.

posta 2 anni fa368 visualizzazioni
1 Risposta
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
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande