Response Times

Access the overall agent response times by executing:

query ResponseTimes(
$deskIds: _uuid
$brainIds: _uuid
$integrationIds: _uuid
$brainVersions: _int4
$channels: _text
$startDate: timestamp
$endDate: timestamp
$events: _text
$firstMessage: Boolean
$isTest: Boolean
) {
rows: response_times(
args: {
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
}
) {
average_time
median_time
max_time
min_time
num_responses
}
}

Below are some examples of how ResponseTimes can be called.

{
"deskIds": "{d2be0283-9b53-4d7b-b77d-2650f3a1a99c}",
"startDate": "2022-04-08",
"endDate": "2022-04-17"
}

Example Result:

{
"data": {
"rows": [
{
"average_time": 0.026548766,
"median_time": 0.0218,
"max_time": 0.084366664,
"min_time": 0.019616667,
"num_responses": 54
}
]
}
}
Last updated on