send_chat_integration_event
¶
send_chat_integration_event(
source_id: SourceId,
destination_id: DestinationId,
event: ChatEvent,
*,
config_overrides: Optional[ConnectClientConfig] = 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/connect.py
22804 22805 22806 22807 22808 22809 22810 22811 22812 22813 22814 22815 22816 22817 22818 22819 22820 22821 22822 22823 22824 22825 22826 22827 22828 22829 22830 22831 22832 22833 22834 22835 22836 22837 22838 22839 22840 22841 22842 22843 22844 22845 22846 22847 22848 22849 22850 22851 22852 22853 22854 22855 22856 22857 22858 22859 22860 22861 22862 22863 22864 22865 22866 22867 | |