Topic 3 of 6 · 5 min read
Behavioural stories about working with AI
Goal: Write a STAR story about catching an AI mistake that states the situation, your check and a measured result.
A good behavioural story about AI shows what you checked, not how impressive the tool was. Interviewers already know agents are fast. They want evidence that you stay responsible for what ships.
Check yourself · 1 of 3
In a STAR answer about an AI mistake, which part should take the most time?
Why it matters
Questions such as "Tell me about a time AI got something wrong" test honesty and judgement. A story where the tool never fails sounds untrue. A story where you blame the tool sounds like you did not check.
How to do it
Use STAR: Situation, Task, Action, Result. Keep it to about two minutes.
- Situation and task, in two sentences. The team, the stake, your job. Name the tool plainly (Copilot, Cursor, Claude Code, ChatGPT).
- Action, the longest part. What the AI produced, how you noticed the problem, what check you ran (a test, a diff read, a log, a comparison with the source), and what you changed. Use "I", not "we".
- Result, with a measure. A count, a time or a rate from your own work: bugs avoided, hours saved, error rate before and after. If you lack a number, describe the observable change and say it is an estimate.
- Lesson, one line. The habit you changed, such as "I now require a failing test before accepting a fix."
Prepare three stories: catching an AI mistake, shipping a feature with agents, and pushing back on a bad AI plan.
Before and after
Weak:
We used Copilot on the billing service and it saved a lot of time.
Sometimes it made mistakes but we fixed them. It went well.
Stronger:
Situation: our billing service needed a currency rounding fix before month end.
Action: Claude Code proposed rounding each line item. I wrote three invoices by hand
and the totals differed by 1 cent, because the rule was to round the total. I added
those cases as tests, rejected the change and asked for a version that rounds once.
Result: the fix shipped that week; the next audit found no rounding differences in
the 4,000 invoices we checked. I now write the cases before I prompt.
What goes wrong
- A tool-centred story. "The AI saved us two weeks" says nothing about you.
- Made-up numbers. Interviewers ask follow-ups. Use figures you can explain.
- Blaming the model. "It hallucinated" ends the story. Say what you did next.
- "We" throughout. The interviewer cannot tell what you did.
Examples
A pushback story in one line each
Situation: an agent plan rewrote the auth module for a small bug. Action: I showed the diff touched 40 files and proposed a three-line fix with a test. Result: the fix merged the same day and the rewrite was dropped.
Turning a vague claim into a measure
Instead of 'it saved time', say 'we cut first-draft test writing from about two hours to forty minutes on six tickets, and I spent the saved time reviewing the tests.'
Key points
- A good AI story is about your check and decision, not the tool's speed.
- Use STAR and spend most of the time on the action.
- Include a measured result you can explain, or call an estimate an estimate.
- End with one habit you changed because of it.
- Prepare three stories: a caught mistake, a shipped feature and a pushback.
Common mistakes
- Telling a story where the AI never makes a mistake.
- Saying 'we' so the interviewer cannot see your part.
- Quoting numbers you cannot explain under follow-up.
- Ending with 'it worked out' instead of what you changed afterwards.
Check yourself · 2 of 3
Which result line is strongest in a story about catching an AI mistake?
Check yourself · 3 of 3
An interviewer asks, 'Tell me about a time AI got something wrong.' What is the best approach?
Practice items, not counted towards your mastery.
Start here
- Machine Learning Interviews book (Chip Huyen) (opens in a new tab)BookFree
Describes how ML and AI interview loops are structured and how to prepare for each round.
- The System Design Primer (opens in a new tab)ToolFree
Core system design vocabulary (caching, queues, load, trade-offs) that LLM design rounds still build on.
- Building a generative AI platform (Chip Huyen) (opens in a new tab)ArticleFree
Walks through the components of an LLM application: context, guardrails, routing, caching and observability.