This is a workspace where you can find an AWS SDK for JavaScript version 3 (v3) tutorial that how to build and deploy an Amazon Lex chatbot within a web application to engage your web site visitors.
For instructions on implementing this example, see Building an Amazon Lex chatbot in the AWS SDK for JavaScript v3 Developer Guide.
-
Clone the AWS Code Examples Repository to your local environment. See the Github documentation for instructions.
-
Install the dependencies listed in the [root]/javascriptv3/example_code/cross-services/lex-bot/package.json.
Note: These include the AWS SDK for JavaScript v3 client modules for the AWS services required in this example, which are @aws-sdk/client-cognito-identity, @aws-sdk/credential-provider-cognito-identity, @aws-sdk/client-iam", @aws-sdk/client-comprehend", @aws-sdk/client-lex-runtime-service, and @aws-sdk/client-translate.
They also include third-party Node.js modules, including webpack.
npm install node -g
cd javascriptv3/example_code/cross-services/lex-bot/
npm install