![]() ![]() OrderId is the required slot field for this intent. Based on the utterances associated with intent, Lex recognizes the user’s intent and prompts the user for order Id. The user starts the conversation with the phrase – ‘Hi, what’s the status of my order?’. The sample conversation above is a flow between a user and a bot for CheckOrderStatusIntent. Picture1: Flow between the user and a bot. OrderId slot can have prompts like, ‘Please provide your order Id’, ‘What is your order Id’, etc. Each slot can have one or more prompts associated with it. Prompt: Prompt is a phrase that is used by Lex during runtime to get slot values for an intent. While creating a custom slot type, a list of values for a slot has to be enumerated. AMAZON.NUMBER built-in slot can be used for orderID slot. There are built-in slot types that can be used or may help in creating a custom slot type. Utterances are also configured with slots which are the phrases users use to provide slot values. Users must provide values for all required slots before fulfilling an intent. A slot can be configured as required or optional. During runtime, Lex prompts the user for specific slot values. In ‘CheckOrderStatus’ intent, orderID will be one of the slots. Slot: Slot is a parameter that is associated with an intent to fulfill a user’s request. Understanding similar phrases is the beauty of a chatbot and it does so with its natural language understanding (NLU) capability, which is the core of Lex. In the above example, when the user says, ‘Please give me the status of my order’, Lex can understand the user’s intent even though the phrase used by the user is not the exact utterance, which may be configured. When a user says any of the utterances associated with intent or similar phrases, Lex will understand the user’s intent. The more number of utterances associated with intent, the better it is. An intent can have one or more utterances associated with it. ![]() For example, a user might say ‘Check my order status’ or ‘What is the status of my order’ etc. Utterances: Utterances are sample phrases that users typically use to convey their intent. Each intent will have a descriptive name like ‘PlaceOrder’, ‘CheckOrderStatus’, etc. For example, an e-commerce bot will have intents to place an order and check order status. A bot will have one or more related intents. Intent: An intent represents an action that the user wants to perform. Before jumping on to building a chatbot, let’s get familiarized with a few concepts of Lex. Creating a chatbot with Lex is easy, quick, and requires no deep learning expertise. Lex is the same conversational engine that empowers Amazon Alexa and it is now available for developers to build chatbots. Amazon Lex is an Amazon Web Service (AWS) that is used for building conversational interfaces (or chatbots) using voice and text. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |