Using Lambda Functions
You can create AWS Lambda functions to use as code hooks for your Amazon Lex bot. You can identify Lambda functions to perform initialization and validation, fulfillment, or both in your intent configuration.
We recommend that you use a Lambda function as a code hook for your bot. Without a Lambda function, you configure your bot to simply return the intent information to the client application for fulfilling the intent.