无论何时调用Lambda函数,我都希望将下面的JSON(特别是Slot值“ Rose”)打印/返回到API端点UR1(使用API网关)。您能帮我给我Nodejs或python中的lambda函数代码吗?
{
"dialogState": "Fulfilled",
"intentName": "Shopping",
"message": "What xxxxxxxxxx xxxxxx",
"messageFormat": "PlainText",
"responseCard": null,
"sessionAttributes": {},
"slotToElicit": null,
"slots": {
"Product": "Rose"
}
}