Only the VOICE, EMAIL, and TASK channels are supported
Source:R/connect_operations.R
connect_create_contact.RdOnly the VOICE, EMAIL, and TASK channels are supported.
See https://www.paws-r-sdk.com/docs/connect_create_contact/ for full documentation.
Usage
connect_create_contact(
InstanceId,
ClientToken = NULL,
RelatedContactId = NULL,
Attributes = NULL,
References = NULL,
Channel,
InitiationMethod,
ExpiryDurationInMinutes = NULL,
UserInfo = NULL,
InitiateAs = NULL,
Name = NULL,
Description = NULL,
SegmentAttributes = NULL,
PreviousContactId = NULL
)Arguments
- InstanceId
[required] The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
- ClientToken
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
The identifier of the contact in this instance of Connect Customer.
- Attributes
A custom key-value pair using an attribute map. The attributes are standard Connect Customer attributes, and can be accessed in flows just like any other contact attributes.
There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys can include only alphanumeric, dash, and underscore characters.
- References
A formatted URL that is shown to an agent in the Contact Control Panel (CCP). Tasks can have the following reference types at the time of creation:
URL|NUMBER|STRING|DATE|EMAIL|ATTACHMENT.- Channel
[required] The channel for the contact.
The CHAT channel is not supported. The following information is incorrect. We're working to correct it.
- InitiationMethod
[required] Indicates how the contact was initiated.
CreateContact only supports the following initiation methods. Valid values by channel are:
For VOICE:
TRANSFERand the subtypeconnect:ExternalAudioFor EMAIL:
OUTBOUND|AGENT_REPLY|FLOWFor TASK:
API
The other channels listed below are incorrect. We're working to correct this information.
- ExpiryDurationInMinutes
Number of minutes the contact will be active for before expiring
- UserInfo
User details for the contact
UserInfo is required when creating an EMAIL contact with
OUTBOUNDandAGENT_REPLYcontact initiation methods.- InitiateAs
Initial state of the contact when it's created. Only TASK channel contacts can be initiated with
COMPLETEDstate.- Name
The name of a the contact.
- Description
A description of the contact.
- SegmentAttributes
A set of system defined key-value pairs stored on individual contact segments (unique contact ID) using an attribute map. The attributes are standard Connect Customer attributes. They can be accessed in flows.
Attribute keys can include only alphanumeric, -, and _.
This field can be used to set Segment Contact Expiry as a duration in minutes.
To set contact expiry, a ValueMap must be specified containing the integer number of minutes the contact will be active for before expiring, with
SegmentAttributeslike {"connect:ContactExpiry": \{"ValueMap" : \{ "ExpiryDuration": \{ "ValueInteger": 135\}\}\}\}.- PreviousContactId
The ID of the previous contact when creating a transfer contact. This value can be provided only for external audio contacts. For more information, see Integrate Connect Customer Contact Lens with external voice systems in the Connect Customer Administrator Guide.