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
23031 23032 23033 23034 23035 23036 23037 23038 23039 23040 23041 23042 23043 23044 23045 23046 23047 23048 23049 23050 23051 23052 23053 23054 23055 23056 23057 23058 23059 23060 23061 23062 23063 23064 23065 23066 23067 23068 23069 23070 23071 23072 23073 23074 23075 23076 23077 23078 23079 23080 23081 23082 23083 23084 23085 23086 23087 23088 23089 23090 23091 23092 23093 23094 23095 23096 23097 23098 23099 23100 23101 23102 23103 23104 23105 23106 23107 23108 23109 | |