Run an A/B Test of a Revised Refund Procedure Without Fooling Yourself
Last updated: November 29, 2026
Quick Overview
A customer wants to ship a rewritten refund procedure for its AI agent. Design the experiment that decides whether it is better, covering randomization unit, primary and guardrail metrics, sample size, and how you would read a result where resolution rate goes up but CSAT goes down.
Decagon
November 29, 20260
0
0 solved
A customer wants to ship a rewritten refund procedure for its AI agent. Design the experiment that decides whether it is better, covering randomization unit, primary and guardrail metrics, sample size, and how you would read a result where resolution rate goes up but CSAT goes down.
Every change to a Decagon procedure shifts how much the agent resolves, how often it escalates, and what it costs the customer in refunds, so experiments per customer are a daily tool. The interviewer checks the unit of randomization, a metric set that cannot be gamed by refusing to escalate, power reasoning, and judgment when metrics conflict.
What the Interviewer Expects
- Randomizes by end user, not by conversation, and explains why
- Defines resolution carefully (no reopen within a window) and adds guardrails
- Estimates sample size from baseline rate and minimum detectable effect
- Accounts for repeat contacts and novelty
- Makes a clear ship decision when metrics conflict
Key Topics to Cover
How to Approach This
- Define success metrics carefully. A good metric is measurable, actionable, and aligned with business goals.
- Run experiments long enough to account for novelty effects and weekly seasonality.
- Use funnel analysis to identify where users drop off for maximum optimization impact.
- Segment results by key dimensions (platform, country, user cohort) to catch hidden patterns.
- Consider network effects and interference between treatment and control groups.
Possible Follow-up Questions
- The customer has only 3,000 refund conversations a week. What do you do?
- How would you use the simulation suite before the live test?
- How would you detect that the new procedure is approving refunds it should not?
- How would you handle a test where users can contact support on chat and email?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Analytics QuestionsSample Answer
Clarify
Population: conversations classified as refund requests for one customer. Control: current procedure. Treatment: rewritten procedure. Goal: more refunds handled end to end without hurting customer exp...
Approach
Randomize by end user id (hashed), so a user who returns sees the same procedure and repeat contacts are attributed correctly. Primary metric: true resolution, meaning no human handoff and no repeat c...