This was all about learning the basic functioning of the Amazon Lex platform. Further, Lex forwards this response to the end user. Then it returns the result to Lex in the aforementioned format. In our flight booking scenario, our Lambda function calls the flight search APIs to get the result for the user’s query. The Lambda function thus performs the business logic. Lex sends data to the lambda function in a specific format mentioned here. When a user provides all of the slot data required to fulfill the intent, your Lambda function will be invoked if enabled. Configuring Lambda functions as fulfillment You can configure fulfillment after finishing the slot configuration. Here is how your Amazon Lex console looks with this configuration. Now, let’s identify the other possible slots in the above conversation. You can configure a slot so that your bot can detect the parameter “DestinationCity” and populate it with the value “New York” or whichever city is present in the user’s query. Lex provides some inbuilt intents and slot types to extract the basic information i.e, city names, dates, some measurement units, etc. Slots contain structured data that can easily be used to perform some logic or generate responses.Įach slot has a type that dictates the type of value the slot would contain. The value of a slot is extracted dynamically at runtime from the user’s query. Slots are the parameters that are defined as part of the intent configuration.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |