New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] prompts.choice is not working correctly with API.ai #2987
Comments
@nwhitmont alright, closing |
Reopened - no response on stackoverflow. |
Can you provide your code so we can see it? |
Sure, the recognizer looks like: |
Just to clarify, the user's response to the prompt is unrecognized because of the API.AI recognizers activating and returning matched intents? How are you plugging |
@stevengum97 yes, I can see there is a matched intent (without any action attached) |
@amitbend it looks like it's similar to #2839 except you're wanting the recognizers to not fire/return an intent? You're aiming to stay inside of your current prompt and move through it without any interruptions, if I understand correctly. To handle this using the regular LuisRecognizer, I would use I recommend taking the source code from there and creating a custom recognizer/adding to the instantiated api-ai-recognizers a similar method. For the case that enables/disables the recognizer, a check on the dialogStack would work well. Check if its You could also create a custom prompt; this way you should be able to also ignore results from API.ai. Since the issue is regarding api-ai-recognizer (third-party) and a solution exists for this case ( |
@stevengum97 thanks for the informative answer. |
hi @stevengum can u help me in how to disable the luisRecognizer using .onEnabled() . i am not finding the solution code anywhere. Would be really helpful |
Hi @vishmonne The example @stevengum shared can be found here: https://github.com/Microsoft/BotBuilder-v3/blob/master/Node/examples/feature-onEnabled/app.js Another example can be found here: #2670 (comment) You can also use .onFilter, as explained here: #3530 (comment) The Microsoft Bot Framework team prefers that how to questions be submitted on Stack Overflow so the entire community can benefit from the answer. |
System Information (Required)
Issue Description
I recently added NLU to my messenger bot using API.ai. I have a choice prompt in my bot (
prompts.choice()
), with buttonsbuilder.ListStyle['button']
.I noticed that few of the choices are not working - and
retryPrompt
is invoked, and it happens because they are being matched to an intent from API.ai.I'm looking for a solution that will isolate prompts from the NLU model or a different workaround.
P.S. I'm using
IntentRecognizerSet
with 2 API.ai recognizers, maybe I can add the default recognizer as the first item in the set? (not sure how)I tried to debug the library code and it seems like
onRecognize
function onPromptChoice
detecting the right choice, and the issue comes somewhere later.The text was updated successfully, but these errors were encountered: