When does an AI workflow actually make sense?
Where AI can help, where regular code works better, and how to combine the two.
Not every task needs an AI agent. Sometimes a few lines of code will do a better job for a fraction of the cost.
The question I ask is simple: Does this task require judgment about messy information, or does it need an exact answer?
Where AI helps
Language models are useful when inputs vary and there’s no neat set of rules for handling them. Think:
- Pulling useful details from emails or unstructured documents
- Sorting support requests into categories
- Summarizing research or customer feedback
- Drafting text from a set of notes
These are good candidates because a model can interpret information that would be difficult to handle with fixed rules. You still need a way to check its output.
Where I’d use regular code instead
I wouldn’t use a language model to add prices, look up a customer ID, validate a date format, or decide whether a payment succeeded.
For calculations, exact lookups, rules, and predictable transformations, conventional software is usually cheaper, faster, and easier to test.
Combining the two works best
Imagine you want to process inbound leads from emails.
- Collect: Your application receives the email.
- Interpret: A model extracts the company, request, and likely topic.
- Check: Your code validates the fields and flags uncertain results.
- Act: Your application creates a CRM record or sends it for review.
The model handles the messy language. Your software handles the rules and the action.
That separation is useful for another reason: if the model gets something wrong, you can catch it before it changes data or triggers a workflow.
The rule I’d use
Start with the simplest reliable solution. Add AI only where it solves a problem ordinary code struggles with, and keep important actions behind validation or human review when the stakes warrant it.