How Data Powers Agent Productivity

Poorva Patil8 Oct 2025

Problem

A customer-support product reported only presence metrics: online time, login time and available time. They show when an agent is present, not what the agent does. Support managers asked whether staffing matches ticket volume and whether agents spend time productively. Without a split between real work and idle time, teams could not find capacity gaps or learn from high performers.

Example from the article: Helpshift had no signal for tab focus, an open ticket or the page in view. "Available" and "productive" could not be told apart.

Solution in brief

Instrument the web dashboard with client-side focus events, then turn start/stop events into durations per half-hour window. A state table carries open sessions across windows. Idle time is computed separately from a count of tickets waiting for each agent, seeded by a daily snapshot.

Questions this case answers
  • How to measure active versus idle time of users of a web tool when only presence signals (login, online status) exist
  • How to compute durations from start and stop events in a batch pipeline with fixed time windows when sessions cross window boundaries
  • How to measure how much of an agent's online time is spent on real work versus idle time?
  • How to detect that a browser tab lost focus when the visibility API stays silent?

Tools and methods

  • Client-side focus events — start and end timestamps of dashboard, Issues page and single-ticket focus.
  • State table — last known state per agent, carried between pipeline runs.
  • Kafka → Silver → Gold → Redshift pipeline — raw events to half-hour aggregates on S3, then a warehouse.
  • Spark UDF — custom timer logic over event rows.
  • Elasticsearch snapshot — daily baseline of tickets waiting for each agent.
Continue reading — it's free

Google or a one-time email code. No password.