Conversation statistics

A Statistics object containing all information required for reporting, with timestamps and calculated metrics.

type
string
time_to_assignment
integer

Duration until last assignment before first admin reply. In seconds.

time_to_admin_reply
integer

Duration until first admin reply. Subtracts out of business hours. In seconds.

time_to_first_close
integer

Duration until conversation was closed first time. Subtracts out of business hours. In seconds.

time_to_last_close
integer

Duration until conversation was closed last time. Subtracts out of business hours. In seconds.

median_time_to_reply
integer

Median based on all admin replies after a contact reply. Subtracts out of business hours. In seconds.

first_contact_reply_at
integer <date-time>

Time of first text conversation part from a contact.

first_assignment_at
integer <date-time>

Time of first assignment after first_contact_reply_at.

first_admin_reply_at
integer <date-time>

Time of first admin reply after first_contact_reply_at.

first_close_at
integer <date-time>

Time of first close after first_contact_reply_at.

last_assignment_at
integer <date-time>

Time of last assignment after first_contact_reply_at.

last_assignment_admin_reply_at
integer <date-time>

Time of first admin reply since most recent assignment.

last_contact_reply_at
integer <date-time>

Time of the last conversation part from a contact.

last_admin_reply_at
integer <date-time>

Time of the last conversation part from an admin.

last_close_at
integer <date-time>

Time of the last conversation close.

last_closed_by_id
string

The last admin who closed the conversation. Returns a reference to an Admin object.

count_reopens
integer

Number of reopens after first_contact_reply_at.

count_assignments
integer

Number of assignments after first_contact_reply_at.

count_conversation_parts
integer

Total number of conversation parts.

{ "type": "conversation_statistics", "time_to_assignment": 2310, "time_to_admin_reply": 2310, "time_to_first_close": 2310, "time_to_last_close": 2310, "median_time_to_reply": 2310, "first_contact_reply_at": 1663597233, "first_assignment_at": 1663597233, "first_admin_reply_at": 1663597233, "first_close_at": 1663597233, "last_assignment_at": 1663597233, "last_assignment_admin_reply_at": 1663597233, "last_contact_reply_at": 1663597233, "last_admin_reply_at": 1663597233, "last_close_at": 1663597233, "last_closed_by_id": "c3po", "count_reopens": 1, "count_assignments": 1, "count_conversation_parts": 1 }