Skip to main content

contact_attributes

Creates, updates, deletes, gets or lists a contact_attributes resource.

Overview

Namecontact_attributes
TypeResource
Idaws.connect.contact_attributes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
attributesobjectInformation about the attributes.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_contact_attributesselectinstance_id, initial_contact_id, regionRetrieves the contact attributes for the specified contact.
update_contact_attributesupdateregion, InitialContactId, InstanceIdCreates or updates user-defined contact attributes associated with the specified contact. You can create or update user-defined attributes for both ongoing and completed contacts. For example, while the call is active, you can update the customer's name or the reason the customer called. You can add notes about steps that the agent took during the call that display to the next agent that takes the call. You can also update attributes for a contact using data from your CRM application and save the data with the contact in Connect Customer. You could also flag calls for additional analysis, such as legal review or to identify abusive callers. Contact attributes are available in Connect Customer for 24 months, and are then deleted. For information about contact record retention and the maximum size of the contact record attributes section, see Feature specifications in the Connect Customer Administrator Guide.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
initial_contact_idstringThe identifier of the initial contact.
instance_idstringThe identifier of the Connect Customer instance.
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves the contact attributes for the specified contact.

SELECT
attributes
FROM aws.connect.contact_attributes
WHERE instance_id = '{{ instance_id }}' -- required
AND initial_contact_id = '{{ initial_contact_id }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Creates or updates user-defined contact attributes associated with the specified contact. You can create or update user-defined attributes for both ongoing and completed contacts. For example, while the call is active, you can update the customer's name or the reason the customer called. You can add notes about steps that the agent took during the call that display to the next agent that takes the call. You can also update attributes for a contact using data from your CRM application and save the data with the contact in Connect Customer. You could also flag calls for additional analysis, such as legal review or to identify abusive callers. Contact attributes are available in Connect Customer for 24 months, and are then deleted. For information about contact record retention and the maximum size of the contact record attributes section, see Feature specifications in the Connect Customer Administrator Guide.

UPDATE aws.connect.contact_attributes
SET
InitialContactId = '{{ InitialContactId }}',
InstanceId = '{{ InstanceId }}',
Attributes = '{{ Attributes }}'
WHERE
region = '{{ region }}' --required
AND InitialContactId = '{{ InitialContactId }}' --required
AND InstanceId = '{{ InstanceId }}' --required;