Write instructions and reusable skills
Use instructions for habits you want in everyday replies. Use a skill for a job with several steps that the agent should follow when a buyer needs it.
Everyday instruction: “When a buyer asks about load capacity, use the current sizing table. If the load falls between two ratings, ask engineering to choose one.”
Skill for a retrofit: Start when a buyer asks to replace an installed unit. Check which model they have. Ask for any missing mounting dimensions. Compare those dimensions with the current drawing. If the holes don’t line up, stop and ask engineering before recommending a replacement.
Give the procedure a stopping point
Suppose the buyer knows the old model number but cannot measure the bracket. The agent can still share the approved drawing and point out the dimension to check. It should leave the fit undecided. Write that outcome into the skill so it has a useful answer even when it cannot complete the comparison.
If the buyer later provides the missing measurement, try continuing the same conversation. The agent should pick up at the comparison, using the model number already given. Starting the entire questionnaire again is a sign that the procedure needs a clearer instruction about what information to reuse.
Try “What does Model A weigh?” as well as “Will Model A replace my old unit?” The first buyer needs a figure. Only the second needs the retrofit procedure. Keep changing facts such as prices in the sources the skill reads.
In a Python project, declare the skill’s name, description, and path in agent.json. The maintained loop loads declared skills on demand. Test one question that needs the procedure and one ordinary question that should get a short answer. Python project layout.