KatInterview

Support Agent Credit, KPI Drop Triage, and Wrong-Order Defects

Statistics & ExperimentsModel answer
HardModel answerStatistics & Experimentsanalyticsattributionroot-cause-analysis

Last updated

Design a fair agent cost and credit model, triage a sudden support KPI decline, and find and reduce the driver of wrong-order complaints in a delivery marketplace.

You are the analytics lead for the customer support organization of an online food-delivery marketplace. You can query three tables:

  • agents(agent_id, monthly_salary, productive_hours, tenure, locale)
  • tickets(ticket_id, created_at, resolved_at, issue_type, severity, channel, order_id, merchant_id, courier_id, csat, reopened_flag, escalated_flag)
  • ticket_touches(ticket_id, agent_id, minutes_spent, action_ts)

Answer the three parts below as you would in a discussion with a hiring panel.

Part 1: Cost and credit allocation. Propose a fair way to spread agent salary cost, or a performance-based bonus pool, across agents using completed complaint tickets. Explain how your method handles:

  • differences in ticket difficulty,
  • several agents working on one ticket,
  • resolution quality,
  • ways agents might game the scheme.

Part 2: Sudden KPI decline. One of the core support KPIs (for example CSAT or first-contact resolution) drops sharply. Describe how you would decide whether the cause is a change in instrumentation, seasonality, a shift in queue mix, staffing, or a genuine operational problem.

Part 3: Rising wrong-order complaints. Complaints are growing because of three failure modes: the merchant prepared the wrong order, the courier collected the wrong bag, or the courier handed the order to the wrong customer. Say which metrics you would track, how you would find the dominant driver, and which preventive actions you would propose.

Expect to state your assumptions, name concrete formulas or queries where helpful, and discuss trade-offs.

Hints

Hint 1

For Part 1, separate two questions: where did payroll dollars go (accounting) and who deserves a reward (incentive). Rewarding raw logged minutes pays for slowness, so think about crediting expected effort instead.

Hint 2

For Part 2, test hypotheses from cheapest to most expensive: data/definition problems first, then calendar effects, then mix versus within-segment rate changes (a shift-share decomposition), then staffing, and only then a real operational cause.

Hint 3

For Part 3, normalize every metric by delivered orders, classify the failure mode using signals beyond the free-text issue label (for example whether the received items match another concurrent order), and look for concentration by merchant, courier, batching and time of day.