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.

已提問 2 年前檢視次數 369 次
1 個回答
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
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南