Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Virtual assistant User Greet message is not triggering in webchat iframe #3664

Closed
SSanjeevi opened this issue Sep 23, 2020 · 7 comments
Closed
Assignees
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. customer-replied-to Indicates that the team has replied to the issue reported by the customer. Do not delete. customer-reported Issue is created by anyone that is not a collaborator in the repository. Needs Triage Needs to be triaged for assignment Type: Bug Something isn't working

Comments

@SSanjeevi
Copy link

What project is affected?

Virtual Assistant

What language is this in?

C#

What happens?

Virtual assistant User Greet message is not triggering in webchat iframe.

What are the steps to reproduce this issue?

Deploy the basic virtual assistant bot and use iframe as the channel in website, on loading of the iframe welcome message is not triggerred.

What were you expecting to happen?

Greet Message should show on user is added.

Can you share any logs, error output, etc.?

no message is shown till user types in any message.

Any screenshots or additional context?

@SSanjeevi SSanjeevi added Needs Triage Needs to be triaged for assignment Type: Bug Something isn't working labels Sep 23, 2020
@SSanjeevi
Copy link
Author

This issue seems to have answer for old version of bot framework: microsoft/botframework-sdk#2098, but for latest version of virtual assistant - i see the implementation already there on MemberAdded method - but still it's not triggering.

@Batta32
Copy link
Collaborator

Batta32 commented Sep 23, 2020

Thanks @SSanjeevi for reporting this issue. We came up with some questions to understand your environment:

  1. What do you mean with Webchat iframe channel? Is the BotFramework-WebChat?
  2. Are you using the C# Virtual Assistant Sample?
  3. Which version of the BF SDK are you using?
  4. Have you deployed the Virtual Assistant using deploy.ps1?

We will be reviewing this issue and as soon as we have any update, we will back to you 😊.

@SSanjeevi
Copy link
Author

SSanjeevi commented Sep 23, 2020

  1. In bot channel registration iframe embed in website channel.
  2. Yes C# Virtual Assistant.
  3. BF. 4.7 i think.. the one which comes with 1.0 of Virtual Assistant
  4. yes deployed

@tdurnford tdurnford added Bot Services Required for internal Azure reporting. Do not delete. Do not change color. customer-reported Issue is created by anyone that is not a collaborator in the repository. labels Sep 23, 2020
@ninggao ninggao added customer-replied-to Indicates that the team has replied to the issue reported by the customer. Do not delete. and removed customer-replied-to Indicates that the team has replied to the issue reported by the customer. Do not delete. labels Sep 23, 2020
@lzc850612
Copy link
Contributor

@Batta32 do you have any update for this issue? Thanks.

@Batta32
Copy link
Collaborator

Batta32 commented Oct 5, 2020

@lzc850612 - we are going to take this issue this week! As soon as we have any update we will post it here 😊.

@VictorGrycuk
Copy link
Contributor

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:

  1. Event for the bot
  2. Event for the user: one that triggers the welcome card, however, the webchat channel does not send this even until the user sends a message first

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.

@SSanjeevi
Copy link
Author

Thanks for the link and suggestion that worked for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. customer-replied-to Indicates that the team has replied to the issue reported by the customer. Do not delete. customer-reported Issue is created by anyone that is not a collaborator in the repository. Needs Triage Needs to be triaged for assignment Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants