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 Respuesta
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
respondido hace 2 años
profile pictureAWS
EXPERTO
revisado hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas