Agent replies interval
Access the number of agents replies per interval (i.e per day) by executing:
query AgentRepliesInterval(
$deskIds: _uuid
$brainIds: _uuid
$integrationIds: _uuid
$brainVersions: _int4
$channels: _text
$startDate: timestamp
$endDate: timestamp
$intervalInDays: interval
$agentIds: _text
$isTest: Boolean
) {
rows: agent_replies_interval_counts_v2(
args: {
start_time: $startDate
end_time: $endDate
interval_span: $intervalInDays
brain_parent_ids: $brainIds
desk_ids: $deskIds
integration_ids: $integrationIds
brain_versions: $brainVersions
channels: $channels
is_test: $isTest
agent_ids: $agentIds
}
) {
counts: interval_counts
date: per_interval
}
}
Below are some examples of how AgentRepliesInterval
can be called.
- Single Desk
- Multiple Desks
- Multiple Brains
- Specific Agents
- Specific Channels
- Remove Test Sessions
{
"deskIds": "{d2be0283-9b53-4d7b-b77d-2650f3a1a99c}",
"startDate": "2022-04-08",
"endDate": "2022-04-17",
"intervalInDays": "1 day"
}
{
"deskIds": "{d2be0283-9b53-4d7b-b77d-2650f3a1a99c, 51ff88a7-dfab-44e5-9303-9b2bf13f1c94}",
"startDate": "2022-04-08",
"endDate": "2022-04-17",
"intervalInDays": "1 day"
}
{
"brainIds": "{a2wv9283-9b53-4d7b-b77d-2650f3a1a99c, 99xx33p9-dfab-44e5-9303-9b2bf13f1c94}",
"startDate": "2022-04-08",
"endDate": "2022-04-17",
"intervalInDays": "1 day"
}
{
"deskIds": "{d2be0283-9b53-4d7b-b77d-2650f3a1a99c}",
"startDate": "2022-04-08",
"endDate": "2022-04-17",
"agentIds": "{1b28b8ba-c9de-42ac-94ad-564e0c6858c9, 1e47963e-ae46-4821-ae61-10773d1141a2}"
}
{
"deskIds": "{d2be0283-9b53-4d7b-b77d-2650f3a1a99c}",
"channels": "{web, facebook, viber}",
"startDate": "2022-04-08",
"endDate": "2022-04-17",
"intervalInDays": "1 day"
}
{
"deskIds": "{d2be0283-9b53-4d7b-b77d-2650f3a1a99c}",
"isTest": false,
"startDate": "2022-04-08",
"endDate": "2022-04-17",
"intervalInDays": "1 day"
}
Example Result:
{
"data": {
"rows": [
{
"counts": 2901,
"date": "2022-04-14T00:00:00"
},
{
"counts": 3213,
"date": "2022-04-15T00:00:00"
},
{
"counts": 4213,
"date": "2022-04-18T00:00:00"
}
]
}
}