Support Agent Credit, KPI Drop Triage, and Wrong-Order Defects
Statistics & ExperimentsModel answerLast 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.
Model answer
Hard Try it yourself first — then compare your approach, complexity and edge cases.
Overview
This is a judgment question. A strong answer separates accounting from incentives, checks confounders in a deliberate order, and normalizes by exposure (orders) so that growth in volume is not mistaken for growth in defect rate.
Part 1: Fair cost and credit allocation
Cost view (where did the money go).
- Hourly cost per agent:
rate_a = monthly_salary / productive_hours, or per minute, divide again by 60. - Ticket cost:
sum over touches of minutes_spent * rate_a. - Logged minutes will be less than paid minutes (training, meetings, idle time). Spread this overhead pro rata over logged minutes so totals reconcile to payroll.
- Aggregate by issue type, merchant, courier and locale. This produces a cost-to-serve per defect, reused in Part 3.
Credit view (who gets rewarded). Do not pay on raw minutes. Use:
Credit_a = sum over tickets t of w_t * s_{a,t} * q_t
- Difficulty weight
w_t: the expected handle time predicted from features the agent cannot control (issue type, severity, channel, locale, order value, parties involved). Paying on expected rather than actual time removes the reward for padding. - Share
s_{a,t}: a hybrid split, such as 70% by share of minutes and 30% to the agent who closes the ticket without a reopen. Pure hand-offs earn only their minute share, while whoever absorbs an escalation gets resolver credit. This discourages hot-potato transfers. - Quality
q_t, clipped to about 0.5 to 1.2:- CSAT relative to the expected CSAT for that issue type (refund denials score low whatever the agent does),
- a clawback if the ticket reopens within about 7 days,
- a penalty for avoidable escalations,
- random QA audit scores.
Fairness adjustments.
- Compare within peer groups (locale, channel, tenure band).
- Shrink the scores of agents with few tickets toward the group mean (empirical Bayes), so small samples do not produce extreme results.
- Distribute a fixed pool proportionally to normalized credit, with a floor tied to base pay.
Gaming risks and controls.
| Behavior | Control |
|---|---|
| Cherry-picking easy tickets | System-assigned routing, difficulty weights |
| Closing too early | Reopen clawback, QA sampling |
| Splitting or duplicating tickets | Dedupe on order_id within a time window |
| Padding minutes | Credit on expected time |
| Filtering who gets the CSAT survey | Track survey response rate per agent, audit outliers |
| Dumping hard tickets by transfer | Transfer-rate monitoring, resolver-weighted credit |
Also review the scheme periodically, since any published formula will eventually be optimized against.
Part 2: Diagnosing a sudden KPI drop
Start by pinning down the exact KPI definition (numerator, denominator, population, time window). Then work through causes cheapest first.
- Instrumentation.
- Signature: a step change at one timestamp, appearing in every segment at once.
- Check row counts, null rates for
csatandresolved_at, survey response rate, changes to what counts as "resolved" (for instance auto-close), and timezone or ETL changes. - Cross-check with release and config logs and an independent source (order volume, raw survey vendor export).
- Seasonality.
- Compare with the same weekday and week in prior years, and with holidays, weather and events.
- Use a seasonal decomposition or forecast. If the value lies inside the prediction interval, the drop is expected.
- Queue mix. Decompose the change across segments
i(issue type, channel, severity, locale):dKPI = sum(dw_i * r_i) + sum(w_i * dr_i) + interactionThe first term is the mix effect, the second the rate effect. Flat within-segment rates with a larger share of hard tickets means mix. Watch for Simpson's paradox, where the aggregate falls although every segment improved. - Staffing.
- Look at tickets per productive hour, occupancy, wait time, backlog, new-hire share and attrition.
- Evidence: degradation concentrated in understaffed intervals, a dose-response with wait time, and weaker results for low-tenure agents.
- Real operational issue.
- If within-segment rates fell and the above are excluded, localize by region, merchant, tool or policy.
- Typical causes: a refund-policy change, a tooling outage, a new partner launch. Confirm with the timeline and a comparison region.
Deliverable: a waterfall attributing the change to instrumentation, season, mix, staffing and residual, with the residual handed to operations.
Part 3: Rising wrong-order complaints
Metrics (all per 1,000 delivered orders):
- Defect rate by mode: wrong items prepared, wrong bag collected, wrong customer served.
- Cost per defect: refund, redelivery and support cost (from Part 1).
- Impact: 30-day retention after a defect, repeat-defect rate.
- Concentration: share of defects from the top 5% of merchants and couriers.
- Guardrails: delivery time and courier earnings per hour, so fixes do not cause new harm.
Classify the mode. Issue labels are noisy, so add signals. Items matching another concurrent order from the same merchant suggest a bag swap. Items matching no order suggest a prep error. A drop-off location or photo far from the address suggests misdelivery.
Find the main driver.
- Split growth into order growth versus rate growth, and rule out reporting changes such as an easier complaint flow.
- Identify which mode contributes most of the rate increase.
- Slice by merchant (with shrinkage for low-volume merchants), concurrent orders at pickup, batching, peak hours, courier tenure, multi-unit addresses and app releases.
- Fit a logistic regression of defect on these features to separate correlated factors such as batching versus peak hour.
Interventions by mode.
- Merchant prep: item checklists on the merchant tablet, tamper-evident seals, scorecards with coaching then penalties.
- Wrong bag: order-number labels, a scan or code confirmation at pickup, limits on stacking orders from busy merchants.
- Wrong customer: confirmation PIN or name check at handoff, photo proof, geofenced drop-off prompts.
Validate with a randomized rollout by merchant or zone, using defect rate as the primary metric and delivery time as a guardrail.
Common mistakes
- Reporting raw complaint counts instead of rates per order.
- Paying on logged minutes or on raw CSAT.
- Concluding "real issue" before checking definitions and mix.
- Ignoring small-sample noise when ranking merchants or agents.
- Launching interventions without a measured control group.