How do I find the duration time of chat with live agent?

Anders Engelund
Tera Expert

Hi,

So I have recently configured Virtual Agent within the company I'm working, it looks like every is happy about the product itself, but I'm still missing out some information's for my reporting myself.

When I look in the table [Interaction] then Can I see that each item has a Duration value, which I first thought could be used for reporting on the average handling time. Well sure it can be used if I would like the complete time used on the interaction including "Time spend with Virtual agent" + "Time spend with Live agent".

But my need to is to create an report that is showing  only "The time spend with Live Agent" per interaction.

Have anyone cracked that task or is able to guide me how doing that?

Regards
Anders Jensen

1 ACCEPTED SOLUTION

Muralidharan BS
Mega Sage

Not sure for Agent workspace we have something liveagent duration timing. 

But the interaction record duration is handled through a business rule - "Calculate Duration", which updates the duration from created till closed. you can tweak this but it will give a null value for all other interaction without a live agent handoff time. 

You can probably create a metrics to calculate the duration for liveagent transfer only. 

 

 

View solution in original post

9 REPLIES 9

Hello Anders, 

I am also looking for this solution. Can you share your metric definition? It's alright if it's not possible. Just wanted some help how to start it.

Thanks! 

Hi Catherine,

 

If you are using agent chat then this table can give you the right information - awa_interaction_work_item,

If using connect chat - chat_queue_entry,

 

Thanks

Hi All,

Did anyone figure out the solution to calculate the duration/time of live agent?

Could you please share the metric definition on interaction table because I created a metric definition on duration field but it didn't work.

Thanks

In the interaction table, we have two values [duration] and [handling duration], the metrix ootb for VA+LA to consider [duration], and for LA only considers [handling duration].


nmaneely
Mega Sage

Take a look at the 'handling_duration' field on the Interaction table which is calculated using the "Calculate Handling Time' Business Rule:-

(function executeRule(current, previous /*null when async*/) {
	if(current.isActionAborted() || current.live_handoff_time.nil() || current.wait_time.nil())
		return;

	var totalDuration = GlideDateTime.subtract(current.live_handoff_time.getGlideObject(), new GlideDateTime());
	var waitDuration = new GlideDuration(current.wait_time.getGlideObject().getNumericValue());
	var handlingDuration = totalDuration.subtract(waitDuration);
	current.handling_duration = handlingDuration;
})(current, previous);