我正在尝试将嵌套对象保留在sessionAttributes
. 但是,Amazon Lex 似乎无法识别我是否发送了这样的结构作为响应:
{
"sessionAttributes": {
"previousIntent": "TCAIntent",
"prevSlots": {
"test": 1
}
},
"dialogAction": {
"type": "Delegate",
"slots": {
"firstName": null,
"lastName": null,
"rate": null,
"rentMortgage": null,
"downPayment": null,
"purchasePrice": null,
"email": null
}
}
}
当我{"test": 1}
用一个值替换时,它工作正常。有没有办法解决这个或可能的错误?
错误: