MLS-C01 Question 305
Single answerYou are building a chatbot using Amazon Lex to assist customers with tracking their package delivery. The chatbot needs to gather the customer's order ID and confirm whether the package has been delivered or is still in transit. Which feature of Amazon Lex should you use to ensure the chatbot collects all necessary information before proceeding with the response?
- A
Slot types
- B
Slot elicitation
- C
Fulfillment Lambda function
- D
Session attributes
Show answer and explanation
Correct answer: B
Explanation
Slot elicitation in Amazon Lex is the correct feature for ensuring that a chatbot collects all required information (slots) from the user. In this case, it would prompt the user for their order ID and any other necessary details before proceeding to check the package delivery status. Other options like slot types, fulfillment Lambda functions, and session attributes serve different purposes in the Lex workflow but do not handle this specific requirement.
- A. Incorrect.
Slot types define the expected format of input (e.g., numbers, dates), but they do not handle the process of collecting information from the user.
- B. Correct.
Slot elicitation is used to ensure that all required slots (inputs) are collected by prompting the user for missing information, which is the correct approach for this scenario.
- C. Incorrect.
Fulfillment Lambda functions are used to perform back-end tasks like querying a database or processing user requests, but they do not handle gathering user input.
- D. Incorrect.
Session attributes can store temporary information during a conversation flow but are not responsible for collecting required inputs from the user.