Chat Bot slots and Lamba

0

I have created the slots values and the lambda function and this appears on the test: Invalid Lambda Response: Received invalid response from Lambda: Cannot construct instance of IntentResponse, problem: The validated object is null at [Source: (String)"{"statusCode":200,"body":""Hello from Lambda!""}"; line: 1, column: 50]

1 個回答
2

Hi,

It looks like your Lambda function is returning a generic response. Lex is expecting a specific format after running the function: https://docs.aws.amazon.com/lexv2/latest/dg/lambda.html#lambda-response-format

You need to modify your Lambda function to return the specific response format.

See also: https://repost.aws/questions/QUxVxtLzR1Rp6bLUnk6_MYyw/having-issue-while-sending-lambda-response-to-lex-v-2-error-invalid-lambda-response-can-not-construct-instance-of-intent-response

AWS
已回答 2 年前
profile pictureAWS
專家
已審閱 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南