Wednesday, September 12, 2018

Setting Up a Sample Chatbot in Amazon Lex (Technical Document)(Job Test Document)



(CREDITS):

--written by thewriter197
--job test document for (writing client)
--Failed the test



Setting Up a Sample Chatbot in Amazon Lex


This tutorial is designed to teach you how to set up a chat bot with Amazon Lex. You can use the bot to schedule appointments and perform alert tasks. The alert tasks will remind you of important business you have at different times. I will walk you through the procedure with a step by step process. Follow these steps listed below. For the first section, I will pretend to be a dentist wants to set up an appointment with Amazon Lex. For the second section, I will teach you how to change the lambda function for “make appointment field.” 


(Part 1-Steps): 
A. Basic Use for AWS Account
1.  Sign up for AWS account. Then you need to log into AWS account.
2.  Next, you click on “services.” It should be in the upper left corner as soon as you log in.
3.  Look for a menu called “Artificial Intelligence.”
4.  Click on “Lex.”
5.  Then it will open a new menu. Click on “create.”
6.  Then you will have the opportunity to create a custom bot or try the other bot function samples listed below. You should now see four options.
7.  We are going to be using “schedule appointment sample” for this practice tutorial example. This bot schedules dentist appointments. Click on that.
8.  Click on “schedule appointment sample.”
9.  Next, set the “coppa option” to no. Then, choose create.
10.  The bot will now be built. It will take a few minutes to load. You will see a new chat box below.
11.  Type in “book an appointment” into the chat box.
12.  Respond to the bot’s questions. The bot will first ask you "what type of appointment." You will respond with “root canal” for this practice tutorial. Next, the bot will ask you "when should I schedule your root canal." You will then respond with “tomorrow.” The bot will then ask you "what time." You will respond with “noon.” Next, the bot will ask you if you want to continue with details. You then say “Yes.”
13.  The bot will input the information you told it too. You will see the information under “make appointment.” You generally have to tell the bot the information it needs to make the appointment you want.

(Part 2-Steps): 
 B. Wire Make Appointment With Lambda Function
1.  I will now teach you how to wire your “make appoint” from part 1 with “lambda function.”
2.  Go back to the “services” tab in the upper left corner.
3.  Click on “Lambda” which is under “compute” menu.
4.  Click on “create a lambda function.”
5.  Type in “lex” in the search box located in the middle of the screen.
6.  Go to “make anointment” with nojs.
7.  Then click on "next."
8.  Give a name to the lex. In this example I will say “demo likes Bob.”
9.  Then, a code will be generated for the example.
10.  Scroll to the bottom of the page.
11.  Then, select the “role.” Do this to give the application permission to run. In this practice tutorial I am going to set it to “Lambda, basic execution.” That is what we need to achieve this process.
12.  Hit the “next” button.
13.  Then, hit the “create” button.
14.  Now, the lambda function is working completely. You can hit the “test” button to make sure. The screen will load up and show you the details. It will be fine if the test goes through. Hit the “test” button to find out.
15.  Go back to “lex” under “artificial intelligence.” It is located on the home page.
16.  Next go back to that schedule appoint bot.
17.  Go to the top of “make appointment” and on the right side would be a drop down arrow. Click on it and then scroll up to “latest.”
18.  Then, go down to “fulfillment” section on page and click on “AWS lambda function.”
19.  Then, you need to find the function you made. Look for the box right under AWS lambda function. Look for the function we made earlier with lambda function. In this practice tutorial we used “demo likes Bob.” Click on “demo likes Bob.” Then, press the "ok" button when asked for permission to run.
20.  Now, the bot is fully customized and set up. Things are fully set up for the “schedule appointment sample bot.”


Reference:
https://www.youtube.com/watch?v=RR8BXqRw1nk

No comments:

Post a Comment