These guides are intended for advanced Natterbox admins. The solutions involves scripts and is not an out-the-box solution.
This guide will give you the ability to report on the time taken for certain parts of the routing policy. This will involve creating 3 new custom fields and editing your Natterbox routing policies. Examples of ways to use the custom time metric:
How long does a caller take in the switchboard
How long from when a caller enters the phone system until the call is answered (excluding the time for greeting messages and switchboard presses)
REQUIRED Editions, Packages & Licenses
Skill set needed: Natterbox Admin and Salesforce Admin
Natterbox Call Centre 1.57 and Natterbox Admin (AVS) 1.49 or higher
Approx Time: 1 hour
Difficulty: 4/5
Field Creation
You will need to create 3 fields on the call reporting object.
First, to the setup cog, then object manager and search for ‘Call Reporting’ object
Go to the ‘Fields & Relationships’ tab and click ‘New’.
Here is how to create the first field:
Data Type = Date/Time
Field Label = First Timestamp
Description = This is used in X routing policy
Help Text = *add in where the stamp occurs*
Leave the rest as default and click Next
Edit field-level security as desired and click Next
We recommend adding to page layout then, click Save & New.
Here is how to create the second field:
Data Type = Date/Time
Field Label = End Timestamp
Description = This is used in X routing policy
Help Text = *add in where the stamp occurs*
Leave the rest as default and click Next
Edit field-level security as desired and click Next
We recommend adding to page layout then, click Save & New.
Here is how to create the third field:
Data Type = Formula (Number)
Decimal Places = 0
Field Label = Timestamp Calculation
Click Next
Formula =
UNIXTIMESTAMP(End_Timestamp__c) - UNIXTIMESTAMP(First_Timestamp__c)Description = This is used in X routing policy
Help Text = In Seconds / Calculates from X to Y
Click Next
Edit field-level security as desired and click Next
We recommend adding to page layout then, click Save.
Routing Policy Changes
Go to the Routing Policy tab in the Natterbox AVS Lighting app.
Click on the policy you want to add the time metric.
Decide the 2 places where the timestamps will go.
Break the connectors by doubling clicking the grey line.
Add an Action container with a Script Engine app.
Name this item = Start Time Script
Lua Script =
After ‘--continue your script here’ paste this:
local dateTime = strftime('%Y-%m-%dT%H:%M:%SZ', '', '')
session.set('Field_Goes_Here', tostring(dateTime))Example:
Now connect both grey lines onto the next container.
Do steps 4-6 again but where you want the time to stop and add the second field’s name into the script.
Make sure to click Save in the top right of the routing policy.
Make sure to test this by calling in and checking the fields populate!
Here are what the two action containers with script engine components might look like:

You could also stack them with reporting gates (a Manage Properties app) like this:
Here is what a simple routing policy might look like with the 2 new script engine apps in:

Reporting
Go to the Salesforce Reports tabs.
Select Report Type = Call Reporting
Create a report on connected inbound calls, here is an example:
Filter on a time frame, e.g. Conversation Answer Time = THIS WEEK, THIS MONTH…
Filter on Call Direction = Inbound
Filter on From Call Type = Connected
Add the fields: To Natterbox User, From Number, Contact, Time Ringing, Time Hunting, Time Talking, Wrapup Duration, Wrapup Label 0, Wrapup Label 1
Add in the Timestamp Calculation field.
You can customise the report by using row-level formulas or more custom time metric fields.
Example report:
