start_assistant_contact
¶
start_assistant_contact(
instance_id: InstanceId,
ai_agent: AiAgentInput,
participant_details: ParticipantDetails,
*,
config_overrides: Optional[ConnectClientConfig] = None,
initial_message: Optional[ChatMessage] = None,
attributes: Optional[Attributes] = None,
client_token: Optional[ClientToken] = None,
persistent_chat: Optional[PersistentChat] = None,
related_contact_id: Optional[ContactId] = None,
) -> StartAssistantContactResponse
Starts a chat contact with an AI agent.
Use the returned ParticipantToken with the CreateParticipantConnection operation.
For more information about chat, 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.
-
ai_agent(AiAgentInput) –The AI agent configuration for this contact.
-
participant_details(ParticipantDetails) –The display name and other details that identify the chat participant.
-
initial_message(Optional[ChatMessage], default:None) –The initial message to send to the newly created chat.
-
attributes(Optional[Attributes], default:None) –A map of key-value pairs to associate with the contact. We make these attributes available to flows as standard contact attributes.
You can provide up to 32,768 UTF-8 bytes across all key-value pairs for each contact.
-
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.
-
persistent_chat(Optional[PersistentChat], default:None) –The configuration that enables persistent chat. For more information about persistent chat and its use cases, see Enable persistent chat.
-
related_contact_id(Optional[ContactId], default:None) –The identifier of an Connect Customer contact related to the new assistant contact.
You cannot provide both
RelatedContactIdandPersistentChat.
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.
-
InvalidParameterException–One or more of the specified parameters are not valid.
-
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/connect.py
22800 22801 22802 22803 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 22868 22869 22870 22871 22872 22873 22874 22875 22876 22877 22878 | |