Amazon Connect Service

2023/04/21 - Amazon Connect Service - 1 new api methods

Changes  This release adds a new API CreateParticipant. For Amazon Connect Chat, you can use this new API to customize chat flow experiences.

CreateParticipant (new) Link ΒΆ

Adds a new participant into an on-going chat contact. For more information, see Customize chat flow experiences by integrating custom participants.

See also: AWS API Documentation

Request Syntax

client.create_participant(
    InstanceId='string',
    ContactId='string',
    ClientToken='string',
    ParticipantDetails={
        'ParticipantRole': 'AGENT'|'CUSTOMER'|'SYSTEM'|'CUSTOM_BOT',
        'DisplayName': 'string'
    }
)
type InstanceId:

string

param InstanceId:

[REQUIRED]

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

type ContactId:

string

param ContactId:

[REQUIRED]

The identifier of the contact in this instance of Amazon Connect. Only contacts in the CHAT channel are supported.

type ClientToken:

string

param 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.

This field is autopopulated if not provided.

type ParticipantDetails:

dict

param ParticipantDetails:

[REQUIRED]

Information identifying the participant.

  • ParticipantRole (string) --

    The role of the participant being added.

  • DisplayName (string) --

    The display name of the participant.

rtype:

dict

returns:

Response Syntax

{
    'ParticipantCredentials': {
        'ParticipantToken': 'string',
        'Expiry': 'string'
    },
    'ParticipantId': 'string'
}

Response Structure

  • (dict) --

    • ParticipantCredentials (dict) --

      The token used by the chat participant to call CreateParticipantConnection. The participant token is valid for the lifetime of a chat participant.

      • ParticipantToken (string) --

        The token used by the chat participant to call CreateParticipantConnection. The participant token is valid for the lifetime of a chat participant.

      • Expiry (string) --

        The expiration of the token. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.

    • ParticipantId (string) --

      The identifier for a chat participant. The participantId for a chat participant is the same throughout the chat lifecycle.