Amazon Connect Service

2024/12/18 - Amazon Connect Service - 1 new7 updated api methods

Changes  This release adds support for the UpdateParticipantAuthentication API used for customer authentication within Amazon Connect chats.

UpdateParticipantAuthentication (new) Link ¶

Instructs Amazon Connect to resume the authentication process. The subsequent actions depend on the request body contents:

  • If a code is provided: Connect retrieves the identity information from Amazon Cognito and imports it into Connect Customer Profiles.

  • If an error is provided: The error branch of the Authenticate Customer block is executed.

See also: AWS API Documentation

Request Syntax

client.update_participant_authentication(
    State='string',
    InstanceId='string',
    Code='string',
    Error='string',
    ErrorDescription='string'
)
type State:

string

param State:

[REQUIRED]

The state query parameter that was provided by Cognito in the redirectUri. This will also match the state parameter provided in the AuthenticationUrl from the GetAuthenticationUrl response.

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 Code:

string

param Code:

The code query parameter provided by Cognito in the redirectUri.

type Error:

string

param Error:

The error query parameter provided by Cognito in the redirectUri.

type ErrorDescription:

string

param ErrorDescription:

The error_description parameter provided by Cognito in the redirectUri.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

CreateIntegrationAssociation (updated) Link ¶
Changes (request)
{'IntegrationType': {'COGNITO_USER_POOL'}}

Creates an Amazon Web Services resource association with an Amazon Connect instance.

See also: AWS API Documentation

Request Syntax

