From my understanding, it currently is not possible to hide the livechat widget when no agent is available. I am aware of the offline functionality, but I am not interested in that. My use case would be to indeed only show the live chat on the website, when (and only when) an agent is available.
Issue seems to be https://github.com/RocketChat/Rocket.Chat/issues/16264 but it has not seen any action so far.
Any info on this? ignore_post_needs_more_characters
Does [FIX] Checks the list of agents if at least one is online by tiagoevanp · Pull Request #22584 · RocketChat/Rocket.Chat · GitHub allow to hide livechat from website if no agent is available? It would be very useful to have descriptive PR messages. Currently the PR in question has no info at all which makes it very hard to understand the scope of the PR.
I think it must be you asking this on open.rocket.chat as well?
This is our workaround - it is perfectly possibly to do this:
opened 03:35PM - 16 Jan 20 UTC
closed 12:03PM - 10 Nov 20 UTC
feat: livechat
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.
This issue is still left open for the product managers:
opened 10:33AM - 08 Apr 21 UTC
**Currently**
Livechat allows shows. When no agent available it shows as offlin… e.
**Expected**
Do not show the chat at all when no agent is available and only ever show livechat when agent is available.
Related: #332, https://github.com/RocketChat/feature-requests/issues/417
1 Like