Skip to content
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

fixes #506 - bot prompts 'What is the question?' when using ElicitResponse #507

Merged
merged 1 commit into from
Oct 24, 2022

Conversation

rstrahan
Copy link
Contributor

@rstrahan rstrahan commented Oct 13, 2022

Issue #, if available:
#506

Description of changes:

(1) Modify check for isElicitResponse to provide more robust detection of responsebot enablement using qnabotcontext session attribute. Previous mothod relied on response.result object which was not present during responsebot slot prompting.

(2) Modify lex response to use DialogAction ElicitIntent instead of ElicitSlot when a responsebot is enabled.

The problem reported in #506 is related to the fact that when response bots were active QnABot returned lex reponse ElicitSlot with SlotToElicit set to qnaslot, instead of the default intent 'Fullfilled' response. This was done to support Connect integration to avoid the flow leaving the GetCustomerInput block during ElicitResponse interactions.
This used to work, possibly because of several factors including (i) the qnaslot slot used to have significantly more sample values (default utterances) that we removed in v5.2.0, since these frequently cause customer confusion are should (in theory) be no longer necessary since adding FALLBACK intent support. (ii) updated models in Lex are stricter in confidence threshold when utterance doesn't resemble a trained slottype value.
By using DialogAction ElicitIntent instead, we achieve the same bahavior for Connect integration, but avoid explictly forcing Lex to try to fill the qnaslot, allowing it instead to match the FALLBACK intent on the main bot and allowing the users response to sucessfully pass through to the ELicitResponse bot.

I tested it with both Web UI, and with Connect to make sure the chaining demo worked in both cases without problematic prompting.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link
Member

@tabdunabi tabdunabi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@tabdunabi tabdunabi merged commit 8b0df4e into develop Oct 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants