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 Risposta
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
con risposta 2 anni fa
profile pictureAWS
ESPERTO
verificato 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande