How to add a custom field in Amazon Connect Customer Profiles e.g. CallTag?

0

I have done Amazon Connect Customer Profiles integrations with Shopify but it's only mapping FullName, Email, and Phone of Shopify with Customer Profiles. I want to implement After Contact Work as adding/assigning CallTags with the profiles but i am unable to find any Object to use within Customer Profiles. So, after some R&D i got to know that i have to create a custom object in Customer Profiles and then use Show View block in my contact flow and use DisconnectFlowForAgentUI attribute. It will bring the after contact work page once call ends with a list of callTags, the agent will select one or more then one callTags and on submit i want to call UpdateProfile API to add the selected callTags in my customer profile.

The ultimate goal is to add callTags in customer profiles and we can search the customer profiles by callTag.

What i have tried is to use put_profile_object API with these parameters

response = client.put_profile_object(
    ObjectTypeName='string',
    Object='string',
    DomainName='string'
)

But i am getting

Error: An error occurred (BadRequestException) when calling the PutProfileObject operation: The UNIQUE key or PROFILE key does not exist in the profile object

Can someone please guide me how to do that?

已提問 8 個月前檢視次數 349 次
1 個回答
1

Hello,

I understand that you are facing the error "The UNIQUE key or PROFILE key does not exist in the profile object." while using the "PutProfileObject" function in Python.

As per the error, it looks like - The UNIQUE key or PROFILE key does not exist in the profile object.

As per the profile key definition we know that, a profile object [1] can have a single unique key and any number of additional keys that can be used to identify the profile that it belongs to.

Therefore, making sure the unique is present and attached to profile object that is used in the API may help mitigate this issue.

======= [1] https://boto3.amazonaws.com/v1/documentation/api/1.17.8/reference/services/customer-profiles.html#CustomerProfiles.Client.add_profile_key [2] https://boto3.amazonaws.com/v1/documentation/api/1.17.8/reference/services/customer-profiles.html#CustomerProfiles.Client.put_profile_object

AWS
已回答 8 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南