amazon-web-servicesaws-lambdaamazon-lex

FulfillmentCodeHook doesn't have an associated Lambda Function AWS


I am creating a chatbot through Amazon Lex and I have built the bot successfully, however, upon testing it, I get the error:

Cannot call FulfillmentCodeHook for Intent OrderBot-xxxx. BotAlias/LocaleId TestBotAlias/en_US doesn't have an associated Lambda Function.

I have no clue what the issue is, I've tried keeping lambda function code hooks on and off, nothing has changed, same error, no clue how to fix this.


Solution

  • Probably the first part I will look and the only place I can see that you can select a lambda is:

    enter image description here

    Havent say that, I feel that it depends what you click in the config, a good way to see if something is missing is at the bottom of the page click in visual builder

    enter image description here

    In my example below, the lambda is only executed just before the end of the conversation:

    enter image description here

    Hopefully helps