Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OnMembersAddedAsync method is not getting triggered when someone is added to a chat in the Web Chat channel #2601

Closed
getangar opened this issue Nov 14, 2019 · 1 comment
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. customer-replied-to Required for internal reporting. Do not delete. customer-reported Required for internal Azure reporting. Do not delete. question Further information is requested. Stack Overflow candidate

Comments

@getangar
Copy link

Screenshots

Version

4.6.2

Describe the bug

I followed the MS Tutorial: https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/tutorial-voice-enable-your-bot-speech-sdk and what I have seen is that while in the Web Chat Test & Bot Framework Emulator everything works as expected, once published to Azure, the OnMembersAddedAsync method is not triggered when someone is added to a chat in the Web Chat channel

To Reproduce

Steps to reproduce the behavior:

  1. In VS 2019 create a new EchoBot "sample"
  2. Compile and test it with Bot Framework Emulator
  3. Publish the project in Azure as described here: https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/tutorial-voice-enable-your-bot-speech-sdk
  4. Test it with Web Chat Test => OK
  5. Create an HTML file (or if you prefer a .NET/.NET Core web app) and add the iFrame to reach the Chat:
<iframe id="iFrameChat" style="height:480px; width:402px" src="https://webchat.botframework.com/embed/NTTDATABot-BotRegistration?s=YOUR_SECRET_HERE"></iframe>
  1. Publish the web app in Azure if you want (but it's not necessary)
  2. Open the HTML in a Browser, the chat is loaded but nothing happens until you type something (the OnMembersAddedAsync is not triggered)
  3. One you type something and press enter, the OnMessageActivityAsync is triggered producing an unexpected behavior

Expected behavior

You expect that once you reach the Bot App, the first method triggered of your project is OnMembersAddedAsync (where I put the welcome message btw).

Additional context

[Bug]

@getangar getangar added Bot Services Required for internal Azure reporting. Do not delete. Do not change color. bug Indicates an unexpected problem or an unintended behavior. Pending customer-reported Required for internal Azure reporting. Do not delete. labels Nov 14, 2019
@tdurnford
Copy link
Contributor

@getangar Please take a look at #2120 (comment) for details on how to properly trigger a Welcome Message in Web Chat.

@tdurnford tdurnford added the customer-replied-to Required for internal reporting. Do not delete. label Nov 14, 2019
@corinagum corinagum added question Further information is requested. Stack Overflow candidate and removed bug Indicates an unexpected problem or an unintended behavior. Pending labels Nov 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. customer-replied-to Required for internal reporting. Do not delete. customer-reported Required for internal Azure reporting. Do not delete. question Further information is requested. Stack Overflow candidate
Projects
None yet
Development

No branches or pull requests

3 participants