- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2024 04:21 AM
Our HR agents have been using Connect Support for years to facilitate chat support for our employees. In Connect Support, when a chat was promoted to a case, the case number was automatically sent to the employee in the chat.
We're now migrating to HR Agent Workspace and Agent Chat. Agent Chat does not automatically send the case number to the employee when an interaction is promoted to a case. Is there a way in which we can automatically inject a chat message into the conversation that shares the case number with the employee on behalf of the HR agent?
Solved! Go to Solution.
- Labels:
-
Agent Chat
-
Agent Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2024 12:01 AM
I found a way to do this by creating a business rule on the interaction related record table (interaction_related_record). Upon insert of the related record, it sends a message to the open conversation with the HR case number:
(function executeRule(current, previous /*null when async*/) {
var interaction = current.interaction;
var conversation = sn_connect.Conversation.get(interaction.channel_metadata_document, interaction.channel_metadata_table);
var message = 'Case ' + current.task.number + ' has been created';
conversation.sendMessage({
body: message,
field: 'comments'
});
})(current, previous);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2024 12:01 AM
I found a way to do this by creating a business rule on the interaction related record table (interaction_related_record). Upon insert of the related record, it sends a message to the open conversation with the HR case number:
(function executeRule(current, previous /*null when async*/) {
var interaction = current.interaction;
var conversation = sn_connect.Conversation.get(interaction.channel_metadata_document, interaction.channel_metadata_table);
var message = 'Case ' + current.task.number + ' has been created';
conversation.sendMessage({
body: message,
field: 'comments'
});
})(current, previous);