Using the awesome resources provided by Microsoft. Following the documentation at https://docs.microsoft.com/en-us/composer/
- Create Folder somewhere
- Perform https://docs.microsoft.com/en-us/composer/setup-yarn in that folder
- Perform https://docs.microsoft.com/en-us/composer/tutorial/tutorial-create-bot
- Test in Emulator: Pressed Restart Conversation - New User ID: Works fine, responds with: Hi! I’m a friendly bot that can help with the weather. Try saying WEATHER or FORECAST.
- Perform https://docs.microsoft.com/en-us/composer/tutorial/tutorial-add-dialog
- Test in Emulator: Presents ”Let’s check the weather” som response på user input “weather”. Works fine.
- Then create new Trigger with Dialog event and Dialog started and continue with: https://docs.microsoft.com/en-us/composer/how-to-add-qna-to-bot, enter the following in the settings
- Please note that in order to use the Settings values, an extra “=”
has to proceed the id, e.g. “=settings.qna.knowledgebaseid”. Please also not that in order to make this work in Europe, with our
“,” instead of “.” as decimal marker, the Threshold has to be set to “float(‘0.3’)” in order to be evaluated as a float.- Make sure that the settings are accurate according to your QnA Base. Please note that at this point the LUIS fiels are left mostly empty, except for the values prefilled as described in https://docs.microsoft.com/en-us/composer/how-to-add-qna-to-bot
- No LUIS added at this point.
- Restart bot
- Click Test in Emulator
- Press Restart Conversation - New User ID
Now there are three problems:
A. There is no longer any greeting phrase.
B. The first response from QnA maker results in a “The given key ‘stepIndex’ was not present in the dictionary.”. Then after this the QnA maker part works, but issue A and C are still present.
C. The weather regex does only trigger once if it is the first entry only, then at the second attempt or after entering something else, it fails to trigger.
Expected behavior:
- When Press Restart Conversation - New User ID, the bot should greet the user.
- When the weather regex is the best choice it should trigger
- The text “The given key ‘stepIndex’ was not present in the dictionary” should not be presented as the first response, instead the right reply should be presented based on the intent provided.