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] Add default chat closing tags in Omnichannel departments #16859

Merged
merged 5 commits into from
Mar 19, 2020

Conversation

renatobecker
Copy link
Contributor

@renatobecker renatobecker commented Mar 12, 2020

CLOSES #16191

The linked issue describes the wrong behavior when closing Omnichannel conversation from users(visitors, system, etc..) other than the agent who is assisting the chat, in conversations associated with a department that requires at least one tag when closing the chat.

Screen Shot 2020-03-12 at 11 00 06

Currently, when an agent attempts to close a chat from the web client and the closing process doesn't succeed, they get the following error:

Screen Shot 2020-03-12 at 10 14 28

From the agent's side, everything is working as well as expected, but from other sides, such as the livechat widget or other processes performed on the server-side, it doesn't, because the room isn't closed properly due to the current tag's validation.

So, to fix and improve the flow of closing omnichannel chats, a new(and requested) feature has been added in order to avoid unwanted problems:

  • Now it's possible to set up conversation closing tags per department, which will be automatically assigned to the rooms when closing the omnichannel chats:

Version with pre-configured Tags(A select component is rendered)
Screen Shot 2020-03-12 at 11 17 41

Version with no pre-configured Tags(An input component is rendered)
Screen Shot 2020-03-12 at 00 24 04

This new feature is optional when the Request tag (s) before closing the conversation is false, otherwise, it is a mandatory configuration and validation has been added to ensure the expected configuration.

Screen Shot 2020-03-12 at 10 26 42

So now, the system will continue validating the rooms before closing, but only the agent(web client) will get an error if there is no tag in the room associated with departments that require tags before closing.
If the validation succeeds, the room tags set by the agent will be merged with the default conversation closing tags of the department(if exists), as shown below:

Screen Shot 2020-03-12 at 11 11 15

app/livechat/server/lib/Livechat.js Outdated Show resolved Hide resolved
app/livechat/server/lib/Livechat.js Outdated Show resolved Hide resolved
@rodrigok rodrigok merged commit 0340d56 into develop Mar 19, 2020
@rodrigok rodrigok deleted the omnichannel/improve-omnichannel-closing-chats branch March 19, 2020 21:06
@sampaiodiego sampaiodiego mentioned this pull request Apr 9, 2020
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.

Client's livechat returns an error on close if the department requires a tag
2 participants