V2 Lex OrderFlowers Blueprint Lambda Error

1

I am following the v2 Lex Developer Guide to create the OrderFlowers Blueprint Lex. I followed the steps to add a Lamba function (page 145) in the guide (https://docs.aws.amazon.com/lexv2/latest/dg/lex2.0.pdf). When I execute the Lex Bot it throws the error below. Do you have any suggestions what is causing this? Thank You!

Invalid Lambda Response: Your request to Amazon Lex couldn't be completed. Lambda function arn:aws:lambda:us-east-1:994504927747:function:OrderFlowersCodeHook:OrderFlowersCodeHook encountered a problem while processing Amazon Lex request 4c270a5e-4883-4df4-98b7-996be1cbb627. The error message from the Lambda function is Unhandled. Check the Lambda function log for error details, then try your request again after fixing the error.

asked 2 years ago472 views
1 Answer
1

I believe I found the answer. The Lex v2 Input and Response Formats are different than Lev v1. The Lambda Order Flowers Blueprint uses the v1 format. Refer to "Migrating a Lambda function" in the documentation: docs.aws.amazon.com/lex/latest/dg/message-lambda.html

answered 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