0

I have two LUIS dialogs created using c# bot framework. I am unable to switch to another LUIS dialog once the language changes

In the closing intent I am using postAsync method to post the msg

After that if I don't use context.wait(this.messagetecieived) , dialog switches but it throws error.

If I use context.wait it will goes to infinite loop and it never ends the dialog

I tried using context.done. but no use.

Please help me

Ezequiel Jadib
  • 14,767
  • 2
  • 38
  • 43
Laks
  • 93
  • 1
  • 7

1 Answers1

1

To move to different dialogs you have to use context.forward or context.call. Please refer the sample link which shows how to switch between dialogs.

Satheesh
  • 892
  • 2
  • 16
  • 38
  • here the issue is, i have two languages services. based on the language i am forwarding it to specific dialog. For ex. If the service recognizes language as English, it will forward it EnglishDialog. After if the input is French langauge, it recognizes language, but it does not load FrenchDialog, instead it loads the same EnglishDialog – Laks Mar 22 '17 at 09:40
  • If you move or forwarded your context to one child dialog give context.Done to exit from that particular child dialog. – Satheesh Mar 23 '17 at 13:34