GET
/
backend
/
reports
/
{orgId}
/
agents
/
staffing-prediction

This endpoint provides a staffing prediction based on historical chat data. It analyzes the number of chats per hour and the number of chats that required human intervention to help optimize agent allocation and improve response times.

Authentication

Authorization
string
required

Bearer token for authentication

Path Parameters

orgId
string
required

The ID of the organization

Query Parameters

startDate
string

The start date for the date range to analyze (ISO 8601 format)

endDate
string

The end date for the date range to analyze (ISO 8601 format)

Response

hourly_chats
array

An array of objects representing the chat volume and human intervention for each hour

How It Works

The feature analyzes historical chat data for a specific organization and generates an hourly breakdown of chat activity. It provides the following information for each hour of the day:

  1. Total number of chats
  2. Number of chats that required human intervention

Using the Feature

To use this feature, you need to provide:

  1. The organization ID you want to analyze
  2. Optional date range for the analysis (start date and end date)

If no date range is specified, the feature will analyze all available historical data.

Output

The feature returns an array of hourly data points. Each data point includes:

  • Hour of the day (0-23)
  • Total number of chats for that hour
  • Number of chats that required human handling

Was this page helpful?