添加代理/分数对变量
座席分数允许您指定首选座席的优先级。 例如,如果您有最喜欢的代理,请将他们的分数设置得更高,然后将备份代理设置得更低。 如果你没有偏好,请将分数设置为 100。
在 Architect 中,要影响路由,您可以创建一个最多支持 20 个座席/分数对的座席分数对集合。
要创建单个座席分数对值,请使用 makeAgentScoRepair 函数。 例如,“转移到 ACD” 操作的 “首选座席” 设置中的以下表达式创建了一个包含两个座席得分对的座席评分对集合。 第一个用户的分数为 100,第二个用户的分数为 90:
MakeList( MakeAgentScorePair( FindUserById("<put_user_guid_string_here>"), 100 ), MakeAgentScorePair( FindUserById("<put_user2_guid_string_here>"), 90 ) )
您可以使用 MakelistAgentScoRepair 函数,该函数接收用户集合以及整数分数集合以与用户关联。 按照该方法,此示例将生成与上一个表达式相同的值:
MakeListAgentScorePair( MakeList( FindUserById("<put_user_guid_string_here>"), FindUserById("<put_user2_guid_string_here>") ), MakeList( 100, 90 ) )
要查找用户的用户 ID,请参阅编辑用户的个人资料。
您还可以使用 “ 更新数据” 操作 来分配变量。 然后,使用这些变量提供单个用户值或用户集合、单个整数分数或整数集合以及座席评分对或集合。 有关 makeAgentScoRepair、MakelistAgentScoRepair、MakeList、findUserByID 和其他功能的更多信息,请参阅架构师的 表达式帮助功能。 每个函数都提供了更多细节和示例。
向任务序列添加代理/分数对变量
在任务序列中,您可以将代理/分数对变量添加到 “更新数据” 操作中。
- 从工具箱中,展开 数据 类别,然后将 “ 更新数据” 操作拖动到任务中的所需位置。
- 在 “更新数据” 工作空间中,添加一个有意义的名称来描述项目。
- Click next to Update Statements and select the AgentScorePair data type.
- 在 变量名称 字段中,键入标签以标识任务中的变量。
- 在 “要分配的 值 ” 字段中,执行以下操作之一:
- 要使用表达式设置值,请在行中添加表达式。
- To set the value using the large expression editor, click to open the Edit Expression Editor and build your expression.
- 要使用代理分数对生成器设置值,请执行以下步骤:
- Click the Expression modes button to open the Agent Score Pair builder.
- Select AgentScorePair Builder.
- To use the MakeAgentScorePair Architect function to set the value, click AgentScorePair and click Make AgentScorePair.
- 在 “用户” 下,输入代理。 注意: 如果您选择文字用户,则系统会在运行时使用带有用户 ID 的 FindUserByID 函数。 如果系统找不到用户,它将返回 NOT_SET AgentscoreRepair 值。
- 在 “分数” 下,输入数字分数。
- (Optional) To add another variable, click next to Update Statements.