WaterFall Dialog Flow works in Emulator but not in WebChat or Teams
Github issues for C# /JS / Java/ Python should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.
Sample information
- Sample type: [\samples]
- Sample language: [python]
- Sample name: 43: complex-dialog
Describe the bug
I built my bot based on the samples BotBuilder-Samples/samples/python at main · microsoft/BotBuilder-Samples (github.com). For waterfall-driven dialog (sample 43 complex-dialog), in Emulator, the bot's waterfall dialog works fine and all dialog flows from start to finish. However, after deploying to Azure Portal and tested in Web chat, the flow of conversation is messed up and bot is not able to follow scripted dialog. Specifically, in a 3-step waterfall dialog, after entering response for question, bot is supposed to move on to step 2 and prompt next question, but it sometimes reprompts the same question, or exit the current dialog to the main dialog, then later the show again the missing step of the previous inner dialog. Behaviors are erratic.
To Reproduce
Steps to reproduce the behavior:
- Publish the sample 43 to Portal Azure with preset environments
- Open the bot to "Test in Web Chat"
Expected behavior
Expect bot to follow steps of waterfall dialog from start to finish like it did in Emulator Step 1: name Step 2: age if age >= 25: prompt for 2 companies choices then end dialog Step 3: Summary and end dialog
Screenshots
Bot keeps asking for "name" after user already enters name

Bot is supposed to register the 2nd company name and end the dialog but it ends the dialog prematurely and saved no companies.

Additional context
Add any other context about the problem here.
Hey @Incedendo,
Looks like I'm not able to reproduce this error using fresh python sample 43.complex-dialog tested in WebChat.
Note: I used ngrok to tunnel localhost to Azure bot Messaging endpoint.

- Have you attempted to use ngrok to look for error traces in the console?
- Are you experiencing this behavior only after deploying the bot to Azure?
Spoke with @Incedendo offline. Looks like this issue is happening only after deployed sample 43.complex-dialog to Azure.
Investigating further...
@Incedendo I'm attempting to deploy and publish to Azure using a new app service, from scratch. I will let you know of any updates.
Thanks.
Hi @Incedendo,
Publishing C# and JS works as expected using the latest az cli (2.39.0). I cannot seem to publish python bot using the latest or given versions of az cli in the docs.
Using same exact publishing steps mentioned here that worked for C# and JS does not seem to work for python bots.
Thank you for your patience @Incedendo, we are looking into this and will let you know of any updates.
Hi @Incedendo
I was not able to reproduce this anymore after the updated publishing docs.
Could you please try to publish the bot from docs here: https://docs.microsoft.com/en-us/azure/bot-service/provision-and-publish-a-bot
Doc for this issue has been updated https://docs.microsoft.com/en-us/azure/bot-service/provision-and-publish-a-bot