-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
[NEW][ENTERPRISE] Omnichannel Last-Chatted Agent Preferred option #17666
Merged
sampaiodiego
merged 18 commits into
develop
from
omnichannel/last-chatted-agent-preferred
May 21, 2020
Merged
[NEW][ENTERPRISE] Omnichannel Last-Chatted Agent Preferred option #17666
sampaiodiego
merged 18 commits into
develop
from
omnichannel/last-chatted-agent-preferred
May 21, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…thub.com/RocketChat/Rocket.Chat into omnichannel/last-chatted-agent-preferred
renatobecker
changed the title
[NEW] [ENTERPRISE] Omnichannel Last-Chatted Agent Preferred options
[NEW] [ENTERPRISE] Omnichannel Last-Chatted Agent Preferred option
May 20, 2020
sampaiodiego
requested changes
May 20, 2020
ee/app/livechat-enterprise/server/hooks/checkDefaultAgentOnNewRoom.js
Outdated
Show resolved
Hide resolved
ee/app/livechat-enterprise/server/hooks/checkDefaultAgentOnNewRoom.js
Outdated
Show resolved
Hide resolved
ee/app/livechat-enterprise/server/hooks/onMaxNumberSimultaneousChatsReached.js
Outdated
Show resolved
Hide resolved
ee/app/livechat-enterprise/server/hooks/saveDefaultAgentAfterTakeInquiry.js
Outdated
Show resolved
Hide resolved
rodrigok
previously approved these changes
May 20, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just need to pay attention to this https://github.com/RocketChat/Rocket.Chat/pull/17666/files#r428311585
sampaiodiego
requested changes
May 20, 2020
ee/app/livechat-enterprise/server/hooks/checkDefaultAgentOnNewRoom.js
Outdated
Show resolved
Hide resolved
ee/app/livechat-enterprise/server/hooks/checkDefaultAgentOnNewRoom.js
Outdated
Show resolved
Hide resolved
ee/app/livechat-enterprise/server/hooks/onMaxNumberSimultaneousChatsReached.js
Outdated
Show resolved
Hide resolved
rodrigok
changed the title
[NEW] [ENTERPRISE] Omnichannel Last-Chatted Agent Preferred option
[NEW][ENTERPRISE] Omnichannel Last-Chatted Agent Preferred option
May 21, 2020
sampaiodiego
approved these changes
May 21, 2020
gabriellsh
added a commit
that referenced
this pull request
May 29, 2020
…apps_rewrite * 'develop' of github.com:RocketChat/Rocket.Chat: (30 commits) Regression: Fix Unread bar design (#17750) Regression: Adjusting spaces between OAuth login buttons (#17745) Improved thread margins for clarity Regression: Scroll on admin user info (#17711) Regression: Removed status border on mentions list (#17741) Regression: Force unread-rooms bar to appears over the room list (#17728) [NEW][APPS-ENGINE] Essentials mechanism (#17656) Regression: Fix error preventing creation of group DMs (#17726) [FIX] SAML IDP initiated logout error (#17482) Regression: Threads list was fetching all threads (#17716) Regression: Add missing return to afterSaveMessage callbacks (#17715) [FIX] Missing dropdown to select custom status color on user's profile (#16537) [FIX] Password reset/change accepting current password as new password (#16331) [NEW][ENTERPRISE] Support Omnichannel conversations auditing (#17692) Upgrade Livechat Widget version to 1.5.0 (#17710) [FIX] Can't click on room's actions menu of sidebar list when in search mode (#16548) [NEW][ENTERPRISE] Support for custom Livechat registration form fields (#17581) Update Fuselage version (#17708) [NEW][ENTERPRISE] Omnichannel Last-Chatted Agent Preferred option (#17666) Regression: Status presence color (#17707) ...
ggazzo
added a commit
that referenced
this pull request
Jun 3, 2020
…/new-threads* 'develop' of github.com:RocketChat/Rocket.Chat: (54 commits) Submit a payload to the release service when a release happens (#17775) Regression: Fix Unread bar design (#17750) Regression: Adjusting spaces between OAuth login buttons (#17745) Improved thread margins for clarity Regression: Scroll on admin user info (#17711) Regression: Removed status border on mentions list (#17741) Regression: Force unread-rooms bar to appears over the room list (#17728) [NEW][APPS-ENGINE] Essentials mechanism (#17656) Regression: Fix error preventing creation of group DMs (#17726) [FIX] SAML IDP initiated logout error (#17482) Regression: Threads list was fetching all threads (#17716) Regression: Add missing return to afterSaveMessage callbacks (#17715) [FIX] Missing dropdown to select custom status color on user's profile (#16537) [FIX] Password reset/change accepting current password as new password (#16331) [NEW][ENTERPRISE] Support Omnichannel conversations auditing (#17692) Upgrade Livechat Widget version to 1.5.0 (#17710) [FIX] Can't click on room's actions menu of sidebar list when in search mode (#16548) [NEW][ENTERPRISE] Support for custom Livechat registration form fields (#17581) Update Fuselage version (#17708) [NEW][ENTERPRISE] Omnichannel Last-Chatted Agent Preferred option (#17666) ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The purpose of this PR is to add a new functionally to the Omnichannel routing system when running
Round-Robin
based algorithms:Last-Chatted Agent Preferred
option.If activated, this feature will store the last agent that assisted each Omnichannel visitor when a conversation is taken. So, when a visitor returns(it works with any entry point, Livechat, Facebook, REST API, and so on) and starts a new chat, the routing system checks:
1 - The visitor object for any stored agent that the visitor has previously talked to;
2 - If a previous agent is not found, the system will try to find a previous conversation of the same visitor. If a room is found, the system will get the previous agent from the room;
After this process, if an agent has been found, the system will check the agent's availability to assist the new chat. If it's not available, then the routing system will get the next available agent in the queue.
Enterprise:
On the
Enterprise edition
there is a chance that the conversation needs to wait in the queue due to theMax. Number of Concurrent Chats per Agent
feature. It happens when theMax. number of simultaneous chats per agent
is reached, then the visitor will need to wait in the queue until an agent gets available again.In this case, the Visitor's last agent will be store into the
Inquiry
. Then, when theInquiry
is the next to be served, the system will check if theInquiry
has alast-agent preferred
and then will try to route the conversation to the same agent. Otherwise, the routing system will get the next available agent in the queue.