start_web_rtc_contact
async
¶
start_web_rtc_contact(
contact_flow_id: ContactFlowId,
instance_id: InstanceId,
participant_details: ParticipantDetails,
*,
config_overrides: Optional[AsyncConnectClientConfig] = None,
attributes: Optional[Attributes] = None,
client_token: Optional[ClientToken] = None,
allowed_capabilities: Optional[AllowedCapabilities] = None,
related_contact_id: Optional[ContactId] = None,
references: Optional[ContactReferences] = None,
description: Optional[Description] = None,
segment_attributes: Optional[SegmentAttributes] = None,
) -> StartWebRTCContactResponse
Places an inbound in-app, web, or video call to a contact, and then initiates the flow. It performs the actions in the flow that are specified (in ContactFlowId) and present in the Connect Customer instance (specified as InstanceId).
Parameters:
-
attributes(Optional[Attributes], default:None) –A custom key-value pair using an attribute map. The attributes are standard Connect Customer attributes, and can be accessed in flows just like any other contact attributes.
There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys can include only alphanumeric, -, and _ characters.
-
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.
The token is valid for 7 days after creation. If a contact is already started, the contact ID is returned.
-
contact_flow_id(ContactFlowId) –The identifier of the flow for the call. To see the ContactFlowId in the Connect Customer admin website, on the navigation menu go to Routing, Flows. Choose the flow. On the flow page, under the name of the flow, choose Show additional flow information. The ContactFlowId is the last part of the ARN, shown here in bold:
arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/contact-flow/846ec553-a005-41c0-8341-xxxxxxxxxxxx
-
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.
-
allowed_capabilities(Optional[AllowedCapabilities], default:None) –Information about the video sharing capabilities of the participants (customer, agent).
-
related_contact_id(Optional[ContactId], default:None) –The unique identifier for an Connect Customer contact. This identifier is related to the contact starting.
-
references(Optional[ContactReferences], default:None) –A formatted URL that is shown to an agent in the Contact Control Panel (CCP). Tasks can have the following reference types at the time of creation:
URL|NUMBER|STRING|DATE|EMAIL.ATTACHMENTis not a supported reference type during task creation. -
description(Optional[Description], default:None) –A description of the task that is shown to an agent in the Contact Control Panel (CCP).
-
segment_attributes(Optional[SegmentAttributes], default:None) –A map of system-defined attributes for the WebRTC contact segment. Use the
connect:Subtypeattribute to specify the channel subtype, such asconnect:WebRTC.
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.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connect/_services/async_connect.py
24477 24478 24479 24480 24481 24482 24483 24484 24485 24486 24487 24488 24489 24490 24491 24492 24493 24494 24495 24496 24497 24498 24499 24500 24501 24502 24503 24504 24505 24506 24507 24508 24509 24510 24511 24512 24513 24514 24515 24516 24517 24518 24519 24520 24521 24522 24523 24524 24525 24526 24527 24528 24529 24530 24531 24532 24533 24534 24535 24536 24537 24538 24539 24540 24541 24542 24543 24544 24545 24546 24547 24548 24549 24550 24551 24552 24553 24554 24555 24556 24557 24558 24559 24560 24561 24562 24563 24564 24565 24566 24567 24568 24569 24570 24571 24572 24573 24574 24575 24576 24577 24578 24579 24580 24581 24582 24583 24584 24585 24586 24587 24588 24589 | |