Brookie_C
Brookie_C

Reputation: 437

Why is the sample AWS Lambda Function for "BookAppointment" not working with the AWS Lex sample bot that schedules dentist appointments?

I am using the sample for both, and I have tried both v1 and v2, but I get this error on fulfillment of the intent.

enter image description here

Why is this so? Is it my AWS account or something else? I have tried linking the Lambda Function as codehook and also for the validation, but it still doesn't work with any combination.

Upvotes: 0

Views: 462

Answers (1)

Faqir Hussain
Faqir Hussain

Reputation: 66

It seems that AWS updated the Amazon Lex "MakeAppointment" example bot to V2 and it caused a change in the input and output response structure for the lambda function. But unfortunately, the lambda function blueprint "lex-make-appointment-python" is still having the old code which expects a bit different structure of event(input from Lex) and returns a different structure of response which is not acceptable by Lex V2.

Solution: It seems that we need to update the Lambda function code to return the desired response as shown here.

Upvotes: 2

Related Questions