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

[NEW][ENTERPRISE] Omnichannel Last-Chatted Agent Preferred option #17666

Merged
merged 18 commits into from
May 21, 2020

Conversation

renatobecker
Copy link
Contributor

@renatobecker renatobecker commented May 16, 2020

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 the Max. Number of Concurrent Chats per Agentfeature. It happens when the Max. 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 the Inquiry is the next to be served, the system will check if the Inquiry has a last-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.

@renatobecker renatobecker added this to the 3.3.0 milestone May 16, 2020
@renatobecker renatobecker marked this pull request as ready for review May 18, 2020 17:19
@RocketChat RocketChat deleted a comment from lgtm-com bot May 18, 2020
@renatobecker renatobecker changed the title [NEW] [ENTERPRISE] Omnichannel Last-Chatted Agent Preferred options [NEW] [ENTERPRISE] Omnichannel Last-Chatted Agent Preferred option May 20, 2020
@sampaiodiego sampaiodiego self-assigned this May 20, 2020
rodrigok
rodrigok previously approved these changes May 20, 2020
Copy link
Member

@rodrigok rodrigok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rodrigok rodrigok changed the title [NEW] [ENTERPRISE] Omnichannel Last-Chatted Agent Preferred option [NEW][ENTERPRISE] Omnichannel Last-Chatted Agent Preferred option May 21, 2020
@sampaiodiego sampaiodiego merged commit 9cde69f into develop May 21, 2020
@sampaiodiego sampaiodiego deleted the omnichannel/last-chatted-agent-preferred branch May 21, 2020 03:45
This was referenced May 28, 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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants