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 Antwort
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
beantwortet vor 2 Jahren
profile pictureAWS
EXPERTE
überprüft vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen