Machine Learning | Amazon Lex Flashcards

1
Q

What is Amazon Lex?

General

Amazon Lex | Machine Learning

A

Amazon Lex is a service for building conversational interfaces using voice and text. Powered by the same conversational engine as Alexa, Amazon Lex provides high quality speech recognition and language understanding capabilities, enabling addition of sophisticated, natural language ‘chatbots’ to new and existing applications. Amazon Lex reduces multi-platform development effort, allowing you to easily publish your speech or text chatbots to mobile devices and multiple chat services, like Facebook Messenger, Slack, Kik, or Twilio SMS. Native interoperability with AWS Lambda, AWS MobileHub and Amazon CloudWatch and easy integration with many other services on the AWS platform including Amazon Cognito, and Amazon DynamoDB makes bot development effortless.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How can I get started with Amazon Lex?

General

Amazon Lex | Machine Learning

A

To start using Amazon Lex, simply sign into the AWS Management Console and navigate to “Lex” under the “Artificial Intelligence” category. You must have an Amazon Web Services account to start using Amazon Lex. If you do not already have one, you will be prompted to create one during the sign-up process. Please refer to the Amazon Lex Getting Started Guide for more information.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the most common use cases for Amazon Lex?

General

Amazon Lex | Machine Learning

A

The most common use-cases include:

  • Informational bot – build an automated customer support agent or bot that answers questions
  • Application/Transactional bot – build a stand-alone pizza ordering agent or a travel bot
  • Enterprise Productivity bot – build custom bots to connect to enterprise data resources
  • Device Control bot– use Amazon Lex to issue control commands to connected devices
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How does Amazon Lex work with other AWS services?

General

Amazon Lex | Machine Learning

A

Amazon Lex leverages AWS Lambda for Intent fulfillment, Amazon Cognito for user authentication, and Amazon Polly for text to speech. In addition, AWS Mobile Hub can be used to automatically provision bots from a template.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Do I have to be a machine learning expert to use Amazon Lex?

General

Amazon Lex | Machine Learning

A

No machine learning expertise is necessary to use Amazon Lex. Developers can declaratively specify the conversation flow and Amazon Lex will take care of the speech recognition and natural language understanding functionality. Developers provide some sample utterances in plain English and the different parameters (slots) that they would like to collect from their user with the corresponding prompts. The language model gets built automatically.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

In which AWS regions is Amazon Lex available?

General

Amazon Lex | Machine Learning

A

For a list of the supported Amazon Lex AWS regions, please visit the AWS Region Table for all AWS global infrastructure. Also for more information, see Regions and Endpoints in the AWS General Reference.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the maximum bandwidth supported on Amazon Lex?

General

Amazon Lex | Machine Learning

A

Amazon Lex scales to your needs and does not impose bandwidth constraints.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Is Amazon Lex a managed service?

General

Amazon Lex | Machine Learning

A

Amazon Lex is a completely managed service so you don’t have to manage scaling of resources or maintenance of code. Your interaction schema and language models are automatically backed up. We also provide comprehensive versioning capability for easy rollback. Amazon Lex architecture does not require storage or backups of end user data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

When do I use Amazon Polly vs. Amazon Lex?

General

Amazon Lex | Machine Learning

A

Amazon Polly converts text inputs to speech. Amazon Lex is a service for building conversational interfaces using voice and text.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Does Amazon Lex get more intelligent over time?

General

Amazon Lex | Machine Learning

A

Yes. Amazon Lex uses deep learning to improve over time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

I was in the Amazon Lex preview program. Now that Amazon Lex is GA, what happens to my account?

Bot Structure

Amazon Lex | Machine Learning

A

On April 19, 2017, Amazon Web Services announced that Amazon Lex exited Preview and entered General Availability. As such, we will be terminating the Amazon Lex Preview Program on May 1, 2017. Usage will be charged as per the pricing plan starting May 1st. Your first 12 months for the free tier will start on May 1st. Please note that Amazon Lex is now supported under Developer Support, Business Support and Enterprise Support plans. You can also post your queries on the public Amazon Lex forums.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How do I create a bot in Amazon Lex?

Bot Structure

Amazon Lex | Machine Learning

A

To create a bot, you will first define the actions performed by the bot. These actions are the intents that need to be fulfilled by the bot. For each intent, you will add sample utterances and slots. Utterances are phrases that invoke the intent. Slots are input data required to fulfill the intent. Lastly, you will provide the business logic necessary to execute the action. An Amazon Lex bot can be created both via Console and REST APIs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Can I implement business logic on the client?

Bot Structure

Amazon Lex | Machine Learning

A

