Skip to main content

Response times per interval

Access the agent response times per interval (i.e per day) by executing:

query ResponseTimesInterval(
$accountId: uuid
$deskIds: _uuid
$brainIds: _uuid
$integrationIds: _uuid
$brainVersions: _int4
$channels: _text
$startDate: timestamp
$endDate: timestamp
$intervalInDays: interval
$events: _text
$firstMessage: Boolean
$isTest: Boolean
$onlyBrain: Boolean
$onlyHuman: Boolean
$agentIds: _text
$tags: _text
$minNumUserMessages: Int
) {
rows: response_times_interval(
args: {
account_id: $accountId
interval_span: $intervalInDays
start_time: $startDate
end_time: $endDate
brain_parent_ids: $brainIds
desk_ids: $deskIds
integration_ids: $integrationIds
brain_versions: $brainVersions
channels: $channels
events: $events
first_message: $firstMessage
is_test: $isTest
only_brain: $onlyBrain
only_human: $onlyHuman
agent_ids: $agentIds
tags: $tags
min_num_user_messages: $minNumUserMessages
}
) {
average_time
median_time
max_time
min_time
num_responses
date: per_interval
}
}

Below are some examples of how ResponseTimesInterval can be called.

{
"accountId": "991c12a1-cc58-4377-8e37-f72259e9dac1",
"startDate": "2022-04-08",
"endDate": "2022-04-17",
"intervalInDays": "1 day"
}

Example Result:

{
"data": {
"rows": [
{
"average_time": 0.44362998,
"median_time": 0.024566667,
"max_time": 1.7883333,
"min_time": 0.023866666,
"num_responses": 5,
"date": "2022-04-15T00:00:00"
},
{
"average_time": 0.101399995,
"median_time": 0.084366664,
"max_time": 0.15781666,
"min_time": 0.062016666,
"num_responses": 3,
"date": "2022-04-18T00:00:00"
}
]
}
}