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
23107 23108 23109 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 23175 23176 23177 23178 23179 23180 23181 23182 23183 23184 23185 23186 | |