本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
创建客户数据并将其摄取到 Customer Profile 中
您可以使用 Amazon S3 定义来自任何源的数据,无需自定义或预先构建的集成,即可无缝丰富客户资料。例如,假设您想向座席提供相关的购买历史信息。您可以将购买交易数据从内部应用程序导入到 S3 上的电子表格文件中,然后将其链接到客户资料。
要进行此设置,您需要定义一个对象类型映射,用于描述自定义资料对象的外观。此映射定义如何使用数据中的字段来填充标准资料中的字段,或者如何能够使用它将数据分配给特定资料。
创建对象类型映射后,您可以使用 PutProfileObjectAPI 将自定义配置文件数据从 CRM 上传到自定义配置文件对象。
注意
Customer Profiles 不支持从包含点表示法的 CSV 标题中摄取数据。
有关 Customer Profiles 访问 Amazon S3 存储桶中的数据以进行数据映射所需的 IAM 权限列表,请参阅 Amazon Connect Customer Profiles 定义的操作中的表 PutProfileObject
。
客户资料提取
获取基于账户的个人资料
-
将数据文件上传到 S3。账户资料中引用的个人资料和账户资料本身的摄取应分开进行。
-
用于获取账户资料的新文件应包含新属性:个人资料类型以及电子邮件和电话的参与偏好。
-
使用 AWS 控制台将文件从 S3 提取到客户档案
示例个人资料(在以下基于账户的个人资料中引用)CSV
FirstName LastName PersonalEmailAddress PhoneNumber 状态 CustomerId ProfileType 山姆 乔 sam@example.com 1111111111 WA 456 PROFILE John Doe john@example.com 2222222222 IL 789 PROFILE 莎莉 Doe sally@example.com 3333333333 或 111 PROFILE 基于账户的个人资料示例 CSV
AccountId ProfileType PrimaryOwner SecondaryOwner EmailEngagementPreferences PhoneEngagementPreferences ACC111 账号_个人资料 山姆·乔 John Doe [{” KeyName “:” “,” CustomerId “:” 456"、” KeyValue “:” “}”、{” ContactType “:” PersonalEmailAddress “:” “,” “:” KeyName “,” CustomerId “:” 789",” KeyValue “:” “}] ContactType PersonalEmailAddress [{” KeyName “:” “,” CustomerId “:” 456"、” KeyValue “:” “}”、{” ContactType “:” PhoneNumber “:” “,” “:” KeyName “,” CustomerId “:” 789",” KeyValue “:” “}] ContactType PhoneNumber ACC112 账号_个人资料 John Doe Sally Doe [{” KeyName “:” CustomerId “,” KeyValue “: “111”, ContactType “:” PersonalEmailAddress “}] [{” KeyName “:” CustomerId “,” KeyValue “: “111”, ContactType “:” PhoneNumber “}] 电子邮件互动偏好示例:
[ {"KeyName": "CustomerId", "KeyValue": "456", "ContactType": "PersonalEmailAddress"}, {"KeyName": "CustomerId", "KeyValue": "789", "ContactType": "PersonalEmailAddress"} ]
电话互动偏好示例:
[ {"KeyName": "CustomerId", "KeyValue": "456", "ContactType": "PhoneNumber"}, {"KeyName": "CustomerId", "KeyValue": "789", "ContactType": "PhoneNumber"} ]
注意
对于 ProfileType
PROFILE
,您可以使用相同的方法获取和添加参与偏好。 -
创建两个数据映射——一个用于子个人资料,一个用于基于账户的个人资料。
-
接下来,映射客户资料属性。记下呼叫的目的地
ProfileType
。采集基于账户的配置文件中引用的配置文件的对象类型映射示例
{ "AllowProfileCreation": true, "Description": "Standard Profile Object Type", "Fields": { "FirstName": { "ContentType": "STRING", "Source": "_source.FirstName", "Target": "_profile.FirstName" }, "LastName": { "ContentType": "STRING", "Source": "_source.LastName", "Target": "_profile.LastName" }, "PhoneNumber": { "ContentType": "PHONE_NUMBER", "Source": "_source.PhoneNumber", "Target": "_profile.PhoneNumber" }, "PersonalEmailAddress": { "ContentType": "EMAIL_ADDRESS", "Source": "_source.PersonalEmailAddress", "Target": "_profile.PersonalEmailAddress" }, "State": { "ContentType": "STRING", "Source": "_source.State", "Target": "_profile.Address.State" }, "CustomerId": { "ContentType": "STRING", "Source": "_source.CustomerId", "Target": "_profile.Attributes.CustomerId" }, "ProfileType": { "ContentType": "STRING", "Source": "_source.ProfileType", "Target": "_profile.ProfileType" } }, "Keys": { "CustomerId": [ { "FieldNames": [ "CustomerId" ], "StandardIdentifiers": [ "PROFILE", "UNIQUE" ] } ] } }
-
重复该过程以获取基于帐户的个人资料。注意 EngagementPreferences。电子邮件和 EngagementPreference .Phone。
用于提取基于账户的个人资料的对象类型映射示例
{ "AllowProfileCreation": true, "Description": "Account-based profiles Object Type", "Fields": { "AccountNumber": { "ContentType": "STRING", "Source": "_source.AccountId", "Target": "_profile.AccountNumber" }, "PrimaryOwner": { "ContentType": "STRING", "Source": "_source.PrimaryOwner", "Target": "_profile.Attributes.PrimaryOwner" }, "SecondaryOwner": { "ContentType": "STRING", "Source": "_source.SecondaryOwner", "Target": "_profile.Attributes.SecondaryOwner" }, "ProfileType": { "ContentType": "STRING", "Source": "_source.ProfileType", "Target": "_profile.ProfileType" }, "EmailEngagementPreferences": { "ContentType": "STRING", "Source": "_source.EmailEngagementPreferences", "Target": "_profile.EngagementPreferences.Email" }, "PhoneEngagementPreferences": { "ContentType": "STRING", "Source": "_source.PhoneEngagementPreferences", "Target": "_profile.EngagementPreferences.Phone" } }, "Keys": { "Account": [ { "FieldNames": [ "AccountNumber" ], "StandardIdentifiers": [ "PROFILE", "UNIQUE" ] } ] } }
-
创建两个数据源集成,每个集成将基于所描述的关系创建映射。例如,账户/个人资料。
注意
-
只有在使用 Amazon Connect 客户档案控制台中的 SearchProfilesAPI 或个人资料指标验证成功获取了基于账户的资料中引用的配置文件后,才应提取基于账户的个人资料。
-
自动生成映射不适用于获取基于账户的个人资料及其子个人资料。
-
联系人首选项的电子邮件和电话列表可以包含
KeyName
和KeyValue
或引ProfileId
用孩子的个人资料。KeyName
应该是唯一标识符。 -
子个人资料的更新不会更新基于账户的个人资料中的参与偏好。更新必须通过摄取路径进行。