我一直在尝试 aws lex 上的 lambda codehook,这就是我将返回的响应的样子
response = {
"dialogAction" : {
"type": "ElicitSlot",
"message": {
"contentType": "PlainText",
"content": "Please make enter value of slot1 first before proceeding."
},
"intentName": "AWSLexIntentName",
"slots": {
"slot1" : null,
"slot2" : null,
"slot3" : null,
"slot4" : null,
"slot5" : null
},
"slotToElicit" : "slot1"
}
}
我已经尝试使用 lambda 测试事件对其进行测试,但是在 Lex 上尝试时,我不断收到错误消息
An error has occurred: Invalid Lambda Response: Received invalid response from Lambda: Can not construct instance of IntentResponse, problem: The validated object is null at [Source: {}; line: 1, column: 2]
我还是亚马逊网络服务的新手,在编程方面没有太多的知识,但我无法追溯这个错误,因为在我的任何代码或亚马逊中都找不到“源”键文档。也感谢您花时间阅读本文。