start_outbound_chat_contact
async
¶
start_outbound_chat_contact(
source_endpoint: Endpoint,
destination_endpoint: Endpoint,
instance_id: InstanceId,
segment_attributes: SegmentAttributes,
contact_flow_id: ContactFlowId,
*,
config_overrides: Optional[AsyncConnectClientConfig] = None,
attributes: Optional[Attributes] = None,
chat_duration_in_minutes: Optional[ChatDurationInMinutes] = None,
participant_details: Optional[ParticipantDetails] = None,
initial_system_message: Optional[ChatMessage] = None,
initial_templated_system_message: Optional[TemplatedMessageConfig] = None,
related_contact_id: Optional[ContactId] = None,
supported_messaging_content_types: Optional[SupportedMessagingContentTypes] = None,
client_token: Optional[ClientToken] = None,
) -> StartOutboundChatContactResponse
Initiates a new outbound SMS or WhatsApp contact to a customer. Response of this API provides the ContactId of the outbound SMS or WhatsApp contact created.
SourceEndpoint only supports Endpoints with CONNECT_PHONENUMBER_ARN as Type and DestinationEndpoint only supports Endpoints with TELEPHONE_NUMBER as Type. ContactFlowId initiates the flow to manage the new contact created.
This API can be used to initiate outbound SMS or WhatsApp contacts for an agent, or it can also deflect an ongoing contact to an outbound SMS or WhatsApp contact by using the StartOutboundChatContact Flow Action.
For more information about using SMS or WhatsApp in Connect Customer, see the following topics in the Connect Customer Administrator Guide:
Parameters:
-
instance_id(InstanceId) –The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
-
segment_attributes(SegmentAttributes) –A set of system defined key-value pairs stored on individual contact segments 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 show channel subtype, such as
connect:SMSandconnect:WhatsApp.
-
-
attributes(Optional[Attributes], default:None) –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.
-
contact_flow_id(ContactFlowId) –The identifier of the flow for the call. To see the ContactFlowId in the Connect Customer console user interface, on the navigation menu go to Routing, Contact 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/123ec456-a007-89c0-1234-xxxxxxxxxxxx
-
-
chat_duration_in_minutes(Optional[ChatDurationInMinutes], default:None) –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).
-
related_contact_id(Optional[ContactId], default:None) –The unique identifier for an Connect Customer contact. This identifier is related to the contact starting.
-
supported_messaging_content_types(Optional[SupportedMessagingContentTypes], default:None) –The supported chat message content types. Supported types are:
-
text/plain -
text/markdown -
application/json, application/vnd.amazonaws.connect.message.interactive -
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 containtext/plain:-
[text/plain, text/markdown, application/json] -
[text/markdown, text/plain] -
[text/plain, application/json, application/vnd.amazonaws.connect.message.interactive.response]
-
-
client_token(Optional[ClientToken], default:None) –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 token is valid for 7 days after creation. If a contact is already started, the contact ID is returned.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
ConflictException–Operation cannot be performed at this time as there is a conflict with another operation or contact state.
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidRequestException–The request is not valid.
-
LimitExceededException–The allowed limit for the resource has been exceeded.
-
ResourceNotFoundException–The specified resource was not found.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connect/_services/async_connect.py
23908 23909 23910 23911 23912 23913 23914 23915 23916 23917 23918 23919 23920 23921 23922 23923 23924 23925 23926 23927 23928 23929 23930 23931 23932 23933 23934 23935 23936 23937 23938 23939 23940 23941 23942 23943 23944 23945 23946 23947 23948 23949 23950 23951 23952 23953 23954 23955 23956 23957 23958 23959 23960 23961 23962 23963 23964 23965 23966 23967 23968 23969 23970 23971 23972 23973 23974 23975 23976 23977 23978 23979 23980 23981 23982 23983 23984 23985 23986 23987 23988 23989 23990 23991 23992 23993 23994 23995 23996 23997 23998 23999 24000 24001 24002 24003 24004 24005 24006 24007 24008 24009 24010 24011 24012 | |