联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-23:00
  • 微信:codinghelp

您当前位置:首页 >> Matlab编程Matlab编程

日期:2018-10-07 09:49

DEVPSU Project Details

Football Ticket Chatbot

Did you try to buy football tickets this summer, only to find that the website didn’t work? In this

project, you will create your own chatbot so students can buy fictional football tickets for the

season. If you recall, a chatbot is a type of user interface that allows users to engage with a

service via text or voice. When you call customer service because you couldn’t buy your football

tickets online, it is likely that a voice “chatbot” talks to you before you speak to a real human.

For this project, the chatbot will do everything – no need for measly mortals! Let us begin.

Requirements

You will be creating and using your own chatbot to buy fictional football tickets. The chatbot

should be able to:

1) Order tickets by type (season, single day)

2) Order a specific quantity of tickets

3) Limit quantity and dates of ticket availability

Instructions

First, you’ll need to sign up for a free Amazon AWS account through AWS Educate. Go to this

URL and follow the steps to enroll as a student:

https://aws.amazon.com/education/awseducate/

Make sure to identify yourself as a Penn State University student to receive additional free

credits.

Once that’s been completed, you’re ready to start using Amazon Lex. Lex is a service designed

by Amazon to make it easy to create conversational interfaces, otherwise known as chatbots.

Go to this URL and click on Get Started (you must be logged in):

https://console.aws.amazon.com/lex/home

We are going to create a Custom bot. Here are some default values we recommend when

setting up your bot:

Click Create when you have adjusted your settings appropriately. You should be greeted by a

friendly home screen. Take a moment to look around and familiarize yourself with the interface.

Once that’s done, create an intent to order tickets for a single game. You can name it

something like OrderFootballTickets. Next, supply the intent with sample utterances. Some

examples of sample utterances are “I want to buy football tickets.” or “Could I buy tickets for

football.” (question marks are not allowed). The more sample utterances you add, the better Lex

will be able to recognize when the user wants to order football tickets.

Next, you’ll need to add slots. Slots are just pieces of information, such as a name, email

address or phone number. In our case, we require the following information:

Quantity of tickets

Opponent

You’ll have to play around with the slot type and prompt to find what works best. Make sure

you make both slots required.

For Fulfillment, you’ll want to Return parameters to client. The Response should inform the

user that the tickets have been purchased. Since these tickets are fictional, no actual

purchasing will occur.

Finally, click Save Intent, scroll back to the top and click Build. If there are any errors, fix them

now. If for some reason your intent disappears, just click the + next to Intents and Search

existing intents.

Your build will take a few minutes to complete. Once its completed, test your chatbot by talking

to it. Here’s a sample conversation:

If everything looks right, give yourself a pat on the back. That’s all there is to it!

If you want to challenge yourself, try improving your chatbot by:

1) Making the conversation smoother (respond appropriately to “Hi”; add a confirmation

prompt)

2) Ordering different types of tickets (season, single)

3) Requesting more info from user (student ID number, email address)

4) Persisting order information and allowing order cancellations


版权所有:留学生编程辅导网 2020 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。 站长地图

python代写
微信客服:codinghelp