Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to: Dynamics 365 Contact Center—standalone and Dynamics 365 Customer Service only
Customer service representatives (service representatives or representatives) can collaborate with other contacts directly through Microsoft Teams to quickly resolve customer issues. As an administrator, you can enable rules-based suggested contacts that are displayed when a representative starts a new connected chat. This feature can help representatives in your organization to quickly find the right coworkers to collaborate with.
A maximum of 10 rules are supported per record type.
Turn on the suggested contacts for a record type
Note
- For the case record type, there are two types of contact suggestions: AI and rules-based. Most record types enabled for connected chats only have rules-based suggestions. Learn more about configuring AI-suggested contacts in Teams in Configure AI suggestions for contacts in Microsoft Teams
- Case is applicable to Customer Service only.
To enable collaboration with Microsoft Teams and chat
In the site map of Copilot Service admin center, in Support experience, select Collaboration.
In Embedded chat using Teams, select Manage.
On the Microsoft Teams collaboration and chat page, set the toggle for Turn on the linking of Dynamics 365 records to Microsoft Teams channels to Yes.
To get suggested contacts for any record type, perform the following steps:
In Connect Teams chats to Dynamics 365 records, select record type for which you want to enable rules-based suggested contacts. Based on your selection, the relative settings pane appears on the right.
In Suggest contacts, turn on the toggle for Rules-based suggested contacts.
In the Update rules for suggesting contacts section, reorder or disable the rules for suggesting contacts. Users see the suggestions in the order you choose.
- To reorder the rules, hover over a rule, and then select the up or down arrow to move the rules up or down, respectively.
- To disable a rule, hover over a rule, and then select
. When the rule is disabled, a check mark is displayed when you hover over the disabled rule.
- To delete a rule, hover over the rule, and then select
. Deleting a rule removes it entirely so it won't influence suggested contacts in the future.
Select Save.
Add a new rule
On the settings pane, in the Update rules for suggesting contacts section, select Add new rule. The Add rule pane is displayed for the record type you selected.
Type a Rule name for the rule. The name you enter displays on the contact, and also appears in the rule list.
Select from the following Rule type options:
- Relational: Suggest a user who has a relationship with the linked record type or one of its related records. In the rule settings section, the dropdown allows you to select a user directly on the record type for which you're creating a rule or an entity that's related to it. You can select up to 10 related entities, each one being associated with the previous selection. Once you've selected a user, either on the record type or related entity/entities, you can save the rule.
- Custom: You can use your own custom logic with a record type, and then apply it.
Select Save.
Use a custom action
Important
We recommend that you have previous experience working with custom actions before configuring them for rules-based suggestions. Learn more in Create or edit custom actions from a workflow
You can call a custom action to handle advanced scenarios. The suggested contacts identifier passes along the ID and entity type as arguments, and expects the custom action to return users. In the rule settings section, type the name of an existing action.
To use the custom rule type, you must have an existing custom action that has the following arguments:
Name | Type | Required | Direction |
---|---|---|---|
EntityLogicalName | String | Required | Input |
Recordid | String | Required | Input |
CustomActionSuggestedUsers | String | Required | Output |
CustomActionInputs | String | Optional | Input |
The output, CustomActionSuggestedUsers, is a list of objects that follow this contract:
public class ContactSuggestionCustomActionOutput
{
public Guid AADUserId { get; set; }
public Guid systemUserId { get; set; }
public string description { get; set; }
public ContactSuggestionCustomActionOutput(Guid AADUserId, Guid systemUserId, string description)
{
this.AADUserId = AADUserId;
this.systemUserId = systemUserId;
this.description = description;
}
}
Language localization
To ensure that the user's language is localized, make sure they have Read privileges for the following entities:
- msdyn_contactsuggestionrule
- msdyn_contactsuggestionruleset
Related information
Configure Microsoft Teams chat in Customer Service
Use Teams chat in Customer Service