I really like this idea and kind of think that bots should you a graph or a state machine rather than a stack. However, using _stack.Call(new dialog) in this example, keeps adding to the stack and things keep piling up.
For example, I added
await context.PostAsync($"[ScorableCheckBalanceDialog] Which account - Current or Savings? (Frames: {context.Frames.Count})");
to ScorableCheckBalanceDialog.cs
and
await context.PostAsync($"[ScorableMakePaymentDialog] Who would you like to pay? (Frames: {context.Frames.Count})");
to ScorableMakePaymentDialog.cs
and after saying "make payment" and "check balance" repeatedly, the stack keeps growing and growing and never gets unwinded.
I'll try to see if there's a way but it would be really nice to suspend the current dialog when the scorable gets triggered (or resume if the user was in an active dialog) rather than keeping adding to the stack.
First of all, thank you for your video and coding example on building flexible conversations using Scorable dialogs. It is extremely helpful, and provides one's bot with an extra level of intelligence.
I started implementing scorable dialogs in our bot, and it works pretty well. However, on resume, I would like to re-prompt the user with the last bot prompt before the dialog was interrupted by the IScorable, without expecting the user to provide an input first.
Could you provide me with some advice in how I can achieve this?