Awaited person types
If your organization uses long-running conversations, agents might leave a conversation, and the conversation’s state switches to UNASSIGNED
. How Unblu should react may depend on the reason the agent left:
-
If the agent left because they were able to resolve the visitor’s issue, the conversation can simply be requeued when the visitor has another issue. In that case, you may want the visitor to go through the onboarding process again, so that a bot can try to resolve the issue before putting the conversation back in the queue.
-
If, on the other hand, the agent left because, say, their shift ended while they were waiting for a reply from the visitor, the visitor shouldn’t have to go through the onboarding process again. Instead, the conversation should be added to the queue directly.
To help distinguish between such cases, you can specify which person type must react next in a conversation. This is referred to as the awaited person type and can be NONE
, VISITOR
, or AGENT
.
-
If the agent resolves the visitor’s issue, the conversation isn’t waiting for anyone, and the awaited person type is
NONE
. -
If the agent isn’t able to resolve the visitor’s issue because the latter didn’t respond in a timely manner, they’re waiting for the visitor, and the awaited person type is
VISITOR
. -
If the visitor asks a new question after the agent resolved the previous issue and left the conversation, the visitor is onboarded again and the conversation is requeued. In this case, the awaited person type is
AGENT
.
Configuring the awaited person type
There are a number of configuration properties releated to awaited person types.
-
If com.unblu.conversation.awaitedpersontype.onAssigneeLeaveShowChangeAwaitedPersonTypeDialog is
true
, the assigned agent is automatically shown a modal dialog asking them to select the awaited person type when they leave a conversation.The options displayed in the modal dialog are specified in com.unblu.conversation.ui.changeAwaitedPersonTypeDialogOptions. The texts of the modal dialog are specified in the following text properties:
-
com.unblu.conversation.ui.changeAwaitedPersonTypeOnLeaveDialogTitle
-
com.unblu.conversation.ui.changeAwaitedPersonTypeOnLeaveDialogDescription
-
com.unblu.conversation.ui.changeAwaitedPersonTypeAgentOptionLabel
-
com.unblu.conversation.ui.changeAwaitedPersonTypeNoneOptionLabel
-
com.unblu.conversation.ui.changeAwaitedPersonTypeVisitorOptionLabel
-
-
com.unblu.conversation.awaitedpersontype.allowChangeConversationAwaitedPersonType defines which participants in a conversation can set the awaited person type. Participant types listed here have a Change awaited person option in the Agent Desk overflow menu.
-
If com.unblu.conversation.awaitedpersontype.autoSetAwaitedPersonTypeToAgentOnConversationQueued is
true
, Unblu automatically sets the awaited person type of conversations in aQUEUED
state toAGENT
. -
If com.unblu.conversation.awaitedpersontype.autoSetAwaitedPersonTypeToNoneOnConversationActive is
true
, Unblu automatically sets the awaited person type of conversations in anACTIVE
state toNONE
. -
If com.unblu.conversation.awaitedpersontype.autoRequeueUnassignedConversationAwaitingForAgent is
true
, Unblu automatically queues unassigned conversations with the awaited person type set toAGENT
.
Using awaited person types with the Unblu web API
You can access and manipulate the awaited person type with the Unblu web API.
-
ConversationData
type has the following fields related to the awaited person type:-
awaitedPersonType
is one ofAGENT
,VISITOR
, orNONE
. -
awaitedPersonTypeChangeTimestamp
is a Unix timestamp specifying when the awaited person type last changed.
-
-
To set the awaited person type, call the endpoint
/conversations/{conversationId}/setAwaitedPersonType
.
When searching for conversations through the endpoints /conversations/search
and /conversationhistory/search
, you can filter by awaited person type.
The webhook event conversations.awaitedpersontype_changed
is triggered when the awaited person type changes.
See also
-
For more information on how to set the awaited person type in the Agent Desk, refer to Leave conversation action in the Agent Desk guide.
-
For more information on awaited person types in the Unblu web API, refer to the Unblu web API reference.