Yes. Amazon Lex provides the option of returning parsed intent and slots back to the client for business logic implementation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How can I validate user input?

Bot Structure

Amazon Lex | Machine Learning

A

Amazon Lex provides deep integration with AWS Lambda and you can validate user input using the initialization and validation codeHook. This code gets executed at every turn of the conversation. The codehook can be used to set up session parameters, validate user input and customize responses.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is an Intent?

Bot Structure

Amazon Lex | Machine Learning

A

To build an Amazon Lex bot, you will need to identify a set of actions - known as ‘intents’ – that you want your bot to fulfill. A bot can have multiple intents. For example, a ‘BookTickets’ bot can have intents to make reservations, cancel reservations and review reservations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is an utterance?

Bot Structure

Amazon Lex | Machine Learning

A

An ‘utterance’ is the spoken or typed phrase to invoke an intent. For example, to invoke the intent to make reservations, you would provide a sample utterance such as, “Can I make a reservation?”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What are slots?

Bot Structure

Amazon Lex | Machine Learning

A

To fulfill an intent, the Amazon Lex bot needs information from the user. This information is captured in ‘slots’. For example, you would define show name and time as slots for intent to make reservations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What are prompts?

Bot Structure

Amazon Lex | Machine Learning

A

Amazon Lex elicits the defined ‘slots’ by using the ‘prompts’ provided. For example, to elicit value for the slot ‘time’ you will define a prompt such as “What show time would you like to reserve?”. Amazon Lex is capable of eliciting multiple slot values via a multi-turn conversation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

How is an action fulfilled?

Bot Structure

Amazon Lex | Machine Learning

A

Amazon Lex integrates with AWS Lambda for ‘fulfillment’ of the action or business logic. Alternately, you can configure Amazon Lex to return parsed intent and slot values to the client for action fulfillment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

How do I monitor and track my bot?

Build and Test

Amazon Lex | Machine Learning

A

You can track metrics for your bot on the ‘Monitoring’ dashboard in the Amazon Lex Console. Currently, you can track the number of missed utterances, request latency and traffic by channel for your bot. You can view list of utterances that were not recognized by your bot, aka ‘missed utterances’. With these monitoring capabilities, you view how your users are interacting with the bot and make improvements over time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What happens when I ‘build’ a bot?

Build and Test

Amazon Lex | Machine Learning

A

Building a bot triggers machine learning and creates the models for your bot. A new version of your intents and slot types is created. Once created a version is immutable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

How can I test an Amazon Lex bot?

Deployment

Amazon Lex | Machine Learning

A

You can test your Amazon Lex bot via the test window on the console. Any business logic implemented in AWS Lambda can be tested via this console as well. All supported browsers allow for testing text with your Amazon Lex bot; voice can be tested from a Chrome browser.

23
Q

Can I use the same bot for voice and text inputs?

Deployment

Amazon Lex | Machine Learning

A

Yes. Once you have built a bot it can be used for voice as well as text inputs.

24
Q

How can I create Amazon Lex bots for mobile?

Deployment

Amazon Lex | Machine Learning

A

Amazon Lex provides SDKs for iOS and Android. You can develop bots for your mobile use cases with these SDKs. User authentication can be enabled via Amazon Cognito. You can use AWS Mobile Hub to build, test and monitor bots for your mobile platforms. AWS Mobile Hub can be used to automatically provision Amazon Lex bots from a template.

25
Q

How can I make Amazon Lex bots available on messaging services?

Deployment

Amazon Lex | Machine Learning

A

Amazon Lex bots can be published to messaging platforms like Facebook Messenger, Slack, Kik, and Twilio SMS. To publish the bot you can provide the tokens for authentication in the console, and we will store it securely and provide a callback URL that you can provide to the chat service.

26
Q

Do I have to submit my bot for certification prior to deployment?

Deployment

Amazon Lex | Machine Learning

A

You don’t need to certify your bot with Amazon prior to deployment.

27
Q

Can I have an Amazon Lex bot version deployed for use by end users while I continue to develop on a different version?

Deployment

Amazon Lex | Machine Learning

A

Yes. You can build and deploy a version of your bot into production while you continue to develop on a different version. Every version of an Amazon Lex bot will have an ARN. Each version can be associated with a different alias. You can use these tools to set up dev, stage and prod environments.

28
Q

Can I choose different versions while deploying to different messaging services?

Deployment

Amazon Lex | Machine Learning

A

Yes. You can deploy a specific version to each messaging service. Every version of Amazon Lex will have an ARN. Each version can be associated with an alias. You can use different aliases for deployment to different messaging service. Also, you can have multiple bots deployed to the same messaging service.

