Over time we have been trying to develop and innovate technologies that made our life easier. With numerous applications around us to solve this purpose, Chatbots are emerging to be an important part of our lives. One of the solutions around is Amazon Lex which is a powerful platform for building Chatbots.
And as rightly said: “Chatbots Will Be Your New Best Friend” ... Forbes
Amazon Lex is an AWS service that helps in building an interface where applications use text and voice. Alexa from Amazon also uses Amazon Lex as a backend engine. It is used to create, natural language chatbots for the applications. Amazon Lex uses the power of natural language understanding (NLU) and automatic speech recognition (ASR) to create an interactive user experience that looks lifelike.
“A chatbot is a computer program that connects with the user in a natural language using audio or text mode. It understands what the user says and respond based on a series of rules”.
Intent means a task end-user wants to achieve. Bot can support multiple intents, like flight booking, taxi booking, check price or gold or even start-stop an ec2 instance.
For each intent, you provide the following required information:
Intent can have zero or more slots. You can add slots while configuring an intent configuration. When a bot is called Amazon Lex asks the user for the defined slot values. Amazon Lex asks the user all the slot values before fulfilling the tasks asked by the end-user.
For example, the startec2instance or stopec2instance intent will need slots such as instance name, instance-id, zone-name, etc. In the intent configuration, we can add slots. For each slot, we ask for a slot type and a message for Amazon Lex to ask to the user. Users can answer with a slot value that may have some extra words like “start the ec2 instance with instance id XXX please” or “can we stop and instance by name XXX”. Amazon Lex can still perform the tasks.
Slots have a type. We can create our custom slot types or use built-in slot types. For example, we can have the following slot types for startec2instance intent:
ChatBot are used to give the users a friendly, interactive graphical user interface to chat and express their interest and needs, and expect the bot to behave as real human and response in the same manner. Chatbot interacts with the user as a real human, understanding the user’s needs and responding similarly.
Now let’s come to the most exciting part of the tutorial … J creating a real Amazon Lex Chatbot.
Exciting. isn’t it.
Steps to be followed:
Give a meaningful content name. In my case, I gave “WhatisurName”
Like in the case here, we expect the user to Hi, Hey or Hello as above. The Bot will reply to the user with his Name and this seems to be a more human-like response. We will test this in a minute …
Other things the bot will ask for is the place the user lives and his / her date of birth.
Once the Built is complete you can test your Bot by using “Test Bot” option on right.
Once Published you will get the following pop-up
Hooray, your first Amazon Lex ChatBot created successfully.
Now it’s time to test it in the outer world.
So, guys as your first Amazon Lex Chatbot is ready, it’s time to expose it to the outer world. Let’s learn how to interact with websites like Facebook as it is the largest used website for personal social circle as well as running Business campaigns and promotions.
For this you need a Facebook account. J .. I am sure you have one.
Steps to be followed.
Done. Facebook is Integrated with your Amazon Lex Chatbot.
Chat window just like Facebook messenger will appear.
Now ask the same utterances as the user may ask.
Well, so today we learned, what is the power of Amazon Lex, what are Chatbots and how they are very useful for the present day Business and how it is needed to reach your customers in a friendly and interactive way.
How they can bring more customer traffic to your business, by replying maximum user queries. How it can save a lot of Operation cost as human tele callers can be replaced by automated Chatbots. Amazon Lex developers are also in Demand as per LinkedIn.
Hope you find this tutorial helpful and knowledgeable, happy learning.
A DevOps Engineer by profession and a Technical Blogger by passion. I love to learn anything about DevOps and Cloud computing and at the same time share the knowledge among those who are willing to learn and share the same passion with me.
MS SQL Server
Receive Latest Materials and Offers on AWS Course