Design System to Assign Analyst to Investigations
Build a system that assigns analysts to investigations based on expertise and availability.
This prompt reads like a spec. It names the inputs and the output, which makes it tempting to jump straight to a matching algorithm. Hold off until you know who does the assigning today and why it isn't working.
Try this yourself before you open our solution. Give yourself about 45 minutes and talk out loud as you would with an interviewer.
Each step below follows our decomposition framework and works like the interview itself. Write down the questions you'd ask first. Then open the clarifying questions one at a time, each with the interviewer's answer, and stop once you're unstuck.
It ends with the customer role-play variant. In step 6, you present your solution to the interviewer as if they were the customer.
1. Clarify the constraints
Estimated time: 1-2 min
The prompt names analysts and investigations, but not who you're building for, what data exists, or a deadline.
2. Understand the stakeholder
Estimated time: 5-8 min
Find out how assignments happen today and where they go wrong.
3. Brainstorm the solution
Estimated time: 5 min
Come up with two potential solutions and choose one. Before you do, work out where the expertise data will come from, since both options need it.
4. Scope the MVP
Estimated time: 5 min
Decide what ships first, narrating the coordination, integration, and rollout costs.
5. Design the high-level system
Estimated time: 5 min
State your requirements, sketch the components, and decide which estimate actually matters for this problem. Ask for any numbers you need before you estimate.
6. Present back to the customer
Estimated time: 10 min
The interviewer now plays the customer. Explain your solution in their terms, including what you chose not to automate and why.
Follow-up questions
Work out your answers to these before you open the solution.
Here's how we'd work through it. Each step covers what to ask, what the answers tell you, how they shape the design, and what a strong answer looks like. The interviewer's full answers are in the "Ask the interviewer" boxes on the question tab.
1. Clarify the constraints
Three questions settle the constraints: what kind of investigations these are and who assigns them, where cases live and what's known about the analysts, and the deadline. The answers give you:
- Stakeholder: the four team leads who assign cases in a bank's financial crimes unit
- Available resources: the case management system's API, including full assignment history, and Outlook calendars
- Timeline: one month, ahead of a regulatory review
Two answers do the most work. The analysts get assigned, but the team leads do the assigning, so the leads are your stakeholder. And there's no skills database, which is the most important fact in the whole question. A design that assumes expertise is recorded somewhere rests on data that doesn't exist.
2. Understand the stakeholder
Four questions show how assignment works today: what a lead does with a new case, how they know who has room, what happens after a misassignment, and what happens when a lead is out. Here's what the answers tell you:
- Expertise lives in four people's heads. Nothing records who has handled what.
- Availability lives in a spreadsheet nobody keeps current, so leads lean on the same few trusted analysts.
- Misassignments cost days, and a 30-day regulatory deadline makes those days expensive.
- Coverage breaks when a lead is out, because the knowledge goes with them.
That reframes the pain point from "Assign analysts based on expertise and availability" to "Team leads need an accurate, current picture of who has capacity and who has handled this kind of case before, so each case lands with the right analyst the first time and closes within the deadline."
Other questions worth asking include whether some case types need specific certifications, and how leads prioritize when several urgent cases land at once.
3. Brainstorm the solution
Before choosing between options, notice what both of them need. Expertise isn't recorded anywhere, but it's implied: every case an analyst has closed shows what they've handled. Count each analyst's closed cases by type over the past year and you have an expertise profile, without anyone filling in a skills form.
With that in place, two options come to mind:
- Auto-assignment. The system scores every analyst for each new case and assigns the top match automatically.
- A recommendation for the lead. When a case arrives, the lead sees the top three analysts, each with the reasons behind it, like "closed 14 sanctions cases this year, 3 open cases, out Friday." The lead confirms one with a click.
Asking whether a person needs to own each assignment settles it. Not formally, but the leads are accountable for their team's cases and won't trust a black box. Go with option 2. The expertise profiles are inferred, so they'll sometimes be wrong. A lead in the loop catches those mistakes, and every time they skip the top suggestion, that's a signal the profile is missing something.
4. Scope the MVP
Two questions decide what the MVP can depend on: whether internal tools can read from and write to the case system, and whether analysts' calendars are accessible. Read access already exists. Write access needs a change request that takes a few weeks, and calendars need one admin approval. Narrate it that way:
"Coordination is the four leads and the head of the unit, plus the admin approval for calendar access, which I'd request on day one. Integration: the case system's read API is documented, and since write access takes a few weeks, the MVP shouldn't depend on it. The lead confirms the assignment in our tool, then makes it in the case system with one click through. I'd file the change request now anyway. Rollout is easy, because this is an internal web tool for four people, so I can sit with them weekly and adjust."
That leaves this MVP 1.0:
- Pull new cases and every analyst's open caseload from the case system, plus out-of-office time from calendars
- Build expertise profiles from each analyst's closed cases over the past year
- Show the lead a ranked shortlist of three analysts for each new case, with the reasons behind each
- Record every recommendation and the lead's final choice
5. Design the high-level system
State the requirements:
- Functional: for each new case, rank analysts by relevant past cases and current workload, and show the top three with reasons.
- Non-functional: workload data is never more than a few minutes old, so the tool doesn't recommend someone who just picked up three cases.
- Non-functional: every recommendation and decision is recorded, so the unit can show regulators how cases were assigned.
Infrastructure scale isn't a concern at a few hundred cases a week. The estimate worth doing is a capacity check, because it tells you whether better matching can solve the problem at all. Two questions give you the numbers: about 300 new cases a week at roughly 4 hours each, and about 30 hours of casework per analyst per week.
"That's 1,200 hours of work coming in each week. Forty analysts at about 30 hours each gives about 1,200 hours. The team is running at full capacity. A better matcher can't create time, so the tool also has to show leads when everyone qualified is already full."
Narrating it: "The ranking service satisfies the functional requirement. Syncing every few minutes keeps workload data fresh enough that recommendations reflect who's busy right now. The audit log satisfies the regulatory requirement, and it's also where the overrides for MVP 2.0 come from."
6. Present back to the customer
The interviewer now plays the head of the financial crimes unit. A quick way to check your summary is to translate each technical point into what they'd notice:
Then cover trade-offs and next steps:
"Your leads still make every assignment. The tool suggests three people and explains why, and the lead picks. We chose that over full automation so your leads stay accountable and can catch the tool when it's wrong. For now, they'll still click through to the case system to finalize each assignment, until IT approves us to write to it directly.
To start, I need an hour with each lead this week to check the tool's suggestions against how they'd assign, and your support on the IT change request."
Handling follow-up questions
What would you ship next?
Rank first by what's blocked, then by impact:
- Writing assignments back to the case system. Blocked only on the change request, and it removes the extra step for leads.
- A view for analysts showing why they were picked for a case. Nothing blocks it, and it builds trust in the tool.
- Estimating how long cases will take. Blocked until there's enough closed-case history per case type to estimate reliably.
Here the top item is blocked but still ranks first, because the block is a paperwork delay you've already started, not a missing capability.
Compliance now requires that no analyst investigates a client they've worked on before. What changes?
This is a hard rule, not a preference, so it can't just lower a score. It becomes a filter that runs before ranking: any analyst with a past case involving the same client is excluded. The data already exists in the case history, which includes client IDs. The audit log also records each exclusion, so the unit can show compliance the rule was applied. The sync job, profiles, and triage view stay unchanged.