From Bright Pattern Documentation
Jump to: navigation, search

inviteToChatConference

Adds another agent to the chat. If interactionId isn't specified, it will work with the active interaction.

Request

Syntax

inviteToChatConference(agentID: string, interactionId?: string): Promise<OperationResult<null>>

Parameters

Parameter Parameter Values Data Type Optional/Required Description
partyId String Required ID of the user (agent) you want to invite to the chat. The main way to obtain agent IDs is using the method "getTeamMembers".
interactionId String Optional The ID of the chat interaction where you want to add a new party. If not specified, the active interaction will be used.

Example Request

agentsList.onclick = (e) => {
       const agentID = e.target.getAttribute("data-agent-id")
       adApi.inviteToChatConference(agentID)
   }

Return Value

null

< Previous | Next >