{
"sessionState": {
"sessionAttributes": {},
"dialogAction": {
"type": "Close",
"fulfillmentState": "Fulfilled"
}
},
"messages": [
{
"contentType": "PlainText",
"content": "I have flights from to"
}
]
}
this is the response from Lambda function. Lexv2 bot is not accepting this response. It is saying invalid JSON response.
I took the liberty to write it out:
{
"sessionState": {
"sessionAttributes": {},
"dialogAction": {
"type": "Close",
"fulfillmentState": "Fullfilled"
}
},
"messages": [{
"contentType": "PlainText",
"content": "I have flights from to"
}]
}
JSONLint says its valid.
Perhaps you aren't parsing it correctly?