How to give permission to use aws lambda function in my aws lex bot

-1

Hello,

I have created a lambda function that I want to use in my aws lex bot for fulfillment. However, I am not given the option to choose a lambda function. I am merely given a check box This is what I see from my end

asked 2 years ago804 views
1 Answer
0

Hi,

as pointed out here: https://catalog.us-east-1.prod.workshops.aws/workshops/94f60d43-15b7-45f4-bbbc-17889ae64ea0/en-US/banker-bot/create-first-lambda, in Amazon Lex V2 you now create a single Lambda function per language per bot, which must be able to support both types of Amazon Lex interaction.

Read on that guide (https://catalog.us-east-1.prod.workshops.aws/workshops/94f60d43-15b7-45f4-bbbc-17889ae64ea0/en-US/banker-bot/create-first-lambda#enabling-lambda-code-hooks-on-the-intents) as the lambda needs to be associated with bot alias .

Hope it helps ;)

profile picture
EXPERT
answered 2 years ago
  • Hi Antonio, I followed the exact steps you shared but my Bot is not working .I'm getting below error . Kindly suggest

    Invalid Lambda Response: Received invalid response from Lambda: Cannot construct instance of IntentResponse, problem: The validated object is null at [Source: (String)"{"dialogAction":{"type":"Close","fulfillmentState":"FAILED","message":{"contentType":"PlainText","content":"Error in Lex Lambda"}}}"; line: 1, column: 131]

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