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

Events for onAgentsAvailable and onAgentsUnavailable #16264

Closed
cristigodri opened this issue Jan 16, 2020 · 14 comments
Closed

Events for onAgentsAvailable and onAgentsUnavailable #16264

cristigodri opened this issue Jan 16, 2020 · 14 comments

Comments

@cristigodri
Copy link

Would it be possible to implement the following events for the livechat API ?

onAgentsAvailable - fires when online agents are detected
onAgentsUnavailable - fires when no online agents are detected

They could be useful for example to have a different look and functionality on a "help button" if there is at least one agent available.

I know there is the onAgentStatusChange event, but it seems to only fire for agents that are assigned to an existing chat.

@foss-
Copy link

foss- commented Apr 19, 2020

Related #13583

#13583 covered On agents available event and On agents unavailable event although those two items didn't make it in time for merge.

Is it correct to assume that, if those two items would be supported by the API, it would be possible to only show livechat in case a support agent is available and if that is not the case, not show the livechat at all?

@github-actions
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stat: stale Stale issues will be automatically closed if no activity label Jul 12, 2020
@foss-
Copy link

foss- commented Jul 12, 2020

Not sure why this should be closed. It is an important missing feature.

@github-actions github-actions bot removed the stat: stale Stale issues will be automatically closed if no activity label Jul 12, 2020
@rodrigok
Copy link
Member

@renatobecker what's your opinion?

@renatobecker
Copy link
Contributor

@renatobecker what's your opinion?

@rodrigok It makes sense, this is an old request we get from the community, but we need to plan the better way to provide those API methods to the widget since we can have thousands of agents.
I'll bring it up at our next Omnichannel meeting.

@foss-
Copy link

foss- commented Jul 14, 2020

Just to be clear: from my limited understanding it currently is not possible to have RocketChat Live Widget only show on the website when an agent is available. Instead it switches to offline mode. While this may work for some use cases it certainly doesn't for everybody. Having an option to only show the widget when a support agent is available is a legit use-case. Having the two options discussed in this request here would allow for that use-case, if I am not mistaken.

@renatobecker
Copy link
Contributor

Just to be clear: from my limited understanding it currently is not possible to have RocketChat Live Widget only show on the website when an agent is available. Instead it switches to offline mode. While this may work for some use cases it certainly doesn't for everybody. Having an option to only show the widget when a support agent is available is a legit use-case. Having the two options discussed in this request here would allow for that use-case, if I am not mistaken.

Actually you can control it from your side if you want, you just need to call the Livechat config endpoint which provides the status of the service(online/offline) and then show/hide the widget.
Obviously, we're talking about having this feature natively, but I want to let you know you can do a workaround if you want.

@foss-
Copy link

foss- commented Jul 14, 2020

@renatobecker Of course thank you for pointing out the workaround for the status quo.

The ideal solution form a user perspective would be, to have the chat behave as intended automatically i.e. agent available = show chat no agent available = hide chat without any further user or admin interaction.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 7, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stat: stale Stale issues will be automatically closed if no activity label Oct 7, 2020
@foss-
Copy link

foss- commented Oct 7, 2020

Please don't close valid issues.

@github-actions github-actions bot removed the stat: stale Stale issues will be automatically closed if no activity label Oct 7, 2020
@damian-centrone
Copy link

This is working fine, there's a message displayed when no agent is available, and when it does, you can see the agent.

@foss-
Copy link

foss- commented Nov 10, 2020

@damian-centrone thanks for responding. Could you explain how it is possible to automatically hide the chat when no agent is available please?

@damian-centrone
Copy link

damian-centrone commented Nov 10, 2020

The actual behaviour is showing the chat as inactive (grey) and if you click on that, you can leave an offline message, which I believe is a good practice. Hide the chat when no agent is available would be a new feature to discuss, maybe in another ticket pointing to https://github.com/RocketChat/feature-requests/issues

greets!

@foss-
Copy link

foss- commented Nov 10, 2020

I am aware of the offline mode, but it is not what I am requesting. Have filed Feature Request #417.

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

7 participants