Why this matters
Clients and employers usually have a working product and want "AI in it". The engineering challenge is respecting the existing architecture (its auth, data model, conventions and deploy process) while adding a dependency with new failure modes.
Choosing the first feature
Score candidates on four axes:
| Axis | Prefer |
|---|---|
| Value | Saves measurable time or improves a measurable outcome |
| Risk | Low cost of a wrong answer, or a human reviews before effect |
| Data | Inputs already available, with clear permission to use them |
| Measurability | A baseline exists (time per ticket, error rate, conversion) |
Good first features: drafting (replies, summaries, descriptions) with human review; classification and routing; extraction into forms that a person confirms; search over internal knowledge. Risky first features: autonomous actions, anything touching money or health decisions without review.
Integrating without breaking things
- Respect the architecture: the frontend talks to the backend API, which calls a service, which calls the model adapter; no shortcuts from the UI to the model with a key in the browser.
- Reuse existing auth and permissions; the AI feature sees only what the user may see.
- Feature flag the feature; launch to internal users, then a percentage.
- Async where slow: queue long work; show status.
- Fallback: the old workflow still works if the model is down.
- Sanitise output for the existing UI (a casebook example sanitises AI-drafted descriptions on the way out so editor markup can't run script, P12).
Proving it helped
Before launch, record the baseline. After launch, compare the same metric for users with and without the feature (or before/after with care), plus quality signals (edit rate, acceptance) and cost per task. Report the number with its baseline, period and method.
Common mistakes
- Starting with the flashiest feature instead of the most measurable one.
- A new parallel auth path for the AI service.
- No baseline, so success can't be shown.
Check yourself
A support team wants AI. What's a strong first feature and why?
Suggested reply drafts that agents edit and send: clear value (handle time), low risk (human sends), data available (ticket + knowledge base), measurable (handle time, edit distance, acceptance).
Build it
Pick a product you know; score three candidate AI features on the four axes and write a one-page plan for the winner, including the baseline metric.
Worked example: a rollout plan
Feature: AI-drafted replies in an existing support desk.
- Week 0: baseline: median handle time, CSAT, reopen rate for the target queue.
- Week 1: adapter + prompt + 50-ticket eval set; drafts behind a flag, internal team only.
- Week 2: 10% of agents; log draft acceptance, edit distance, handle time; daily review of bad drafts.
- Week 3: fix the top failure categories; re-run evals; expand to 50%.
- Week 4: compare flag-on vs flag-off agents on handle time and quality; decide on full rollout.
Kill switch at every stage: the flag turns drafts off without a deploy.
Interview follow-ups
- "The client wants it in two weeks." Ship the smallest slice that keeps guardrails: drafts only, human sends, one queue, flag-gated, with logging. Say what's deferred (automation, more queues) and why.
- "How do you avoid breaking the existing product?" Separate service or module behind an interface, async calls with timeouts, the old workflow as fallback, and no schema changes that old code can't handle.
More check-yourself
Why compare flag-on and flag-off users instead of before and after?
Before/after comparisons mix in seasonality, staffing and other changes. Running both groups at the same time isolates the feature's effect.