29
Q

What is the maximum duration of speech input?

Deployment

Amazon Lex | Machine Learning

A

Amazon Lex supports up to 15 seconds of speech input.

30
Q

Can I configure for speech input and text output?

Deployment

Amazon Lex | Machine Learning

A

Yes, you can just choose the PostContent API to provide voice input and choose text output.

31
Q

How many languages are supported on Amazon Lex?

Deployment

Amazon Lex | Machine Learning

A

Currently, Amazon Lex supports US English.

32
Q

What audio formats does Amazon Lex support?

Deployment

Amazon Lex | Machine Learning

A

Amazon Lex supports the following formats for input audio: LPCM and Opus; Supported output audio formats: MPEG, OGG, PCM.

33
Q

Can I use Amazon Lex in VPC?

Deployment

Amazon Lex | Machine Learning

A

Amazon Lex can be accessed from VPC via public endpoints for building and running a bot. Currently, Amazon Lex does not provide a VPC endpoint.

34
Q

Can I access Amazon Lex bots locally i.e. without an Internet connection?

Amazon Alexa

Amazon Lex | Machine Learning

A

No. End users will need to access the Amazon Lex runtime endpoint over the Internet.

35
Q

How is this different from Alexa Skills Kit?

Amazon Alexa

Amazon Lex | Machine Learning

A

Alexa Skills Kit (ASK) is used to build skills for use in the Alexa ecosystem and devices and lets developers take advantage of all Alexa capabilities such as the Smart Home and Flash Briefing API, streaming audio and rich GUI experiences. Amazon Lex bots support both voice and text and can be deployed across mobile and messaging platforms.

36
Q

Do I need a wake word to invoke an Amazon Lex intent?

Amazon Alexa

Amazon Lex | Machine Learning

A

Amazon Lex does not support wake word functionality. The app that integrates with Amazon Lex will be responsible for triggering the microphone, i.e. push to talk.

37
Q

Can an Amazon Lex bot respond using Alexa’s voice?

Amazon Alexa

Amazon Lex | Machine Learning

A

Currently we do not support the Alexa voice for Amazon Lex responses. However, there are 7 other voices from which to choose.

38
Q

Can I create an Alexa Skill from an Amazon Lex bot ?

Amazon Alexa

Amazon Lex | Machine Learning

A

Amazon Lex provides the ability for you to export your Amazon Lex bot schema into a JSON file that is compatible with Amazon Alexa. Once downloaded as JSON, you need to log in to the Alexa developer portal, navigate to the ‘Interaction Model’ tab, launch the Alexa Skill Builder, and paste the bot schema into the Code Editor of your Alexa Skill. More details and steps can be found in the Amazon Lex documentation.

39
Q

When exporting my Amazon Lex bot schema to use in an Alexa skill, are my AWS Lambda functions exported and included in the bot schema?

Amazon Alexa

Amazon Lex | Machine Learning

A

No. Only the bot definition will be downloaded.

40
Q

I have created an Alexa Skill from an Amazon Lex bot using the schema export feature. Which Alexa platforms support the Amazon Lex bot schema?

Data Privacy

Amazon Lex | Machine Learning

A

All Alexa platforms that support Alexa skills can be used: The Amazon Echo, Amazon Dot, Amazon Look, Amazon Tap, Amazon Echo Show and any third-party Alexa-enabled devices.

41
Q

Are voice and text inputs processed by Amazon Lex stored, and how are they used by AWS?

Data Privacy

Amazon Lex | Machine Learning

A

Amazon Lex may store and use voice and text inputs processed by the service solely to provide and maintain the service and to improve and develop the quality of Amazon Lex and other Amazon machine-learning/artificial-intelligence technologies. Use of your content is necessary for continuous improvement of your Amazon Lex customer experience, including the development and training of related technologies. We do not use any personally identifiable information that may be contained in your content to target products, services or marketing to you or your end users. Your trust, privacy, and the security of your content are our highest priority and we implement appropriate and sophisticated technical and physical controls, including encryption at rest and in transit, designed to prevent unauthorized access to, or disclosure of, your content and ensure that our use complies with our commitments to you. Please see https://aws.amazon.com/compliance/data-privacy-faq/ for more information.

42
Q

Can I delete voice and text inputs stored by Amazon Lex?

Data Privacy

Amazon Lex | Machine Learning

A

Yes. You can request deletion of voice and text inputs associated with your account by contacting AWS Support. Deleting voice and text inputs may degrade your Amazon Lex experience.

43
Q

Who has access to my content that is processed and stored by Amazon Lex?

