View source: R/connect_operations.R
connect_create_persistent_contact_association | R Documentation |
Enables rehydration of chats for the lifespan of a contact. For more information about chat rehydration, see Enable persistent chat in the Amazon Connect Administrator Guide.
See https://www.paws-r-sdk.com/docs/connect_create_persistent_contact_association/ for full documentation.
connect_create_persistent_contact_association(
InstanceId,
InitialContactId,
RehydrationType,
SourceContactId,
ClientToken = NULL
)
InstanceId |
[required] The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance. |
InitialContactId |
[required] This is the contactId of the current contact that the
|
RehydrationType |
[required] The contactId chosen for rehydration depends on the type chosen.
The actual contactId used for rehydration is provided in the response of this API. To illustrate how to use rehydration type, consider the following example: A customer starts a chat session. Agent a1 accepts the chat and a conversation starts between the customer and Agent a1. This first contact creates a contact ID C1. Agent a1 then transfers the chat to Agent a2. This creates another contact ID C2. At this point Agent a2 ends the chat. The customer is forwarded to the disconnect flow for a post chat survey that creates another contact ID C3. After the chat survey, the chat session ends. Later, the customer returns and wants to resume their past chat session. At this point, the customer can have following use cases:
|
SourceContactId |
[required] The contactId from which a persistent chat session must be started. |
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.