为 ServiceNow 设置 CRM 配置

此页面介绍了如何为ServiceNow设置 CRM 配置。 此操作在 NiCE CXone 中完成。 该配置将 ServiceNow 连接到 NiCE CXone Agent Workspace (Embedded) (Agent Embedded)。 它可使这二者通过数据记忆和动态数据映射来共享数据。

当CRM身份验证令牌过期时,需要9至15秒才能生成新令牌。这意味着数据记忆和动态数据映射可能需要9至15秒才能执行完成,尤其是在当天的第一次交互期间。

按照给定的顺序完成以下每一个任务。

在 NiCE CXone 中创建新的 CRM 配置

所需权限: 配置 创建

向 NiCE CXone 提供其连接到 ServiceNow 所需的信息。

如果创建了 CRM 配置的 ServiceNow 用户账户被删除或停用,该 CRM 配置也将被删除。 通过在 ServiceNow 中创建专门用于 NiCE CXone 配置的用户帐户来防止这种情况。 这是系统用户。 建议为系统用户授予管理员权限。 如果您不想赋予系统用户管理员权限,则必须为其赋予以下权限:

  • 对所有 ServiceNow 个实体记录和实体欄位的读取访问权限。

  • 对将在您配置的工作流程(包括搜索工作流程、创建工作流程和数据记忆)中被访问或更新的所有 ServiceNow 个实体记录的读取/写入权限。

您稍后在此过程中配置的工作流程将使用系统用户的角色和权限。创建或更新记录时,将使用系统用户的名称和时区。

  1. 在 NiCE CXone 中,单击应用程序选择器 Icon of three-by-three grid of white squares on a blue background 并选择代理整合 图标:一个橙色齿轮,内部有三个箭头。 > 配置。
  2. 单击新建 CRM 配置。
  3. 在 选择地区 下拉列表中,选择您希望将此 CRM 配置连接到的地区:AMERICAS、APAC 或 EMEA。

    您无法在之后更改此区域。如果您想要将 CRM 配置从一个区域移至另一个区域,则必须创建新的 CRM 配置。这包括重新进行身份验证、重新创建数据记忆和动态数据映射,以及在您的 Studio 脚本中重新配置 WORKFLOW EXECUTE 和 AGENT WORKFLOW CONFIGURATION 操作。

  4. 从ServiceNow集成类型下拉列表中选择 。
  5. 输入 配置名称。 您可以编写描述。
  6. 单击身份验证。
  7. 在"身份验证"弹出窗口中,从列出的已验证账户中选择一个(如果有)。

    每个 ServiceNow 账户应用于验证一个 CRM 配置。请勿重复使用账户。

    If you have accounts listed, but want to create a new one, scroll to the end of the drop-down and click Add a new account. If you don't have any accounts listed, click New authentication. Configure the fields that appear:

    1. To change the name of the authentication, edit Your authentication name.

    2. Enter your ServiceNow Instance URL. To find it, open your instance of ServiceNow and copy and paste the URL from the address bar in your browser. You only need the URL up until .com. For example: https://ven12345.service-now.com.

    3. In ServiceNow, navigate to the Application Registry. If you haven't already, create an app registry for NiCE CXone. Click the name of that app registry to open it.
    4. Copy the client ID and client secret from the app registry. Navigate back to NiCE CXone and paste them into the Client ID and Client Secret fields in the ServiceNow authentication window.
    5. Click Create.
    6. If you haven't already, log in to ServiceNow with the system user account you created specifically for NiCE CXone configuration. If you're already logged in to ServiceNow, check the top right corner to make sure you're logged in with the system user account. If not, click Not You? to change accounts.
    7. If a window from ServiceNow appears asking to allow NiCE to connect to your ServiceNow account, click Allow.

  8. 单击下一步。
  9. 如果显示 external_screenpop_domain_snow 字段,请输入您的 ServiceNow 实例 URL。 要查找它,请打开 ServiceNow 的实例,然后从浏览器的地址栏中复制并粘贴该 URL。 您只需要 .com 之前的 URL。 例如:https://ven12345.service-now.com.

  10. 单击完成。 右下角会出现一条消息,通知您身份验证已激活。
  11. 单击代理整合顶部右侧的保存。

创建数据记忆映射

所需权限:配置编辑;数据记忆创建

Data memorialization mappings allow for data from Agent Workspace (Embedded) (Agent Embedded) to be popped into ServiceNow records. In these mappings, you select the NiCE CXone data field to map to each ServiceNow record field. For example, if you map the Customer Name NiCE CXone data field to the Name ServiceNow record field, Name displays the value from Customer Name. Only text is mapped; attachments, images, and notes cannot be mapped. Currently, you can set up data mappings for standard CRM entity types.

