Start here. This is the direct spoken answer to practice first.
Overview
A mature AI design begins with the option not to use a generative model.
I would not use an LLM when a simpler deterministic solution satisfies the requirement more reliably. Exact arithmetic, authorization, database constraints, well-defined transformations, and state transitions should normally stay in code. Plain search may be better when users need exact documents, and a conventional classifier may be better for a stable labeled task with strict latency or cost limits. I also avoid an LLM when the consequence of an unverified output is unacceptable.