amazon-lex

AWS Amplify MissingRequiredParameter userId error

自古美人都是妖i 提交于 2020-12-10 20:44:33
问题 I'm following the guide for starting with Interactions. When I call the send method on Interactions, I get the following error: (node:27796) UnhandledPromiseRejectionWarning: MissingRequiredParameter: Missing required key 'userId' in params It looks like Interactions is expecting a userId param, which in @aws-amplify/interactions/lib/Providers/AWSLexProvider.js , is supposed to be pulled from credentials.identityId . However, when I log credentials , it is type SharedIniFileCredentials ,

provide slot value for specific slot in response and resume the conversation

a 夏天 提交于 2020-11-30 00:06:52
问题 I am working on lex and want to give slot value in the response which will only be asked if the user enters specific input in the previous slot value. I am trying something but I don't I am doing right or not. i have following slots in lex. Departure_city Arrival_city Departing (oneway or roundtrip) ReturnDate Date (DepartureDate) Flight Schedule e.g. if user select Roundtrip then ask for the return date otherwise skip that slot and continue the flow by asking value of the remaining of slots

provide slot value for specific slot in response and resume the conversation

喜夏-厌秋 提交于 2020-11-30 00:01:57
问题 I am working on lex and want to give slot value in the response which will only be asked if the user enters specific input in the previous slot value. I am trying something but I don't I am doing right or not. i have following slots in lex. Departure_city Arrival_city Departing (oneway or roundtrip) ReturnDate Date (DepartureDate) Flight Schedule e.g. if user select Roundtrip then ask for the return date otherwise skip that slot and continue the flow by asking value of the remaining of slots

provide slot value for specific slot in response and resume the conversation

*爱你&永不变心* 提交于 2020-11-30 00:01:31
问题 I am working on lex and want to give slot value in the response which will only be asked if the user enters specific input in the previous slot value. I am trying something but I don't I am doing right or not. i have following slots in lex. Departure_city Arrival_city Departing (oneway or roundtrip) ReturnDate Date (DepartureDate) Flight Schedule e.g. if user select Roundtrip then ask for the return date otherwise skip that slot and continue the flow by asking value of the remaining of slots

AWS Lex - Default slot type has no limits

◇◆丶佛笑我妖孽 提交于 2020-11-29 09:27:25
问题 In AWS Lex, I am using the default AMAZON.Country as a slot type. However, when I interact with the test bot, I can enter any value (for instance "I don't know") and the JSON when I inspect the response says that the value for 'country' is "I don't know". The purpose of a slot type, is that it limits the answers to existing country names. Not some random sentences. Any idea why I don't get the expected behaviour? 回答1: "The purpose of a slot type, is that it limits the answers...." That is not

AWS Lex - Default slot type has no limits

烈酒焚心 提交于 2020-11-29 09:25:26
问题 In AWS Lex, I am using the default AMAZON.Country as a slot type. However, when I interact with the test bot, I can enter any value (for instance "I don't know") and the JSON when I inspect the response says that the value for 'country' is "I don't know". The purpose of a slot type, is that it limits the answers to existing country names. Not some random sentences. Any idea why I don't get the expected behaviour? 回答1: "The purpose of a slot type, is that it limits the answers...." That is not

AWS Lex - Default slot type has no limits

时光怂恿深爱的人放手 提交于 2020-11-29 09:25:14
问题 In AWS Lex, I am using the default AMAZON.Country as a slot type. However, when I interact with the test bot, I can enter any value (for instance "I don't know") and the JSON when I inspect the response says that the value for 'country' is "I don't know". The purpose of a slot type, is that it limits the answers to existing country names. Not some random sentences. Any idea why I don't get the expected behaviour? 回答1: "The purpose of a slot type, is that it limits the answers...." That is not