Virtual Assistant
C#
Virtual assistant User Greet message is not triggering in webchat iframe.
Deploy the basic virtual assistant bot and use iframe as the channel in website, on loading of the iframe welcome message is not triggerred.
Greet Message should show on user is added.
no message is shown till user types in any message.
This issue seems to have answer for old version of bot framework: https://github.com/microsoft/botframework-sdk/issues/2098, but for latest version of virtual assistant - i see the implementation already there on MemberAdded method - but still it's not triggering.
Thanks @SSanjeevi for reporting this issue. We came up with some questions to understand your environment:
Webchat iframe channel? Is the BotFramework-WebChat?deploy.ps1?We will be reviewing this issue and as soon as we have any update, we will back to you 馃槉.
@Batta32 do you have any update for this issue? Thanks.
@lzc850612 - we are going to take this issue this week! As soon as we have any update we will post it here 馃槉.
Hi @SSanjeevi, we were able to reproduce this issue, however, we found that the behaviour is not related to the bot themselves but to how the webchat channel works.
We found the issue microsoft/BotFramework-WebChat#2625, which leads to a comment by TJ Durnford. TJ explains that most channels send two events when a conversation is started:
TJ describes that one workaround is to send a backchannel event when the direct channel connection is detected, therefore simulating the welcome event. Please check his comment for code snippets and further info.
As discussed with @peterinnesmsft, this is related to the BotFramework-WebChat repository.
Thanks for the link and suggestion that worked for me.