Data Privacy

Amazon Lex | Machine Learning

A

Only authorized employees will have access to your content that is processed by Amazon Lex. Your trust, privacy, and the security of your content are our highest priority and we implement appropriate and sophisticated technical and physical controls, including encryption at rest and in transit, designed to prevent unauthorized access to, or disclosure of, your content and ensure that our use complies with our commitments to you. Please see https://aws.amazon.com/compliance/data-privacy-faq/ for more information.

44
Q

Do I still own my content that is processed and stored by Amazon Lex?

Data Privacy

Amazon Lex | Machine Learning

A

You always retain ownership of your content and we will only use your content with your consent.

45
Q

Is the content processed by Amazon Lex moved outside the AWS region where I am using Amazon Lex?

Data Privacy

Amazon Lex | Machine Learning

A

Any content processed by Amazon Lex is encrypted and stored at rest in the AWS region where you are using Amazon Lex. Some portion of content processed by Amazon Lex may be stored in another AWS region solely in connection with the continuous improvement and development of your Amazon Lex customer experience and other Amazon machine-learning/artificial-intelligence technologies. You can request deletion of voice and text inputs associated with your account by contacting AWS Support. Your trust, privacy, and the security of your content are our highest priority and we implement appropriate and sophisticated technical and physical controls, including encryption at rest and in transit, designed to prevent unauthorized access to, or disclosure of, your content and ensure that our use complies with our commitments to you. Please see https://aws.amazon.com/compliance/data-privacy-faq/ for more information.

46
Q

Can I use Amazon Lex in connection with websites, programs or other applications that are directed or targeted to children under age 13 and subject to the Children’s Online Privacy Protection Act (COPPA)?

Data Privacy

Amazon Lex | Machine Learning

A

Yes, subject to your compliance with the Amazon Lex Service Terms, including your obligation to provide any required notices and obtain any required verifiable parental consent under COPPA, you may use Amazon Lex in connection with websites, programs, or other applications that are directed or targeted, in whole or in part, to children under age 13. Amazon Lex does not store or retain voice or text utterance information from websites, programs, or applications that are identified by customers in accordance with the Amazon Lex Service Terms as being directed or targeted, in whole or in part, to children under age 13 and subject to COPPA.

47
Q

How do I determine whether my website, program, or application is subject to COPPA?

SDK

Amazon Lex | Machine Learning

A

For information about the requirements of COPPA and guidance for determining whether your website, program, or other application is subject to COPPA, please refer directly to the resources provided and maintained by the United States Federal Trade Commission. This site also contains information regarding how to determine whether a service is directed or targeted, in whole or in part, to children under age 13.

48
Q

What SDKs are supported for Amazon Lex?

SDK

Amazon Lex | Machine Learning

A

Amazon Lex currently supports SDKs for runtime services. IoS and Android SDKs, as well as Java, JS, Python, CLI, .Net, Ruby, PHP, Go, and CPP support both text and speech input.

49
Q

Can I use SDKs to build bots?

AWS Mobile Hub Integration

Amazon Lex | Machine Learning

A

You can build bots using SDKs: Java, JavaScript, Python, CLI, .NET, Ruby on Rails, PHP, Go, and CPP.

50
Q

Which enterprise connectors are supported on Amazon Lex?

Support and Billing

Amazon Lex | Machine Learning

A

Amazon Lex integrates with enterprise connectors via AWS Lambda. The following enterprise connectors can be provisioned via AWS Mobile Hub: Salesforce, Microsoft Dynamics, Marketo, Zendesk, Quickbooks, and HubSpot.

51
Q

What support is provided for Amazon Lex?

Support and Billing

Amazon Lex | Machine Learning

A

Depending on your AWS support contract, Amazon Lex is supported under Developer Support, Business Support and Enterprise Support plans. You can also post your queries on the Amazon Lex forums.

52
Q

How does Amazon Lex count the number of requests?

Support and Billing

Amazon Lex | Machine Learning

A

Every input to an Amazon Lex bot is counted as a request. For example, if an end user provides 5 inputs to the bot as part of conversation, these are billed as 5 requests. Usage is metered and billed per request.

53
Q

How much does Amazon Lex cost?

Support and Billing

Amazon Lex | Machine Learning

A

It is free to get started. Please see Amazon Lex Pricing Page for current pricing information.

54
Q

Does Amazon Lex participate in the AWS Free Tier?

Support and Billing

Amazon Lex | Machine Learning

A

Yes. You can try Amazon Lex for free. From the date you get started with Amazon Lex, you can process up to 10,000 text requests and 5,000 speech requests per month for free during the first year.