Hello,
I would like to know how we can retrieve for a specific time, how many chat interaction are handled for each agent in order to propose the widget chat from the website. (if agent can handle chat, the customer can start a chat trough widget, if not the widget is hidden).
This API is used : api/v2/analytics/queues/observations/query with this request :
{
"filter": {
"type": "and",
"predicates": [
{
"type": "dimension",
"dimension": "mediaType",
"operator": "matches",
"value": "chat"
}, {
"type": "dimension",
"dimension": "queueId",
"operator": "matches",
"value": "ffe41a7d-c638-462c-b154-jzdnb69ed7f0"
}
]
},
"metrics": ["oInteracting"]
}
I have observed when the agent is in conversation with customer the metric oInteracting is +1,and when the agent finishs the conversation it means "clic close chat button" the oInteracting metric is decreased - 1, so the wrapupcode code selection is not taken in consideration in the evaluation of this metric.
For example, if the agent has a max chat utilisation configured with the value 2, if the agent is handling 2 interactions, for the first interaction, the agent is interacting and for the second interaction he clicked on the close chat button and never selects a wrapupcode.
This sitation leads to the "oInteraction" metric" is 1, It means for the specific development, the agent is available for another chat interaction although in true he isnt, because the metric "ointeracting" doesnt take in consideration if the wrapupcode has been selected. Contrary to the voice interactions, which would end without a wrap up code.
Which metric/formula I have to use for know for a specifc agent, how many chat interaction are handled for a specific time ( with wrapupcode selected)?
What is the formula used by Purecloud for know if a agent is available or not for handle another chat interaction?
Many thanks. for your hints.