I want to create an bot which has to prompt the user for text. if the information provided by the user is general and not specific. for ex: if we ask the bot : how many alphabets is in the language? then the bot should ask : in what language? How to achieve this?
1 Answers
0
votes
To follow along with the example you provided:
- Create an LUIS intent named, for example, "Determine Language Alphabet"
- Train the intent using a phrase such as "How many alphabets are in [language]", where [language] is a word like English or Japanese that you've wrapped in an entity name "language"
- In your code, take the Luis Result and try to find a "language" entity. If it's not found, prompt the user to enter a language/repeat the query with a language
This process will help you get started with understanding how Luis intents and entities can be used to help you better interact with users.