-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Suggested Actions vanish after sending an event #2124
Comments
Taking a look at the Bot Framework schema, there's nothing to indicate whether the client should or should not make a suggested action disappear if the BOT sends another message after suggested actions is displayed. However, suggested actions are sent with and tied to an activity, and I don't believe it would make sense or be easy to implement continual showing of the suggested actions when a new activity has come in via the send box. If anything, this would mean removing the suggested actions component and instead of displaying it in the send box, associating it with the activity that it came in with. In such case I believe a regular adaptive or Hero card is sufficient, and changes in this manner would defeat the original intent of suggested actions. According to this sample
To me, associating the suggested action with the activity it comes with (and thereby moving it up the transcript as more messages come in) defeats the purpose of preventing stale action items that the user might click when they are no longer relevant. TLDR: I think that another activity coming in, whether from the bot or the user, renders the suggested action 'stale'. @EricDahlvang, @cwhitten, @compulim, do you have other thoughts? |
I think @artemvalmus has the point. Event is designed for non-visual and/or non-interactive activities, e.g. telemetry, idle check, etc. And this is not an intention from user, thus, it should not dismiss suggested actions. I believe this is same for the bot too. Looking at The code will clear suggested actions only if the user is posting an activity of type On the other side, in @artemvalmus can you check if the suggested actions is caused by the bot, instead of the user? I think it's fair to update our code to not clearing suggested actions if the last message from the bot is not of type |
@compulim Thank you for taking care of this. Can you maybe tell us when we can expect this change? |
@hhasenauer currently there's no date associated with this work item. It's in our Backlog. Customers who are looking for this change should add their +1 here. :) |
Also have the same issue. |
Loading this up for discussion/prioritization in our upcoming milestone |
Didn't make the R13 list but we'll keep this on front-burner. |
Version
"botframework-webchat": "^4.3.0"
Describe the bug
After sending an event to the bot the suggested actions from the previous conversation, loaded from DirectLine using the conversation ID and WebChat token, disappear. So all the chat history is loaded, including the last suggested actions. But when I send a WEB_CHAT/SEND_EVENT activity to the bot the buttons vanish. This behavior is clear with sending a user message, but is there a point in hiding them after the event which may not be connected with the user actions?
The event is sent as follows:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Suggested actions from the previous conversation, loaded from DirectLine using the conversation ID and WebChat token, are displayed after sending a WEB_CHAT/SEND_EVENT activity to the bot.
[Bug]
The text was updated successfully, but these errors were encountered: