Code base for basic Hello World chatbot based on AWS Lex service and AWS Lambda
Table of Contents
- What do I need to put into Lex to get started?
- What do I need for AWS Lambda?
- How do I test this to get started?
Using the AWS console, create your first Lex bot and give it a name. For example, HelloWorld.
Then create your first intent. Just call it something simple like 'Hello'.
Creating an intent involves establishing sample utterances. Pick something simple like 'Hello' or 'Hi'.
- Create a new blank lambda function.
- Copy the code in the /src folder into the lambda function.
- Save.
First make sure that your Lambda function is properly setup. From the /testdata folder, use the AWS console to test the function with the request object. After invoking, you should receive a response object that looks like this.
Once the lambda function properly works, then connect it to Lex. This can be done through the console by changing the Fullfillment radio button on the intent and selecting the Lambda function.
For a more advanced bot, please try this