send_chat_integration_event
async
¶
send_chat_integration_event(
source_id: SourceId,
destination_id: DestinationId,
event: ChatEvent,
*,
config_overrides: Optional[AsyncConnectClientConfig] = None,
subtype: Optional[Subtype] = None,
new_session_details: Optional[NewSessionDetails] = None,
) -> SendChatIntegrationEventResponse
Processes chat integration events from Amazon Web Services or external integrations to Connect Customer. A chat integration event includes:
-
SourceId, DestinationId, and Subtype: a set of identifiers, uniquely representing a chat
-
ChatEvent: details of the chat action to perform such as sending a message, event, or disconnecting from a chat
When a chat integration event is sent with chat identifiers that do not map to an active chat contact, a new chat contact is also created before handling chat action.
Access to this API is currently restricted to Amazon Web Services End User Messaging for supporting SMS integration.
Parameters:
-
source_id(SourceId) –External identifier of chat customer participant, used in part to uniquely identify a chat. For SMS, this is the E164 phone number of the chat customer participant.
-
destination_id(DestinationId) –Chat system identifier, used in part to uniquely identify chat. This is associated with the Connect Customer instance and flow to be used to start chats. For Server Migration Service, this is the phone number destination of inbound Server Migration Service messages represented by an Amazon Web Services End User Messaging phone number ARN.
-
subtype(Optional[Subtype], default:None) –Classification of a channel. This is used in part to uniquely identify chat.
Valid value:
["connect:sms", connect:"WhatsApp"] -
event(ChatEvent) –Chat integration event payload
-
new_session_details(Optional[NewSessionDetails], default:None) –Contact properties to apply when starting a new chat. If the integration event is handled with an existing chat, this is ignored.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidRequestException–The request is not valid.
-
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
23110 23111 23112 23113 23114 23115 23116 23117 23118 23119 23120 23121 23122 23123 23124 23125 23126 23127 23128 23129 23130 23131 23132 23133 23134 23135 23136 23137 23138 23139 23140 23141 23142 23143 23144 23145 23146 23147 23148 23149 23150 23151 23152 23153 23154 23155 23156 23157 23158 23159 23160 23161 23162 23163 23164 23165 23166 23167 23168 23169 23170 23171 23172 23173 23174 | |