Develop A Chat Bot Using Amazon Lex-Chatbot Technology - NareshIT
Naresh i Technologies
Only Institute to offer the 'Most Comprehensive eLearning Platform to suit the self-learning needs of all CMS and LMS
Amazon Lex is one of the popular platforms for developing chatbots. In this tutorial, we are going to have a look at the complete process of developing chatbots with the help of Amazon Lex. Let's have a look at the topics covered in this tutorial. We will start with what is "chatbot technology," what the bot does, and what it is. Then finally, we will have a look at the demo of making the Amazon Lex. Naresh I Technologies is the number one computer training institute in Hyderabad and among the top five computer training institutes in India. Contact us now for learning about Lex and all the top AWS services.
What "chatbot technology" is?
A chatbot happens to be a computer program, which converses in natural language through the textual or auditory method. It is good enough to understand the user intent, and it transfers the response based on the organization's business rules and data.
In simple words, chatbots happen to be the service or tools which can communicate with anybody via the chat interface. The chatbot can find the meaning of what you are typing and replies through the correct message, or it directly completes the tasks that you have to do otherwise.
How and when the chatbot evolution began?
?If you feel chatbot is new in technology, then you are incorrect. The first one, "Eliza," was developed in 1966. And then:
?- What do bots do?
The chatbot is essential because:
They provide people with the correct info at the "correct time," and "correct place," and only when they need it.
Around 90% of the total time on mobile is invested in reading and sending emails and various messages. Hence, it makes quite a sense for the customers to make use of the chatbots rather than using the website or the mobile app.
Due to AI, ML, and NLP, bots can converse with real people like a person now.
Modern chatbots do not only post texts but also images, cards, forms and links, and app-like feel, based on the manner they are programmed. We have two types of chatbots: Dumb Bots or rule-based, and self-learning or smart bots. The first bot provides the answer depending upon the rules they get the training. However, the second one deals with AI, "ML technologies," while conversing with the users.
You will find various platforms that employ complex technologies for helping to create chatbots in simple steps, and finally, customize them as you want. One such platform is Amazon Lex.
?- What is Amazon Lex Bot?
Amazon Lex happens to be a fully managed service for developing conversational interfaces into any application with the help of text and voice. It makes use of DL functionalities such as ASR or automatic speech recognition, and natural language understanding for recognizing the text intent.
Amazon Lex helps you to speedily and efficiently develop chatbots with extremely engaging user experiences and lifelike chatty exchanges. However, you might feel, if is it free or it costs.
Amazon Lex costs or not?
Yes, it is free, and most of its features come under AWS Free Tier.
Benefits:
Simplicity: You get with lex console that is easy to use, and you can use it for making a chatbot in a few minutes?
Inbuilt Technologies: You need to provide only some phrases, and Lex builds up to full natural language mode, and through its bot does the interaction through the text and voice.
Faultless Scaling and deployment: If the user engagement becomes intense, you need not worry about orchestrating the hardware and the infrastructure management for powering the bot understanding.
You can integrate it with AWS quite easily: You can "integrate" the Lex with a lot of AWS services that include CloudWatch, Lambda, DynamoDB, Cognito, and many others.
Cost-Effective: Through Lex, you avoid any upfront costs or any minimum fees. You need to pay for the speech or the text requests only.
Let's have a look at one of the use cases for understanding Amazon Lex capabilities.
User-Case: forgetting the banking info via the Amazon Lex chatbot.
Through "Chatbot," it's possible to build the "Chatbot" with powerful interfaces for using it together with mobile apps. You can develop a text or voice interface for creating the bots on mobile devices, which can leverage the customers in doing basic tasks.
Suppose you need to know the bank account balance and you make use of the Amazon Lex chatbot. Lex is quite good at understanding the request and completing the relevant background tasks. You can combine with Polly and ask for inputs as speech. And once the information is received, it triggers the Lambda. Lambda finds the requested info and performs all actions to be taken. Let's suppose it can "trigger" the SNS service for sending the notification or do the CloudWatch integration for storing the events and logs.
Hence, now you understand how to lex operates for fulfilling your requests. We now need to have a look at the demo:
- Demo: How to build a chatbot using Amazon Lex?
Step 1: You need to create a chatbot and configure the slots, utterances, and intent.
Step 2: Now test the bot in the lex console text window slide.
领英推荐
Step 3: Now, you need to publish the version and make an alias.
Step 4: Now, you need to publish the bot on some platform-like Messenger or any.
Let's first look at the core concepts and terminologies.
Bot: An AI program that simulates interactive conversation.
Intent: This means the action that the user wants to perform.
We have to mention the intent name, utterances, and Intent fulfillment.
Slots: These are the parameters that intent requires
Slot type: Each slot comes with a "type," or else we can build a custom slot type.
Intent fulfillment: We need a lambda function for fulfilling the intent. And required "fulfillment" is done by the Client Application.
Lambda function works as a code hook: This customizes the users' interactions, and it does the initialization and validation of the user input. Finally, the user's intent is fulfilled by it.
Now come to the "main demo" part:
1.??????Move to Amazon Lex Management Console.
2.??????Now you have two options to create a bot. The first option is "creating your bot," and the second option is selected from a predefined bot.
3.??????Now give the bot a name. Select the output voice, and you can test it as well by entering a phrase.
4.??????Now state the session timeout.
5.??????Now select the IAM role for the lexbot.?It should be AWSServiceRoleforlexbot. Now say no to COPPA.
6.??????Finally, click on Create.
7.??????Now click on "Create Intent." Give intent a name like Railway reservation.
8.??????You can select a predefined intent as well and also load a file. However, we are choosing to "Create Intent."
9.??????Now, add the slot type. Click on the "+" icon. Add slot name and description. And you can choose from Expand values and restrict them to slot values and synonyms. If you want the user to prompt only, if he enters what you have mentioned, then select "Restrict to slot values and synonyms." And if you need to train the bot to allow for similar inputs, then select expand values. We are choosing"Expand values." Now add some slot values. Now add the slot to the "intent."
10.??Now you have added one slot. You can add as many as possible. Define the prompt with care as the bot will prompt this message to the users.
11.??Now ensure slots are in the correct order.
12.??Now provide a confirmation prompt, one for a positive result and one for a negative.
13.??Now select fulfillment. You can choose from the AWS Lambda function and return the parameter to the client.
14.??If you choose "lambda," you will have to provide a Lambda script in Python. And then the bot will prompt you if you enter the wrong values. Or else it will just return the parameters. We are selecting "return parameters to the client." It's since this is an introductory bot.
15.??Now build the bot
16.??On successful build test bot in-text slide on the right panel. Enter the inputs and see if the bot is replying correctly, as you have mentioned. It will, and we will see the lambda option later in some separate blog. You have to learn how to write these lambda scripts to become a successful lex bot developer. If you want to learn this, then you can contact Naresh I Technologies, the number one computer training institute in Hyderabad.
That completes our tutorial.
You can contact Naresh I Technologies for your AWS training. It is one of the best-known institutes in India providing AWS training in Hyderabad and the USA. However, you can be from any part of the world, and get training from them, the number one computer training institute in Hyderabad.
What you will achieve:
Just give us a missed call, and one of our customer care executives will be contacting you asap. You can avail of counselor service through the phone as well. Or submit the online form. And we will contact you asap.
Follow us for More Updates:?https://bit.ly/NITLinkedIN??
Spesialized in marketing sales representative, design logo, web banner creativity and ideas imbicille.tumblr.com
1 年Like a charm
EMAmi limited company
1 年????????
EMAmi limited company
1 年????????????