start_assistant_contact
async
¶
start_assistant_contact(
instance_id: InstanceId,
ai_agent: AiAgentInput,
participant_details: ParticipantDetails,
*,
config_overrides: Optional[AsyncConnectClientConfig] = 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/async_connect.py
23340 23341 23342 23343 23344 23345 23346 23347 23348 23349 23350 23351 23352 23353 23354 23355 23356 23357 23358 23359 23360 23361 23362 23363 23364 23365 23366 23367 23368 23369 23370 23371 23372 23373 23374 23375 23376 23377 23378 23379 23380 23381 23382 23383 23384 23385 23386 23387 23388 23389 23390 23391 23392 23393 23394 23395 23396 23397 23398 23399 23400 23401 23402 23403 23404 23405 23406 23407 23408 23409 23410 23411 23412 23413 23414 23415 23416 23417 23418 23419 | |