Botframework-sdk: [Question] Multi dialogue .NET bot code example?

Created on 8 Jun 2017  ·  4Comments  ·  Source: microsoft/botframework-sdk

Looking for an e.g of multi dialogue sample for .NET bot. The samples currently I have seen is with two dialogues..RootDialogue calling another ChildDialgue. I have a scenario where I have to call sub Child Dialogue form the ChildDilague, but its failing saying that Stack in empty. using Context.Forwrad() for calling the dialgues from RootDialague and then to ChildDialgue and then to SubChildDialgue.

All 4 comments

Post your code.

But in general you should do something like this:

RootDialog: context.forward (child....) and then don't call context.wait.
ChildDialog: context.forward (subchild....) and then don't call context.wait.
SubChild: do what you need, and use context.wait to stay on subdialog, or .done to exit and return to child.

Hello,

So I am not sure what the difference is, but I use context.Call to call the SubChildDialogue. This works fine

Regards Michael

Sent from Mail for Windows 10

From: sowmyan soman
Sent: 08 June 2017 01:45
To: Microsoft/BotBuilder
Cc: Subscribed
Subject: [Microsoft/BotBuilder] E.g. for multi dialogue .NET bot (#2901)

Looking for an e.g of multi dialogue sample for .NET bot. The samples currently I have seen is with two dialogues..RootDialogue calling another ChildDialgue. I have a scenario where I have to call sub Child Dialogue form the ChildDilague, but its failing saying that Stack in empty. using Context.Forwrad() for calling the dialgues from RootDialague and then to ChildDialgue and then to SubChildDialgue.

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

the difference between call and forward is that Call open a new dialog, and wait for the next message.
Forward, instead open a new dialog and pass to it the current message (it is one of the parameter required) so that the dialog process this one.

Thank you so much, let me try it out in my sample code and I will post it if the concepts is not working. Your inputs cleared the doubts I had 👍

Was this page helpful?
0 / 5 - 0 ratings