Building a Fitness Chatbot on AWS.
By: Ajay Yadav
Tags: Lambda, AWS, Chatbots, Dynamodb, Amazon Lex

The role of chatbots goes to be larger and higher. With the rising chatbots trends and market outlook, it’s crucial for businesses to adopt innovative ways in which to deliver continuous client engagement.

As per Gartner, “Artificial Intelligence (AI) are a thought client expertise investment within the next few years”. forty seventh of organizations can use chatbots for client care and four-hundredth can deploy virtual assistants.

AI has been revamping the ways in which of communication ways in which for businesses each with customers and internally. AI is important for enabling machine learning and also the versatile interpretation of machine-driven business communications.

This article will provide a detailed information of the Lex service and how you can use it to start building your Chatbots and attach it to your Website.

Prerequisites:

To build a working and function full Chatbot, we will need the following items

An AWS account with Lex, DynamoDB, and Lambda enabled.

An AWS role with the appropriate permissions.

A creation map like shown below, it will be help full to create a step by step chatbot.

If you don’t have the AWS account ,create one and be back to this article. This article will only contains creation process of chatbot and supported services like lambda , Dynamo DB. This article will not be responsible for any other factors like security, scalability etc.

Terminology:

Terminology are the new words you will get to know about when you open your AWS Lex service in Amazon Web Services(AWS). So lets have a look for better understanding.

AWS LEX

1. Intents- Intents are the goals you want to achieve after creating it like-

e.g. My goal is to say like hi or hello as anyone typed hi ,hello, hey there or any other similar words to chatbot .

2. Utterance- Utterance are the word or phases that will start the intents like -

If anyone typed hi then the Intent of hi Utterance will be invoke, You can give any name to the Intents which you will get to know ahead.

3. Slots- Slots square measure the items of data you would like to gather from the user. These would be the; name, telephone range, city, and state.

4. Fulfillment- Fulfillment are the give the Output of the Intents at the last we can use two option in which one is lambda function.

5. Lambda Functions -Lambda Functions are the function which execute code for any service in AWS. But as we are working on AWS Lex (chatbot service) then we will create a function for persist the user’s registration answers to our DynamoDB database.

Create your Chatbot

Lets start ,open your AWS console and click on service tab on the left-top corner of the screen.

Then there is a service under the machine learning section like AWS Lex as shown below.

Click on Amazon Lex and and then click on Get Started and start the bot creation process.

Be sure to choose the custom bot template, then put the name of your chatbot (any name you want).Then choose the bot language and output voice.

session timeout is a time period of your chatbot like if you want your chatbot to stay active for 3 min after that session chatbot should end, it can be happen with session timeout. As a default it is 5 minutes.

COPPA- Please indicate if your use of this bot is subject to the Children’s Online Privacy Protection Act (COPPA).