对于语音交互,数据记忆发生在呼叫结束且坐席完成 ACWClosed 允许坐席在完成交互后完成工作要求的状态。 时间(如已配置)之后。对于数字Closed 与 Digital Experience (DX) 相关联的任何渠道、联系或技能。交互,数据记忆发生在坐席转接交互或对其执行 取消分配并解除 操作时。如果联系人Closed 与联络中心的坐席、IVR 或机器人交互的人员。先结束交互,则不会对状态、处理结果、备注和标签进行数据记忆。但是,所有其他已配置的数据记忆仍将映射到 CRM 记录中。

  1. 如果尚未打开,请打开ServiceNow的 CRM 配置。在 NiCE CXone 中,单击应用程序选择器 Icon of three-by-three grid of white squares on a blue background 并选择代理整合 icon: an orange gear with three arrows inside. > 配置。 从列表中选择一个 CRM 配置。
  2. 单击数据记忆选项卡。
  3. 单击新建数据映射。
  4. 输入映射的名称。 您可以选择输入描述。
  5. 在选择实体类型下拉列表中,选择您要为其创建字段映射的ServiceNow记录类型。

  6. 单击添加实体。
  7. 在出现的外部 CRM 字段下拉列表中,选择您要从Agent Workspace (Embedded) (Agent Embedded)接收数据的ServiceNow记录字段。

    如果您想映射交互的完整记录文本,请选择具有正确格式和足够大字符限制的记录字段。 如果该字段不符合这些要求,则仅显示部分记录文本或不显示记录文本,具体取决于 CRM。

  8. 在选择信道下拉列表中,选择您要映射到所选ServiceNow记录字段的NiCE CXone数据的类型。

    我们建议您在创建的每个新渠道上分别为语音和 digital channels 创建两个独立的映射。这样可以防止交互记录中出现不必要的数据映射。之后,可以将 Studio 操作添加到语音或数字映射中。

  9. 在NiCE CXone 数据 下拉列表中,选择您要映射到所选ServiceNow 记录字段的NiCE CXone 数据字段。

    如果您在选择信道下拉列表中选择了脚本变量,请在CXone 数据字段中输入脚本变量。 即使您在脚本中使用了驼峰式大小写来定义此变量,也必须以小写形式输入它。

  10. 要添加更多数据字段,请单击添加字段。
  11. 若要为另一个ServiceNow记录类型配置映射,请从选择实体类型下拉列表中选择不同的记录类型,然后单击添加实体。
  12. If you are setting up data memorialization for Salesforce, you can have workflows and data memorialization use the name of the agent handling the interaction instead of the authenticated system user. To enable this, configure this mapping:
    1. 将外部 CRM 字段设置为Assigned To ID。
    2. 在选择信道下拉列表中,选择脚本变量。
    3. 在CXone 数据字段中,输入crmuserid。
  13. If you are setting up data memorialization for Salesforce, you can enable agents to relate Salesforce records inside Agent Workspace (Embedded) (Agent Embedded) to a created record. To enable this, add these field mappings:
    1. 单击添加字段。
    2. 在 外部 CRM 字段 下拉列表中,选择一个可以映射到 whoid 和 whatid NiCE CXone 数据字段的 Salesforce 字段。
    3. 在选择信道下拉列表中,选择脚本变量。
    4. 在CXone Data 字段中,输入 whoid 或 whatid。

    然后在Studio 中完成这些步骤。

  14. 单击页面顶部的保存。 活动数据映射显示在“数据纪念”选项卡中。

    在此流程中的下一个任务中,在您的 Studio 脚本中的 AGENT WORKFLOW CONFIGURATION 操作中选择该数据映射。当您在该操作向导的 操作 下拉列表中选择 数据记忆 时,将显示此选项。

创建动态数据映射

所需权限:配置、编辑;动态数据、创建

动态数据映射允许您选择哪些ServiceNow记录字段显示在Agent Workspace (Embedded) (Agent Embedded)中。您可以为由搜索工作流程检索到的标准ServiceNow记录类型设置动态数据映射。您还可以为由自定义创建工作流程创建的自定义记录设置动态数据映射。对于每种记录类型,您最多可以添加十个字符串字段。您最多可以添加三个数据类型不是字符串的字段。

  1. 如果尚未打开,请为ServiceNow打开 CRM 配置。在 NiCE CXone 中,单击应用程序选择器 Icon of three-by-three grid of white squares on a blue background 并选择代理整合 icon: an orange gear with three arrows inside. > 配置。 从列表中选择一个 CRM 配置。
  2. 单击动态数据选项卡。
  3. 单击新建数据映射。
  4. 输入映射的名称。 您可以选择输入描述。
  5. 在选择实体类型下拉列表中,选择包含您要在Agent Workspace (Embedded) (Agent Embedded)中显示的字段的ServiceNow记录类型。

  6. 单击添加实体。
  7. 在显示的外部 CRM 字段下拉列表中,选择要向座席显示的ServiceNow记录字段。

  8. 若要添加更多 ServiceNow 记录字段,请单击 添加字段。 每个记录类型最多可添加五个字段。
  9. 单击页面顶部的保存。 活动的动态数据映射显示在“动态数据”选项卡中。

    在此流程中的下一个任务中,在您的 Studio 脚本中的 AGENT WORKFLOW CONFIGURATION 操作中选择该动态数据映射。当您在该操作向导的 Actions 下拉列表中选择 Search 时,便会显示该项。

在 ServiceNow 中设置 Agent Workspace (Embedded) (Agent Embedded) 的下一步是修改您的 Studio 脚本。