client.create_integration_association(
    InstanceId='string',
    IntegrationType='EVENT'|'VOICE_ID'|'PINPOINT_APP'|'WISDOM_ASSISTANT'|'WISDOM_KNOWLEDGE_BASE'|'WISDOM_QUICK_RESPONSES'|'Q_MESSAGE_TEMPLATES'|'CASES_DOMAIN'|'APPLICATION'|'FILE_SCANNER'|'SES_IDENTITY'|'ANALYTICS_CONNECTOR'|'CALL_TRANSFER_CONNECTOR'|'COGNITO_USER_POOL',
    IntegrationArn='string',
    SourceApplicationUrl='string',
    SourceApplicationName='string',
    SourceType='SALESFORCE'|'ZENDESK'|'CASES',
    Tags={
        'string': '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 IntegrationType:

string

param IntegrationType:

[REQUIRED]

The type of information to be ingested.

type IntegrationArn:

string

param IntegrationArn:

[REQUIRED]

The Amazon Resource Name (ARN) of the integration.

type SourceApplicationUrl:

string

param SourceApplicationUrl:

The URL for the external application. This field is only required for the EVENT integration type.

type SourceApplicationName:

string

param SourceApplicationName:

The name of the external application. This field is only required for the EVENT integration type.

type SourceType:

string

param SourceType:

The type of the data source. This field is only required for the EVENT integration type.

type Tags:

dict

param Tags:

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

  • (string) --

    • (string) --

rtype:

dict

returns:

Response Syntax

{
    'IntegrationAssociationId': 'string',
    'IntegrationAssociationArn': 'string'
}

Response Structure

  • (dict) --

    • IntegrationAssociationId (string) --

      The identifier for the integration association.

    • IntegrationAssociationArn (string) --

      The Amazon Resource Name (ARN) for the association.

DescribeContact (updated) Link ¶
Changes (response)
{'Contact': {'CustomerId': 'string'}}

This API is in preview release for Amazon Connect and is subject to change.

Describes the specified contact.

See also: AWS API Documentation

Request Syntax

client.describe_contact(
    InstanceId='string',
    ContactId='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.

rtype:

dict

returns:

Response Syntax

{
    'Contact': {
        'Arn': 'string',
        'Id': 'string',
        'InitialContactId': 'string',
        'PreviousContactId': 'string',
        'ContactAssociationId': 'string',
        'InitiationMethod': 'INBOUND'|'OUTBOUND'|'TRANSFER'|'QUEUE_TRANSFER'|'CALLBACK'|'API'|'DISCONNECT'|'MONITOR'|'EXTERNAL_OUTBOUND'|'WEBRTC_API'|'AGENT_REPLY'|'FLOW',
        'Name': 'string',
        'Description': 'string',
        'Channel': 'VOICE'|'CHAT'|'TASK'|'EMAIL',
        'QueueInfo': {
            'Id': 'string',
            'EnqueueTimestamp': datetime(2015, 1, 1)
        },
        'AgentInfo': {
            'Id': 'string',
            'ConnectedToAgentTimestamp': datetime(2015, 1, 1),
            'AgentPauseDurationInSeconds': 123,
            'HierarchyGroups': {
                'Level1': {
                    'Arn': 'string'
                },
                'Level2': {
                    'Arn': 'string'
                },
                'Level3': {
                    'Arn': 'string'
                },
                'Level4': {
                    'Arn': 'string'
                },
                'Level5': {
                    'Arn': 'string'
                }
            },
            'DeviceInfo': {
                'PlatformName': 'string',
                'PlatformVersion': 'string',
                'OperatingSystem': 'string'
            },
            'Capabilities': {
                'Video': 'SEND',
                'ScreenShare': 'SEND'
            }
        },
        'InitiationTimestamp': datetime(2015, 1, 1),
        'DisconnectTimestamp': datetime(2015, 1, 1),
        'LastUpdateTimestamp': datetime(2015, 1, 1),
        'LastPausedTimestamp': datetime(2015, 1, 1),
        'LastResumedTimestamp': datetime(2015, 1, 1),
        'TotalPauseCount': 123,
        'TotalPauseDurationInSeconds': 123,
        'ScheduledTimestamp': datetime(2015, 1, 1),
        'RelatedContactId': 'string',
        'WisdomInfo': {
            'SessionArn': 'string'
        },
        'CustomerId': 'string',
        'CustomerEndpoint': {
            'Type': 'TELEPHONE_NUMBER'|'VOIP'|'CONTACT_FLOW'|'CONNECT_PHONENUMBER_ARN'|'EMAIL_ADDRESS',
            'Address': 'string',
            'DisplayName': 'string'
        },
        'SystemEndpoint': {
            'Type': 'TELEPHONE_NUMBER'|'VOIP'|'CONTACT_FLOW'|'CONNECT_PHONENUMBER_ARN'|'EMAIL_ADDRESS',
            'Address': 'string',
            'DisplayName': 'string'
        },
        'QueueTimeAdjustmentSeconds': 123,
        'QueuePriority': 123,
        'Tags': {
            'string': 'string'
        },
        'ConnectedToSystemTimestamp': datetime(2015, 1, 1),
        'RoutingCriteria': {
            'Steps': [
                {
                    'Expiry': {
                        'DurationInSeconds': 123,
                        'ExpiryTimestamp': datetime(2015, 1, 1)
                    },
                    'Expression': {
                        'AttributeCondition': {
                            'Name': 'string',
                            'Value': 'string',
                            'ProficiencyLevel': ...,
                            'MatchCriteria': {
                                'AgentsCriteria': {
                                    'AgentIds': [
                                        'string',
                                    ]
                                }
                            },
                            'ComparisonOperator': 'string'
                        },
                        'AndExpression': [
                            {'... recursive ...'},
                        ],
                        'OrExpression': [
                            {'... recursive ...'},
                        ]
                    },
                    'Status': 'ACTIVE'|'INACTIVE'|'JOINED'|'EXPIRED'
                },
            ],
            'ActivationTimestamp': datetime(2015, 1, 1),
            'Index': 123
        },
        'Customer': {
            'DeviceInfo': {
                'PlatformName': 'string',
                'PlatformVersion': 'string',
                'OperatingSystem': 'string'
            },
            'Capabilities': {
                'Video': 'SEND',
                'ScreenShare': 'SEND'
            }
        },
        'Campaign': {
            'CampaignId': 'string'
        },
        'AnsweringMachineDetectionStatus': 'ANSWERED'|'UNDETECTED'|'ERROR'|'HUMAN_ANSWERED'|'SIT_TONE_DETECTED'|'SIT_TONE_BUSY'|'SIT_TONE_INVALID_NUMBER'|'FAX_MACHINE_DETECTED'|'VOICEMAIL_BEEP'|'VOICEMAIL_NO_BEEP'|'AMD_UNRESOLVED'|'AMD_UNANSWERED'|'AMD_ERROR'|'AMD_NOT_APPLICABLE',
        'CustomerVoiceActivity': {
            'GreetingStartTimestamp': datetime(2015, 1, 1),
            'GreetingEndTimestamp': datetime(2015, 1, 1)
        },
        'QualityMetrics': {
            'Agent': {
                'Audio': {
                    'QualityScore': ...,
                    'PotentialQualityIssues': [
                        'string',
                    ]
                }
            },
            'Customer': {
                'Audio': {
                    'QualityScore': ...,
                    'PotentialQualityIssues': [
                        'string',
                    ]
                }
            }
        },
        'DisconnectDetails': {
            'PotentialDisconnectIssue': 'string'
        },
        'AdditionalEmailRecipients': {
            'ToList': [
                {
                    'Address': 'string',
                    'DisplayName': 'string'
                },
            ],
            'CcList': [
                {
                    'Address': 'string',
                    'DisplayName': 'string'
                },
            ]
        },
        'SegmentAttributes': {
            'string': {
                'ValueString': 'string',
                'ValueMap': {
                    'string': {'... recursive ...'}
                },
                'ValueInteger': 123
            }
        }
    }
}

Response Structure

  • (dict) --

    • Contact (dict) --

      Information about the contact.

      • Arn (string) --

        The Amazon Resource Name (ARN) for the contact.

      • Id (string) --

        The identifier for the contact.

      • InitialContactId (string) --

        If this contact is related to other contacts, this is the ID of the initial contact.

      • PreviousContactId (string) --

        If this contact is not the first contact, this is the ID of the previous contact.

      • ContactAssociationId (string) --

        This is the root contactId which is used as a unique identifier for all subsequent contacts in a contact tree.

      • InitiationMethod (string) --

        Indicates how the contact was initiated.

      • Name (string) --

        The name of the contact.

      • Description (string) --

        The description of the contact.

      • Channel (string) --

        How the contact reached your contact center.

      • QueueInfo (dict) --

        If this contact was queued, this contains information about the queue.

        • Id (string) --

          The unique identifier for the queue.

        • EnqueueTimestamp (datetime) --

          The timestamp when the contact was added to the queue.

      • AgentInfo (dict) --

        Information about the agent who accepted the contact.

        • Id (string) --

          The identifier of the agent who accepted the contact.

        • ConnectedToAgentTimestamp (datetime) --

          The timestamp when the contact was connected to the agent.

        • AgentPauseDurationInSeconds (integer) --

          Agent pause duration for a contact in seconds.

        • HierarchyGroups (dict) --

          The agent hierarchy groups for the agent.

          • Level1 (dict) --

            The group at level one of the agent hierarchy.

            • Arn (string) --

              The Amazon Resource Name (ARN) of the group.

          • Level2 (dict) --

            The group at level two of the agent hierarchy.

            • Arn (string) --

              The Amazon Resource Name (ARN) of the group.

          • Level3 (dict) --

            The group at level three of the agent hierarchy.

            • Arn (string) --

              The Amazon Resource Name (ARN) of the group.

          • Level4 (dict) --

            The group at level four of the agent hierarchy.

            • Arn (string) --

              The Amazon Resource Name (ARN) of the group.

          • Level5 (dict) --

            The group at level five of the agent hierarchy.

            • Arn (string) --

              The Amazon Resource Name (ARN) of the group.

        • DeviceInfo (dict) --

          Information regarding Agent’s device.

          • PlatformName (string) --

            Name of the platform that the participant used for the call.

          • PlatformVersion (string) --

            Version of the platform that the participant used for the call.

          • OperatingSystem (string) --

            Operating system that the participant used for the call.

        • Capabilities (dict) --

          The configuration for the allowed video and screen sharing capabilities for participants present over the call. For more information, see Set up in-app, web, video calling, and screen sharing capabilities in the Amazon Connect Administrator Guide.

          • Video (string) --

            The configuration having the video and screen sharing capabilities for participants over the call.

          • ScreenShare (string) --

            The screen sharing capability that is enabled for the participant. SEND indicates the participant can share their screen.

      • InitiationTimestamp (datetime) --

        The date and time this contact was initiated, in UTC time. For INBOUND, this is when the contact arrived. For OUTBOUND, this is when the agent began dialing. For CALLBACK, this is when the callback contact was created. For TRANSFER and QUEUE_TRANSFER, this is when the transfer was initiated. For API, this is when the request arrived. For EXTERNAL_OUTBOUND, this is when the agent started dialing the external participant. For MONITOR, this is when the supervisor started listening to a contact.

      • DisconnectTimestamp (datetime) --

        The timestamp when the customer endpoint disconnected from Amazon Connect.

      • LastUpdateTimestamp (datetime) --

        The timestamp when contact was last updated.

      • LastPausedTimestamp (datetime) --

        The timestamp when the contact was last paused.

      • LastResumedTimestamp (datetime) --

        The timestamp when the contact was last resumed.

      • TotalPauseCount (integer) --

        Total pause count for a contact.

      • TotalPauseDurationInSeconds (integer) --

        Total pause duration for a contact in seconds.

      • ScheduledTimestamp (datetime) --

        The timestamp, in Unix epoch time format, at which to start running the inbound flow.

      • RelatedContactId (string) --

        The contactId that is related to this contact.

      • WisdomInfo (dict) --

        Information about Amazon Connect Wisdom.

        • SessionArn (string) --

          The Amazon Resource Name (ARN) of the Wisdom session.

      • CustomerId (string) --

        The customer's identification number. For example, the CustomerId may be a customer number from your CRM. You can create a Lambda function to pull the unique customer ID of the caller from your CRM system. If you enable Amazon Connect Voice ID capability, this attribute is populated with the CustomerSpeakerId of the caller.

      • CustomerEndpoint (dict) --

        The customer or external third party participant endpoint.

        • Type (string) --

          Type of endpoint.

        • Address (string) --

          Address of the endpoint.

        • DisplayName (string) --

          Display name of the endpoint.

      • SystemEndpoint (dict) --

        The system endpoint. For INBOUND, this is the phone number or email address that the customer dialed. For OUTBOUND and EXTERNAL_OUTBOUND, this is the outbound caller ID number assigned to the outbound queue that is used to dial the customer. For callback, this shows up as Softphone for calls handled by agents with softphone.

        • Type (string) --

          Type of endpoint.

        • Address (string) --

          Address of the endpoint.

        • DisplayName (string) --

          Display name of the endpoint.

      • QueueTimeAdjustmentSeconds (integer) --

        An integer that represents the queue time adjust to be applied to the contact, in seconds (longer / larger queue time are routed preferentially). Cannot be specified if the QueuePriority is specified. Must be statically defined and a valid integer value.

      • QueuePriority (integer) --

        An integer that represents the queue priority to be applied to the contact (lower priorities are routed preferentially). Cannot be specified if the QueueTimeAdjustmentSeconds is specified. Must be statically defined, must be larger than zero, and a valid integer value. Default Value is 5.

      • Tags (dict) --

        Tags associated with the contact. This contains both Amazon Web Services generated and user-defined tags.

        • (string) --

          • (string) --

      • ConnectedToSystemTimestamp (datetime) --

        The timestamp when customer endpoint connected to Amazon Connect.

      • RoutingCriteria (dict) --

        Latest routing criteria on the contact.

        • Steps (list) --

          List of routing steps. When Amazon Connect does not find an available agent meeting the requirements in a step for a given step duration, the routing criteria will move on to the next step sequentially until a join is completed with an agent. When all steps are exhausted, the contact will be offered to any agent in the queue.

          • (dict) --

            Step signifies the criteria to be used for routing to an agent

            • Expiry (dict) --

              An object to specify the expiration of a routing step.

              • DurationInSeconds (integer) --

                The number of seconds to wait before expiring the routing step.

              • ExpiryTimestamp (datetime) --

                The timestamp indicating when the routing step expires.

            • Expression (dict) --

              A tagged union to specify expression for a routing step.

              • AttributeCondition (dict) --

                An object to specify the predefined attribute condition.

                • Name (string) --

                  The name of predefined attribute.

                • Value (string) --

                  The value of predefined attribute.

                • ProficiencyLevel (float) --

                  The proficiency level of the condition.

                • MatchCriteria (dict) --

                  An object to define AgentsCriteria.

                  • AgentsCriteria (dict) --

                    An object to define agentIds.

                    • AgentIds (list) --

                      An object to specify a list of agents, by user ID.

                      • (string) --

                • ComparisonOperator (string) --

                  The operator of the condition.

              • AndExpression (list) --

                List of routing expressions which will be AND-ed together.

                • (dict) --

                  A tagged union to specify expression for a routing step.

              • OrExpression (list) --

                List of routing expressions which will be OR-ed together.

                • (dict) --

                  A tagged union to specify expression for a routing step.

            • Status (string) --

              Represents status of the Routing step.

        • ActivationTimestamp (datetime) --

          The timestamp indicating when the routing criteria is set to active. A routing criteria is activated when contact is transferred to a queue. ActivationTimestamp will be set on routing criteria for contacts in agent queue even though Routing criteria is never activated for contacts in agent queue.

        • Index (integer) --

          Information about the index of the routing criteria.

      • Customer (dict) --

        Information about the Customer on the contact.

        • DeviceInfo (dict) --

          Information regarding Customer’s device.

          • PlatformName (string) --

            Name of the platform that the participant used for the call.

          • PlatformVersion (string) --

            Version of the platform that the participant used for the call.

          • OperatingSystem (string) --

            Operating system that the participant used for the call.

        • Capabilities (dict) --

          The configuration for the allowed video and screen sharing capabilities for participants present over the call. For more information, see Set up in-app, web, video calling, and screen sharing capabilities in the Amazon Connect Administrator Guide.

          • Video (string) --

            The configuration having the video and screen sharing capabilities for participants over the call.

          • ScreenShare (string) --

            The screen sharing capability that is enabled for the participant. SEND indicates the participant can share their screen.

      • Campaign (dict) --

        Information associated with a campaign.

        • CampaignId (string) --

          A unique identifier for a campaign.

      • AnsweringMachineDetectionStatus (string) --

        Indicates how an outbound campaign call is actually disposed if the contact is connected to Amazon Connect.

      • CustomerVoiceActivity (dict) --

        Information about customer’s voice activity.

        • GreetingStartTimestamp (datetime) --

          Timestamp that measures the beginning of the customer greeting from an outbound voice call.

        • GreetingEndTimestamp (datetime) --

          Timestamp that measures the end of the customer greeting from an outbound voice call.

      • QualityMetrics (dict) --

        Information about the quality of the participant's media connection.

        • Agent (dict) --

          Information about the quality of Agent media connection.

          • Audio (dict) --

            Information about the audio quality of the Agent

            • QualityScore (float) --

              Number measuring the estimated quality of the media connection.

            • PotentialQualityIssues (list) --

              List of potential issues causing degradation of quality on a media connection. If the service did not detect any potential quality issues the list is empty.

              Valid values: HighPacketLoss | HighRoundTripTime | HighJitterBuffer

              • (string) --

        • Customer (dict) --

          Information about the quality of Customer media connection.

          • Audio (dict) --

            Information about the audio quality of the Customer

            • QualityScore (float) --

              Number measuring the estimated quality of the media connection.

            • PotentialQualityIssues (list) --

              List of potential issues causing degradation of quality on a media connection. If the service did not detect any potential quality issues the list is empty.

              Valid values: HighPacketLoss | HighRoundTripTime | HighJitterBuffer

              • (string) --

      • DisconnectDetails (dict) --

        Information about the call disconnect experience.

        • PotentialDisconnectIssue (string) --

          Indicates the potential disconnection issues for a call. This field is not populated if the service does not detect potential issues.

      • AdditionalEmailRecipients (dict) --

        List of additional email addresses for an email contact.

        • ToList (list) --

          List of additional TO email recipients for an email contact.

          • (dict) --

            Information about the email recipient

            • Address (string) --

              Address of the email recipient.

              Type: String

              Length Constraints: Minimum length of 1. Maximum length of 256.

            • DisplayName (string) --

              Display name of the email recipient.

              Type: String

              Length Constraints: Minimum length of 1. Maximum length of 256.

        • CcList (list) --

          List of additional CC email recipients for an email contact.

          • (dict) --

            Information about the email recipient

            • Address (string) --

              Address of the email recipient.

              Type: String

              Length Constraints: Minimum length of 1. Maximum length of 256.

            • DisplayName (string) --

              Display name of the email recipient.

              Type: String

              Length Constraints: Minimum length of 1. Maximum length of 256.

      • SegmentAttributes (dict) --

        A set of system defined key-value pairs stored on individual contact segments using an attribute map. The attributes are standard Amazon Connect attributes and can be accessed in flows. Attribute keys can include only alphanumeric, -, and _ characters. This field can be used to show channel subtype. For example, connect:Guide or connect:SMS.

        • (string) --

          • (dict) --

            A value for a segment attribute. This is structured as a map where the key is valueString and the value is a string.

            • ValueString (string) --

              The value of a segment attribute.

            • ValueMap (dict) --

              The value of a segment attribute.

              • (string) --

                • (dict) --

                  A value for a segment attribute. This is structured as a map where the key is valueString and the value is a string.

            • ValueInteger (integer) --

              The value of a segment attribute.

DescribeInstanceAttribute (updated) Link ¶
Changes (request, response)
Request
{'AttributeType': {'MULTI_PARTY_CHAT_CONFERENCE'}}
Response
{'Attribute': {'AttributeType': {'MULTI_PARTY_CHAT_CONFERENCE'}}}

This API is in preview release for Amazon Connect and is subject to change.

Describes the specified instance attribute.

See also: AWS API Documentation

Request Syntax

client.describe_instance_attribute(
    InstanceId='string',
    AttributeType='INBOUND_CALLS'|'OUTBOUND_CALLS'|'CONTACTFLOW_LOGS'|'CONTACT_LENS'|'AUTO_RESOLVE_BEST_VOICES'|'USE_CUSTOM_TTS_VOICES'|'EARLY_MEDIA'|'MULTI_PARTY_CONFERENCE'|'HIGH_VOLUME_OUTBOUND'|'ENHANCED_CONTACT_MONITORING'|'ENHANCED_CHAT_MONITORING'|'MULTI_PARTY_CHAT_CONFERENCE'
)
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 AttributeType:

string

param AttributeType:

[REQUIRED]

The type of attribute.

rtype:

dict

returns:

Response Syntax

{
    'Attribute': {
        'AttributeType': 'INBOUND_CALLS'|'OUTBOUND_CALLS'|'CONTACTFLOW_LOGS'|'CONTACT_LENS'|'AUTO_RESOLVE_BEST_VOICES'|'USE_CUSTOM_TTS_VOICES'|'EARLY_MEDIA'|'MULTI_PARTY_CONFERENCE'|'HIGH_VOLUME_OUTBOUND'|'ENHANCED_CONTACT_MONITORING'|'ENHANCED_CHAT_MONITORING'|'MULTI_PARTY_CHAT_CONFERENCE',
        'Value': 'string'
    }
}

Response Structure

  • (dict) --

    • Attribute (dict) --

      The type of attribute.

      • AttributeType (string) --

        The type of attribute.

      • Value (string) --

        The value of the attribute.

ListInstanceAttributes (updated) Link ¶
Changes (response)
{'Attributes': {'AttributeType': {'MULTI_PARTY_CHAT_CONFERENCE'}}}

This API is in preview release for Amazon Connect and is subject to change.

Returns a paginated list of all attribute types for the given instance.

See also: AWS API Documentation

Request Syntax

client.list_instance_attributes(
    InstanceId='string',
    NextToken='string',
    MaxResults=123
)
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 NextToken:

string

param NextToken:

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

type MaxResults:

integer

param MaxResults:

The maximum number of results to return per page.

rtype:

dict

returns:

Response Syntax

{
    'Attributes': [
        {
            'AttributeType': 'INBOUND_CALLS'|'OUTBOUND_CALLS'|'CONTACTFLOW_LOGS'|'CONTACT_LENS'|'AUTO_RESOLVE_BEST_VOICES'|'USE_CUSTOM_TTS_VOICES'|'EARLY_MEDIA'|'MULTI_PARTY_CONFERENCE'|'HIGH_VOLUME_OUTBOUND'|'ENHANCED_CONTACT_MONITORING'|'ENHANCED_CHAT_MONITORING'|'MULTI_PARTY_CHAT_CONFERENCE',
            'Value': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Attributes (list) --

      The attribute types.

      • (dict) --

        A toggle for an individual feature at the instance level.

        • AttributeType (string) --

          The type of attribute.

        • Value (string) --

          The value of the attribute.

    • NextToken (string) --

      If there are additional results, this is the token for the next set of results.

ListIntegrationAssociations (updated) Link ¶
Changes (request, response)
Request
{'IntegrationType': {'COGNITO_USER_POOL'}}
Response
{'IntegrationAssociationSummaryList': {'IntegrationType': {'COGNITO_USER_POOL'}}}

Provides summary information about the Amazon Web Services resource associations for the specified Amazon Connect instance.

See also: AWS API Documentation

Request Syntax

client.list_integration_associations(
    InstanceId='string',
    IntegrationType='EVENT'|'VOICE_ID'|'PINPOINT_APP'|'WISDOM_ASSISTANT'|'WISDOM_KNOWLEDGE_BASE'|'WISDOM_QUICK_RESPONSES'|'Q_MESSAGE_TEMPLATES'|'CASES_DOMAIN'|'APPLICATION'|'FILE_SCANNER'|'SES_IDENTITY'|'ANALYTICS_CONNECTOR'|'CALL_TRANSFER_CONNECTOR'|'COGNITO_USER_POOL',
    NextToken='string',
    MaxResults=123,
    IntegrationArn='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 IntegrationType:

string

param IntegrationType:

The integration type.

type NextToken:

string

param NextToken:

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

type MaxResults:

integer

param MaxResults:

The maximum number of results to return per page.

type IntegrationArn:

string

param IntegrationArn:

The Amazon Resource Name (ARN) of the integration.

rtype:

dict

returns:

Response Syntax

{
    'IntegrationAssociationSummaryList': [
        {
            'IntegrationAssociationId': 'string',
            'IntegrationAssociationArn': 'string',
            'InstanceId': 'string',
            'IntegrationType': 'EVENT'|'VOICE_ID'|'PINPOINT_APP'|'WISDOM_ASSISTANT'|'WISDOM_KNOWLEDGE_BASE'|'WISDOM_QUICK_RESPONSES'|'Q_MESSAGE_TEMPLATES'|'CASES_DOMAIN'|'APPLICATION'|'FILE_SCANNER'|'SES_IDENTITY'|'ANALYTICS_CONNECTOR'|'CALL_TRANSFER_CONNECTOR'|'COGNITO_USER_POOL',
            'IntegrationArn': 'string',
            'SourceApplicationUrl': 'string',
            'SourceApplicationName': 'string',
            'SourceType': 'SALESFORCE'|'ZENDESK'|'CASES'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • IntegrationAssociationSummaryList (list) --

      The associations.

      • (dict) --

        Contains summary information about the associated AppIntegrations.

        • IntegrationAssociationId (string) --

          The identifier for the AppIntegration association.

        • IntegrationAssociationArn (string) --

          The Amazon Resource Name (ARN) for the AppIntegration association.

        • InstanceId (string) --

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

        • IntegrationType (string) --

          The integration type.

        • IntegrationArn (string) --

          The Amazon Resource Name (ARN) for the AppIntegration.

        • SourceApplicationUrl (string) --

          The URL for the external application.

        • SourceApplicationName (string) --

          The user-provided, friendly name for the external application.

        • SourceType (string) --

          The name of the source.

    • NextToken (string) --

      If there are additional results, this is the token for the next set of results.

StartChatContact (updated) Link ¶
Changes (request)
{'CustomerId': 'string'}

Initiates a flow to start a new chat for the customer. Response of this API provides a token required to obtain credentials from the CreateParticipantConnection API in the Amazon Connect Participant Service.

When a new chat contact is successfully created, clients must subscribe to the participant’s connection for the created chat within 5 minutes. This is achieved by invoking CreateParticipantConnection with WEBSOCKET and CONNECTION_CREDENTIALS.

A 429 error occurs in the following situations:

  • API rate limit is exceeded. API TPS throttling returns a TooManyRequests exception.

  • The quota for concurrent active chats is exceeded. Active chat throttling returns a LimitExceededException.

If you use the ChatDurationInMinutes parameter and receive a 400 error, your account may not support the ability to configure custom chat durations. For more information, contact Amazon Web Services Support.

For more information about chat, see the following topics in the Amazon Connect Administrator Guide:

See also: AWS API Documentation

Request Syntax

client.start_chat_contact(
    InstanceId='string',
    ContactFlowId='string',
    Attributes={
        'string': 'string'
    },
    ParticipantDetails={
        'DisplayName': 'string'
    },
    InitialMessage={
        'ContentType': 'string',
        'Content': 'string'
    },
    ClientToken='string',
    ChatDurationInMinutes=123,
    SupportedMessagingContentTypes=[
        'string',
    ],
    PersistentChat={
        'RehydrationType': 'ENTIRE_PAST_SESSION'|'FROM_SEGMENT',
        'SourceContactId': 'string'
    },
    RelatedContactId='string',
    SegmentAttributes={
        'string': {
            'ValueString': 'string',
            'ValueMap': {
                'string': {'... recursive ...'}
            },
            'ValueInteger': 123
        }
    },
    CustomerId='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 ContactFlowId:

string

param ContactFlowId:

[REQUIRED]

The identifier of the flow for initiating the chat. To see the ContactFlowId in the Amazon Connect admin website, on the navigation menu go to Routing, Flows. Choose the flow. On the flow page, under the name of the flow, choose Show additional flow information. The ContactFlowId is the last part of the ARN, shown here in bold:

arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/contact-flow/846ec553-a005-41c0-8341-xxxxxxxxxxxx

type Attributes:

dict

param Attributes:

A custom key-value pair using an attribute map. The attributes are standard Amazon Connect attributes. They 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.

  • (string) --

    • (string) --

type ParticipantDetails:

dict

param ParticipantDetails:

[REQUIRED]

Information identifying the participant.

  • DisplayName (string) -- [REQUIRED]

    Display name of the participant.

type InitialMessage:

dict

param InitialMessage:

The initial message to be sent to the newly created chat. If you have a Lex bot in your flow, the initial message is not delivered to the Lex bot.

  • ContentType (string) -- [REQUIRED]

    The type of the content. Supported types are text/plain, text/markdown, application/json, and application/vnd.amazonaws.connect.message.interactive.response.

  • Content (string) -- [REQUIRED]

    The content of the chat message.

    • For text/plain and text/markdown, the Length Constraints are Minimum of 1, Maximum of 1024.

    • For application/json, the Length Constraints are Minimum of 1, Maximum of 12000.

    • For application/vnd.amazonaws.connect.message.interactive.response, the Length Constraints are Minimum of 1, Maximum of 12288.

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 ChatDurationInMinutes:

integer

param ChatDurationInMinutes:

The total duration of the newly started chat session. If not specified, the chat session duration defaults to 25 hour. The minimum configurable time is 60 minutes. The maximum configurable time is 10,080 minutes (7 days).

type SupportedMessagingContentTypes:

list

param SupportedMessagingContentTypes:

The supported chat message content types. Supported types are text/plain, text/markdown, application/json, application/vnd.amazonaws.connect.message.interactive, and application/vnd.amazonaws.connect.message.interactive.response.

Content types must always contain text/plain. You can then put any other supported type in the list. For example, all the following lists are valid because they contain text/plain: [text/plain, text/markdown, application/json], [text/markdown, text/plain], [text/plain, application/json, application/vnd.amazonaws.connect.message.interactive.response].

  • (string) --

type PersistentChat:

dict

param PersistentChat:

Enable persistent chats. For more information about enabling persistent chat, and for example use cases and how to configure for them, see Enable persistent chat.

  • RehydrationType (string) --

    The contactId that is used for rehydration depends on the rehydration type. RehydrationType is required for persistent chat.

    • ENTIRE_PAST_SESSION: Rehydrates a chat from the most recently terminated past chat contact of the specified past ended chat session. To use this type, provide the initialContactId of the past ended chat session in the sourceContactId field. In this type, Amazon Connect determines the most recent chat contact on the specified chat session that has ended, and uses it to start a persistent chat.

    • FROM_SEGMENT: Rehydrates a chat from the past chat contact that is specified in the sourceContactId field.

    The actual contactId used for rehydration is provided in the response of this API.

  • SourceContactId (string) --

    The contactId from which a persistent chat session must be started.

type RelatedContactId:

string

param RelatedContactId:

The unique identifier for an Amazon Connect contact. This identifier is related to the chat starting.

type SegmentAttributes:

dict

param SegmentAttributes:

A set of system defined key-value pairs stored on individual contact segments using an attribute map. The attributes are standard Amazon Connect attributes. They can be accessed in flows.

Attribute keys can include only alphanumeric, -, and _.

This field can be used to show channel subtype, such as connect:Guide.

  • (string) --

    • (dict) --

      A value for a segment attribute. This is structured as a map where the key is valueString and the value is a string.

      • ValueString (string) --

        The value of a segment attribute.

      • ValueMap (dict) --

        The value of a segment attribute.

        • (string) --

          • (dict) --

            A value for a segment attribute. This is structured as a map where the key is valueString and the value is a string.

      • ValueInteger (integer) --

        The value of a segment attribute.

type CustomerId:

string

param CustomerId:

The customer's identification number. For example, the CustomerId may be a customer number from your CRM.

rtype:

dict

returns:

Response Syntax

{
    'ContactId': 'string',
    'ParticipantId': 'string',
    'ParticipantToken': 'string',
    'ContinuedFromContactId': 'string'
}

Response Structure

  • (dict) --

    • ContactId (string) --

      The identifier of this contact within the Amazon Connect instance.

    • ParticipantId (string) --

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

    • ParticipantToken (string) --

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

    • ContinuedFromContactId (string) --

      The contactId from which a persistent chat session is started. This field is populated only for persistent chats.

UpdateInstanceAttribute (updated) Link ¶
Changes (request)
{'AttributeType': {'MULTI_PARTY_CHAT_CONFERENCE'}}

This API is in preview release for Amazon Connect and is subject to change.

Updates the value for the specified attribute type.

See also: AWS API Documentation

Request Syntax

client.update_instance_attribute(
    InstanceId='string',
    AttributeType='INBOUND_CALLS'|'OUTBOUND_CALLS'|'CONTACTFLOW_LOGS'|'CONTACT_LENS'|'AUTO_RESOLVE_BEST_VOICES'|'USE_CUSTOM_TTS_VOICES'|'EARLY_MEDIA'|'MULTI_PARTY_CONFERENCE'|'HIGH_VOLUME_OUTBOUND'|'ENHANCED_CONTACT_MONITORING'|'ENHANCED_CHAT_MONITORING'|'MULTI_PARTY_CHAT_CONFERENCE',
    Value='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 AttributeType:

string

param AttributeType:

[REQUIRED]

The type of attribute.

type Value:

string

param Value:

[REQUIRED]

The value for the attribute. Maximum character limit is 100.

returns:

None