Bot FrameWork V4 , Endless Dialog

Asked by At

I wanted to create a dialog where user will be giving inputs and I need to do a API call based on user input , this have to go on infinitely unless user sends cancel

When i try step.ReplaceDialog("MyDialog") and give the same dialog id as current dialog i am getting forbidden error

I tried this

step.ActiveDialog.State["stepIndex"] = (int)step.ActiveDialog.State["stepIndex"] - 1;
return new DialogTurnResult(DialogTurnStatus.Waiting,result);

This is not throwing any error, but the chat order in webchat is getting changed (That is in web chat Answer is coming first and then userquery is coming.

Is there a proper documented way to achieve what i am trying?

0 Answers