

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 将 Contact Record 与 Customer Profiles 中使用 \_phone 密钥找到的一个配置文件相关联
<a name="auto-associate-profile-using-phone-profile-key"></a>

您可以自动将联系人记录与使用 `_phone` 键找到的一个资料相关联

**示例**

在域中，以下资料由 `CreateProfile` API 创建：

```
            {
                "FirstName": "John",
                "LastName": "Doe",
                "PhoneNumber": "+11234567890"
            }
```

当使用默认 CTR 模板接到来自 `PhoneNumber` \+11234567890 的呼叫时，除非座席已经将同一呼叫方的联系人记录手动关联到上述资料，否则联系人记录不会与上述资料自动关联。如果联系人记录未手动或自动关联，则 Customer Profiles 将使用联系人记录中的信息创建推断的资料。

要在没有人工代理干预的情况下自动将上述个人资料与联系人记录相关联，您可以使用点击率NoInferred 模板。使用点击率NoInferred 模板接到来自 `PhoneNumber` \+11234567890 的电话时，联系人记录将使用配置文件密钥自动与上述个人资料关联。`_phone`

在两种情况下，Customer Profiles 将*无法*自动将联系人记录与资料关联：
+ 如果使用 `_phone` 资料键找到了多个资料，则 Customer Profiles 无法将联系人记录与唯一的资料相关联，请求将被拒绝。
+ 如果找不到 `_phone` 资料键的资料，则 Customer Profiles 将创建推断的资料。

要使用点击率NoInferred 模板替换默认的点击率模板，请在 CLI 上运行以下命令：

`aws customer-profiles put-profile-object-type --domain-name {domain} --object-type-name CTR --description "No inferred contact record profiles" --template-id CTR-NoInferred`

要恢复为默认行为，请在 CLI 上运行以下命令：

`aws customer-profiles put-profile-object-type --domain-name {domain} --object-type-name CTR --description "Revert to inferred contact record profiles" --template-id CTR`