botframework-solutions icon indicating copy to clipboard operation
botframework-solutions copied to clipboard

Skill active dialog state is always null

Open Kumar3010 opened this issue 7 years ago • 6 comments

What project is affected?

Skills developed in c# when integrated with VA(c#)

What language is this in?

C#

What happens?

when there is a handoff to the skill from vA. the active dialog in the VA tells only the skill dialog name but not the dialog you are in the skill

What are the steps to reproduce this issue?

provide an utterance of skill integrated to vA. suppose there is a weather dialog in skill which prompts for the location. then in VA active dialog would be "Skill.weatherdialog" and the dialog state is always null in the VA. it should tell that there is a prompt dialog which is open in the skill in the VA(active dialog)

What were you expecting to happen?

the dialog state of the skill should be shown in the VA

Can you share any logs, error output, etc.?

Any screenshots or additional context?

Kumar3010 avatar Oct 28 '19 04:10 Kumar3010

could you please prioritize this and triage. this is very critical feature and every customer needs it

Kumar3010 avatar Oct 29 '19 16:10 Kumar3010

Hi @kumar3010, since the VA and each skill are all separate bots, they maintain their own separate dialog stacks. Because of this, the VA does not have visibility into the dialog stack of the skill. They communicate via API calls, so the stack is not shared between them. The reason you only see the SkillDialog as the active dialog in VA, is because it IS the active dialog in VA. Manipulating the activeDialog id in the VA artificially could have unintended consequences to message processing, so we should not manipulate the activeDialog id manually.

Can you explain a bit more about the scenario you are trying to enable by seeing the active dialog of the skill in the VA? There might be another way we could help you achieve it.

lauren-mills avatar Oct 30 '19 17:10 lauren-mills

thank you @lauren-mills for your reply. we have a use where user can switch language from english to german. we dont want the user to change his language preference in the middle of any dialog flow. user always communicates with VA and VA inturn directs to skills based on utterance. appreciate your help if you can let us know a way to recognise if the user is in between of a dialog (in skill) from VA

Kumar3010 avatar Oct 31 '19 09:10 Kumar3010

hi any update on the scenario which i have mentioned. @lauren-mills

Kumar3010 avatar Nov 05 '19 08:11 Kumar3010

There should never be an instance where the user is talking to a skill, and the skill's dialog stack is empty. Whenever the skill's dialog stack is empty, the skill is ended and the SkillDialog is removed from the VA's dialog stack. So, by that principle, if there is a SkillDialog on the top of the stack, you can assume the user is in the middle of a dialog and should not be able to change languages.

lauren-mills avatar Nov 22 '19 18:11 lauren-mills

Closing due to inactivity. Please reopen as needed.

lauren-mills avatar Dec 02 '19 16:12 lauren-mills