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 Answer
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
answered 2 years ago
profile pictureAWS
EXPERT
reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions