Sub topic 4
Signals That a Problem Fits AI
Assume you know how software features are built, understand the basic idea of machine learning and large language models, and can read short Python snippets. This chapter focuses on recognizing when AI may be a good fit. It does not replace testing the idea against a simpler solution.
Look for variation and ambiguity
AI is useful when the input is difficult to describe with fixed rules. Examples include:
- Customer messages that use different words for the same problem.
- Photos that contain different layouts, lighting, or objects.
- Documents with inconsistent structure.
- Requests whose meaning depends on context.
- Recommendations that should differ for each user.
A traditional program follows explicit instructions. For example, “if the order total is above $100, apply a discount” is deterministic logic. The same input produces the same output.
An AI model estimates an answer from patterns in data. It may classify a message as a billing issue even when the message does not contain the word “invoice.” This flexibility is valuable, but the result is probabilistic. Similar inputs can receive different answers, and some answers will be wrong.
Strong signals for an AI approach
A problem is more likely to fit AI when several of these signals are present:
| Signal | Why it points toward AI |
|---|---|
| Unstructured input | Models can work with text, images, audio, or other inputs that are hard to parse with rules. |
| Many valid answers | Generation, ranking, or recommendation can choose among useful results. |
| Patterns are easier to show than explain | Examples can teach a model behavior that would be difficult to encode manually. |
| The task repeats at large volume | Automation can reduce manual effort when the cost of occasional review is acceptable. |
| Personalization matters | A model can use user, item, or context signals to produce different results. |
| Feedback is available | Corrections and user behavior can help measure and improve the feature. |
These signals do not prove that AI is the right choice. They identify a reason to investigate.
Check the boundary of the problem
Separate the part that requires judgment from the part that only requires software plumbing. A search box, form validation, database query, or clear workflow may not need AI. A feature might use AI for message classification while using ordinary code to store the result and apply account permissions.
Start with a non-AI baseline. A baseline is a simple approach used for comparison. It might be keyword matching, a rules engine, a search index, a ranking formula, or a better interface. If the baseline reaches the required quality at lower cost and risk, AI has no clear product justification.
def classify_message(text):
text = text.lower()
if "refund" in text or "invoice" in text:
return "billing"
return "other"
print(classify_message("Can you refund my order?"))The AI option should beat this baseline on a defined test set, not merely appear more impressive in a demonstration.
Test the negative signals
AI may be a poor fit when:
- The rules are stable, short, and easy to verify.
- A wrong answer could cause serious financial, legal, health, or safety harm.
- There is little representative data and no practical feedback loop.
- The feature requires exact, repeatable behavior.
- Model latency or usage cost breaks the product experience.
- A human can complete the task quickly and cheaply.
Consider whether a human review step or a safe fallback can contain errors. For example, an AI system might suggest a support category but let an agent confirm it before routing a sensitive case.
A practical screening path
Use this screen to decide whether to investigate further, not to approve a launch. The next step is an evaluation that compares AI and the baseline on representative examples.
Exercise
A support team receives 5,000 varied customer messages each week. A keyword rule handles common cases but often misses messages with unusual wording. Agents can correct the category before any action is taken. Which signals support an AI prototype, and what must still be checked?
Show answer
The varied language, high volume, pattern-based classification, and human feedback support a prototype. The team must still measure accuracy against the keyword baseline, check sensitive cases, and confirm that model cost and latency are acceptable.