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

Notification banner that new reply came in #1748

Open
nicholsk18 opened this issue Nov 8, 2023 · 3 comments
Open

Notification banner that new reply came in #1748

nicholsk18 opened this issue Nov 8, 2023 · 3 comments

Comments

@nicholsk18
Copy link
Contributor

Is there a way we can have a banner pop up if a new reply comes in while staff is working on a ticket or composing a reply already? That way they can read updated information before sending their reply?

@jstanden
Copy link
Owner

jstanden commented Nov 9, 2023

Hi @nicholsk18!

Prior to automations in 10.x, there was a concept of "proactive bot behaviors" where a bot could notify a worker about something without them having to initiate. It was similar to notifications but with interactions.

There currently isn't a way to proactively start an automation interaction, but it's something we're implementing.

What you're saying makes perfect sense. Even though a validator can check for a duplication of effort before or after composing a message, nothing catches duplicated effort during a reply.

My ideal solution here would be proactive interactions for automations, so the capability could be used in many different scenarios (including this one). An automation on the mail.sent event could check if there are other active drafts on the same record, and send them an interactive notification while they're still replying.

Websockets would be the most efficient way to check for proactive interactions. That could also fall-back to just polling the server every 30 seconds or so (like auto-saving drafts).

Related to #482

@beatbesmer
Copy link
Contributor

beatbesmer commented Nov 11, 2023 via email

@nicholsk18
Copy link
Contributor Author

nicholsk18 commented Nov 11, 2023

Thanks for the suggestion! So anything with drafts won't work for our specific issue. In our case, we talking about customers submitting tickets. In our case, they don't use Cerb directly so no drafts will ever be saved on their behalf. What our staff wants is, while they are replying to a ticket, if a reply from a customer comes in, to show a banner or something informing them of this. Since notifications don't show up when new actions happen before a refresh, and widgets don't auto refresh I assumed a bit that this is not possible yet in cerb. But if there is a way to refresh all of those without a staff taking any action do let me know, because that's what our staff wants :)

@jstanden jstanden modified the milestones: 10.5, Backlog Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants