设置规则

规则可使您教机器人响应在每个上下文中意图都相同的消息。 这包括问候、再见和感谢等消息。

创建规则

  1. 在 NiCE CXone 中,单击应用程序选择器 Icon of three-by-three grid of white squares on a blue background 并选择Bot Builder。
  2. 单击您要使用的机器人。
  3. 单击左侧图标菜单中的Dialogues 图标,看起来像对话气泡。。
  4. 单击 规则 选项卡。
  5. 找到新规则应放入的文件夹。您也可以单击加号 图标,用圆圈中的加号表示。,输入名称,然后按 Enter。
  6. 将鼠标悬停在文件夹上,然后单击加号 The plus sign icon, used to add a new example, rule, message, or folder。 将鼠标悬停在要创建规则的文件夹上,然后单击加号 The plus sign icon, used to add a new example, rule, message, or folder。查看图像
    The Rules tab. The cursor is hovering over the New Rule icon on a folder.
  7. 键入规则的名称类型并按 Enter。
  8. 如果您的规则仅应在特定条件下使用,请单击添加条件。 选择条件类型和适当的表单、插槽值或这两者。
  9. Add the contact's message:
    1. 在中间面板中,单击右侧的 + 图标。 它会变成联系人图标 A square with rounded corners with a face in it.。 在客户可能会说框中,输入联系人可能发送的消息,然后按Enter。Bot Builder会分析该消息,并提供意图列表及每个意图的信任等级。
    2. 如果顶部意图是正确的意图,请单击确认。 如果不是,则单击不正确的意图以展开“意图”列表,选择正确的意图,然后单击确认。
  10. Add a bot response: 
    1. 在故事页面中间面板中,将鼠标悬停在左侧的加号 + 上,直到它变为机器人图标 A square with rounded corners and a robot head inside.。 单击 常规、表单或 集成 选项卡,然后单击一个操作。
    2. Provide the information matching the action you selected. For example, if you selected Message, enter what the bot should say.

    3. 单击打字指示器图标 Icon of small clock face 以设置或覆盖该操作的打字指示器显示时长。 如果已开启智能输入,机器人会自动为您确定此设置。
    4. For Message actions only, click Variationsicon, represented by two crossing arrows to open a dialogue where you can add variations to the existing response message. In this dialogue, click Add Variation, then type a different version of your original message shown at the top. Add as many variations as you want. The bot will randomly select which variation to use in a conversation.
    5. 仅适用于富文本消息Closed 数字消息传递中的元素,如按钮、图片、菜单和选项选取器。操作,如果消息是通过不支持富文本内容的渠道Closed 联络中心中促进客户互动的各种语音和数字通信媒介。发送的,请单击富文本消息回退 icon, represented by two boxes with an arrow pointing from one to the other.以自定义应答。 默认情况下,机器人将使用富消息回退中配置的内容。
  11. You can add more examples to the intent. This helps ensure the rule is triggered for each way a contact may phrase something. You can do this in two ways: 
    • 单击联系人消息下的意图以将其加载到右侧的“意图”窗格中。 然后单击圆圈中的加号 The plus sign icon, used to add a new example, rule, message, or folder 并添加新消息。
    • 转到 NLU图标,看起来像人头剪影中有个齿轮。,然后针对您要添加消息的意图,单击圆圈内的加号图标 加号图标,用于添加新示例、规则、消息或文件夹。
  12. 单击带斜线的眼睛图标 An eye with a diagonal line across it.,如果您想将此规则从训练中排除。 例如,如果您无法在一次会话中完成此规则,则可以将其隐藏,直到您能够完成它为止。
  13. 单击训练和暂存以在新规则上训练您的机器人。 您可以稍后进行更多训练和测试中。

将新训练示例添加到现有规则的意图中

在检查和完善机器人时,您可能了解到联系人经常使用当前未针对规则的意图配置的短语。 您可以将这些添加到规则使用的意图中,以便提高机器人的表现。

  1. 在 NiCE CXone 中,单击应用程序选择器 Icon of three-by-three grid of white squares on a blue background 并选择Bot Builder。
  2. 单击您要使用的机器人。
  3. 单击左侧图标菜单中的Dialogues 图标,看起来像对话气泡。。
  4. 在规则选项卡上,单击您想使用的规则。
  5. 单击页面右侧菜单栏中的意图 Icon of a lightbulb in a circle.。

  6. 单击联系消息下方的意图图标 一个灯泡。,将其加载到意图窗格中。
  7. 单击 添加示例 The plus sign icon, used to add a new example, rule, message, or folder 并添加新的话术示例。
  8. 完成更改后,单击 Train and Stage 以更新您的 bot 模型Closed 经过训练和上演的机器人版本来测试此更改。

复制规则

如果现有规则与您要创建的规则相似,则可以复制并根据需要进行编辑。

  1. 在 NiCE CXone 中,单击应用程序选择器 Icon of three-by-three grid of white squares on a blue background 并选择Bot Builder。
  2. 单击您要使用的机器人。
  3. 单击左侧图标菜单中的Dialogues 图标,看起来像对话气泡。。
  4. 在“规则”选项卡上,将光标悬停在某个规则上,然后单击 选项 icon, represented by three horizontal dots.,再单击 复制。 复制的规则显示在同一文件夹中,名称后面带有单词 copy。
  5. 单击左侧列表中复制的规则并根据需要进行更改。
  6. 完成更改后,单击 Train and Stage 以更新您的 bot 模型Closed 经过训练和上演的机器人版本来测试此更改。

在训练中隐藏草案规则

您可以隐藏单个对话Closed Bot Builder 中的故事、规则和流程。 。 这使其在准备好之前无法接受训练。

隐藏后,您可以看到数据,对其进行编辑,但机器人不会从中学习。 同时还会显示带有隐藏 an eye icon with a slash through it 图标的内容。

  1. 在 NiCE CXone 中,单击应用程序选择器 Icon of three-by-three grid of white squares on a blue background 并选择Bot Builder。
  2. 单击您要使用的机器人。
  3. 单击左侧图标菜单中的 Dialogues 图标,看起来像对话气泡。。
  4. 在规则选项卡上,将光标悬停在对话框上,然后单击选项 icon, represented by three horizontal dots.,再单击隐藏。
  5. 完成更改后,单击 Train and Stage 以更新您的 bot 模型Closed 经过训练和上演的机器人版本来测试此更改。

将草案规则发布到训练

当您准备好发布对话Closed Bot Builder 中的故事、规则和流程。 的草稿时,您可以取消隐藏它并训练您的机器人使用它。

  1. 在 NiCE CXone 中,单击应用程序选择器 Icon of three-by-three grid of white squares on a blue background 并选择Bot Builder。
  2. 单击您要使用的机器人。
  3. 单击左侧图标菜单中的 Dialogues icon, which looks like conversation bubbles.(图标,看起来像对话气泡)。
  4. 在规则选项卡上,将光标悬停在对话上,然后单击选项 icon, represented by three horizontal dots.,再单击显示。
  5. 完成更改后,单击 Train and Stage 以更新您的 bot 模型Closed 经过训练和上演的机器人版本来测试此更改。