Tips // Claude in practice

Tips for working better with Claude

One short tip at a time, with an example you can copy. Move through them at random or search for what you need.

OtherIntermediateClaude API

A rule that must always hold stays outside the model

A business threshold (e.g. claims over 5,000 go to a senior) is better in your rules engine or SQL: Claude gets it right almost always, not always.

In the course's case, 41 of 14,000 claims were routed wrongly because the amount came as 'around five thousand' and the model took it as an estimate. Let Claude extract the data and let the existing system decide. What the business treats as certain needs tests, monitoring and a human owner.

Example
Design:
1. Claude extracts the amount (structured output)
2. Your code/SQL applies the threshold
3. Test cases with amounts written in free text
#business-rules#design#determinism#decomposition